code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public static List getChildTextList(Element elem, String childTagName)
{
NodeList nodeList = elem.getElementsByTagName(childTagName);
int len = nodeList.getLength();
if (len == 0)
{
return Collections.EMPTY_LIST;
}
List list = new ArrayList(len);
... | java |
@Override
public void sendNackMessage(
SIBUuid8 upstream,
SIBUuid12 destUuid,
SIBUuid8 busUuid,
long startTick,
long endTick,
... | java |
private void processAckExpected(ControlAckExpected ackExpMsg)
throws SIResourceException
{
// This is called by a PubSubOutputHandler when it finds Unknown
// ticks in it's own stream and need the InputStream to resend them
if (TraceComponent.isAnyTracingEnabled() && tc.... | java |
private long processNackWithReturnValue(ControlNack nackMsg)
throws SIResourceException
{
// This is called by a PubSubOutputHandler when it finds Unknown
// ticks in it's own stream and need the InputStream to resend them
if (TraceComponent.isAnyTracingEnabled() && tc.is... | java |
private void remotePut(
MessageItem msg,
SIBUuid8 sourceMEUuid)
throws
SIResourceException,
SIDiscriminatorSyntaxException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
protected void remoteToLocalPutSilence(MessageItem msgItem) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"remoteToLocalPutSilence",
new Object[] { msgItem });... | java |
private MessageProcessorSearchResults matchMessage(MessageItem msg)
throws SIDiscriminatorSyntaxException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"matchMessage",
... | java |
private boolean restoreFanOut(
MessageItemReference ref,
boolean commitInsert)
throws
SIDiscriminatorSyntaxException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable... | java |
private MessageItemReference addProxyReference(MessageItem msg,
MessageProcessorSearchResults matchingPubsubOutputHandlers,
TransactionCommon tran) throws SIResourceException
{
if (TraceComponent.isAnyTraci... | java |
public void setPropertiesInMessage(JsMessage jsMsg,
SIBUuid12 destinationUuid,
SIBUuid12 producerConnectionUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setPropertiesInMessag... | java |
@Override
public void validate() {
//validate the parameters
String target = getTargetName();
if (value() < 1) {
throw new FaultToleranceDefinitionException(Tr.formatMessage(tc, "bulkhead.parameter.invalid.value.CWMFT5016E", "value ", value(), target));
}
//valida... | java |
public void updateCacheSizes(long max, long current) {
final String methodName = "updateCacheSizes()";
if (tc.isDebugEnabled() && null != _maxInMemoryCacheEntryCount && null != _inMemoryCacheEntryCount) {
if (max != _maxInMemoryCacheEntryCount.getCount() && _inMemoryCacheEntryCount.getCoun... | java |
public void onCacheHit(String template, int locality) {
final String methodName = "onCacheHit()";
CacheStatsModule csm = null;
if ((csm = getCSM(template)) == null) {
return;
}
if (tc.isDebugEnabled())
Tr.debug(tc, methodName + " cacheName=" + _sCacheName... | java |
public void onCacheMiss(String template, int locality) {
final String methodName = "onCacheMiss()";
CacheStatsModule csm = null;
if ((csm = getCSM(template)) == null) {
return;
}
if (tc.isDebugEnabled())
Tr.debug(tc, methodName + " cacheName=" + _sCacheNa... | java |
public void onEntryCreation(String template, int source) {
final String methodName = "onEntryCreation()";
CacheStatsModule csm = null;
if ((csm = getCSM(template)) == null) {
return;
}
if (tc.isDebugEnabled())
Tr.debug(tc, methodName + " cacheName=" + _sC... | java |
private static void applyElement(Annotated member, Schema property) {
final XmlElementWrapper wrapper = member.getAnnotation(XmlElementWrapper.class);
if (wrapper != null) {
final XML xml = getXml(property);
xml.setWrapped(true);
// No need to set the xml name if the ... | java |
private static void applyAttribute(Annotated member, Schema property) {
final XmlAttribute attribute = member.getAnnotation(XmlAttribute.class);
if (attribute != null) {
final XML xml = getXml(property);
xml.setAttribute(true);
setName(attribute.namespace(), attribute... | java |
private static boolean setName(String ns, String name, Schema property) {
boolean apply = false;
final String cleanName = StringUtils.trimToNull(name);
final String useName;
if (!isEmpty(cleanName) && !cleanName.equals(((SchemaImpl) property).getName())) {
useName = cleanName... | java |
private static boolean isAttributeAllowed(Schema property) {
if (property.getType() == SchemaType.ARRAY || property.getType() == SchemaType.OBJECT) {
return false;
}
if (!StringUtils.isBlank(property.getRef())) {
return false;
}
return true;
} | java |
public static Attribute getInstance(
Object o)
{
if (o == null || o instanceof Attribute)
{
return (Attribute)o;
}
if (o instanceof ASN1Sequence)
{
return new Attribute((ASN1Sequence)o);
}
throw new IllegalArgumentException("u... | java |
synchronized void unregister() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "unregister", this);
}
if (registration != null) {
registration.unregister();
registration = null;
}
} | java |
@Override
public void printStackTrace(PrintWriter p) {
if (wrapped == null) {
p.println("none");
} else {
StackTraceElement[] stackElements = getStackTraceEliminatingDuplicateFrames();
// format and print
p.println(wrapped);
for (int i = ... | java |
public StackTraceElement[] getStackTraceEliminatingDuplicateFrames() {
// If this isn't a cause, there can't be any duplicate frames, so proceed no further
if (parentFrames == null) {
return getStackTrace();
}
if (noduplicatesStackTrace == null) {
List<StackTraceE... | java |
public void record(CircuitBreakerStateImpl.CircuitBreakerResult result) {
boolean isFailure = (result == FAILURE);
if (resultCount < size) {
// Window is not yet full
resultCount++;
} else {
// Window is full, roll off the oldest result
boolean old... | java |
protected MetadataViewKey deriveViewKey(FacesContext facesContext,
UIViewRoot root)
{
MetadataViewKey viewKey;
if (!facesContext.getResourceLibraryContracts().isEmpty())
{
String[] contracts = new String[facesContext.getResourceLibraryContracts().size()];
... | java |
public void modified(List<String> newSources) {
if (collectorMgr == null || isInit == false) {
this.sourcesList = newSources;
return;
}
try {
//Old sources
ArrayList<String> oldSources = new ArrayList<String>(sourcesList);
//Sources ... | java |
public void writingState()
{
if (!this.writtenState)
{
this.writtenState = true;
this.writtenStateWithoutWrapper = false;
this.fast = new FastWriter(this.initialSize);
this.out = this.fast;
}
} | java |
@Reference(name = "extensionProvider", service = ExtensionProvider.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected void registerExtensionProvider(ExtensionProvider provider) {
LibertyApplicationBusFactory.getInstance().registerExtensionProvider(provider);
... | java |
@Trivial
private String dumpMap(Map<String, String[]> m) {
StringBuffer sb = new StringBuffer();
sb.append(" --- request parameters: ---\n");
Iterator<String> it = m.keySet().iterator();
while (it.hasNext()) {
String key = it.next();
String[] values = m.get(ke... | java |
private void forwardMessage(AbstractMessage aMessage,
SIBUuid8 targetMEUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "forwardMessage",
new Object[]{aMessage, targetMEUuid});
if (TraceComponent.isAnyTracingEnabl... | java |
private boolean attachAndLockMsg(SIMPMessage msgItem, boolean isOnItemStream)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"attachAndLockMsg",
... | java |
SIMPMessage getAttachedMessage() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getAttachedMessage", this);
SIMPMessage msg = null;
//check if there really is a message attached
if (_msgAttached)
{
... | java |
private boolean checkReceiveAllowed() throws SISessionUnavailableException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkReceiveAllowed");
boolean allowed = _destinationAttachedTo.isReceiveAllowed();
if (!allowed)
... | java |
private void checkReceiveState()
throws SIIncorrectCallException, SISessionUnavailableException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkReceiveState");
// Only valid if the consumer session is still open
checkN... | java |
private SIMPMessage getEligibleMsgLocked(TransactionCommon tranImpl) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getEligibleMsgLocked", new Object[] { this, tranImpl });
/*
* 166829.1 Support for noLocal deliver... | java |
protected void waitingNotify()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "waitingNotify");
this.lock();
try
{
if (_waiting)
_waiter.signal();
} finally
{
this.unlock();
... | java |
private SIMPMessage retrieveMsgLocked() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "retrieveMsgLocked", new Object[] { this });
SIMPMessage msg = null;
// Look in the Cd's ItenStream for the next available messa... | java |
private void checkParams(int maxActiveMessages,
long messageLockExpiry,
int maxBatchSize)
throws SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
... | java |
boolean processAttachedMsgs() throws SIResourceException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "processAttachedMsgs", this);
SIMPMessage msg = null;
// Check if there is a message attached to this consumer,... | java |
void runAsynchConsumer(boolean isolatedRun) throws SIResourceException, SISessionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "runAsynchConsumer", new Object[] { this, Boolean.valueOf(isolatedRun) });
JSLocalConsumerPoint nextConsum... | java |
@Override
public void close() throws SIResourceException, SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "close", this);
// On closing, we need to run the async consumer a final time to process
... | java |
public boolean isClosed()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isClosed", this);
SibTr.exit(tc, "isClosed", Boolean.valueOf(_closed));
}
return _closed;
} | java |
@Override
public void start(boolean deliverImmediately) throws SISessionUnavailableException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "start", new Object[] {
Boolean.valueOf(deliverImmediately), this... | java |
@Override
public void checkForMessages()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkForMessages", this);
try
{
//start a new thread to run the callback
_messageProcessor.startNewThread(new AsynchThread(thi... | java |
@Override
public void unlockAll() throws SISessionUnavailableException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "unlockAll", this);
synchronized (_asynchConsumerBusyLock)
{
this.lock();
tr... | java |
private void setBaseRecoverability(Reliability unrecoverableReliability)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setBaseRecoverability", new Object[] { this, unrecoverableReliability });
setUnrecoverability(unrecoverableReliability);
_... | java |
private void resetBaseUnrecoverability()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "resetBaseUnrecoverability", this);
_unrecoverableOptions = _baseUnrecoverableOptions;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
private void setReady() throws SINotPossibleInCurrentConfigurationException
{
// If we're not transacted no messages are recoverable
Reliability unrecoverable = Reliability.ASSURED_PERSISTENT;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setR... | java |
protected void unsetReady()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "unsetReady", this);
//set the ready state
_ready = false;
if (_keyGroup != null)
_keyGroup.groupNotReady();
// if consumerKey is null the... | java |
protected TransactionCommon getAutoCommitTransaction()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getAutoCommitTransaction", this);
}
TransactionCommon tran =
_messageProcessor.getTXManager().createAutoCom... | java |
public int getMaxActiveMessages()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getMaxActiveMessages");
SibTr.exit(tc, "getMaxActiveMessages", Integer.valueOf(_maxActiveMessages));
}
return _maxActiveMessages;
} | java |
@Override
public void setMaxActiveMessages(int maxActiveMessages)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setMaxActiveMessages", Integer.valueOf(maxActiveMessages));
synchronized (_asynchConsumerBusyLock)
{
this.lock();... | java |
public boolean contextInfoRequired(String eventType, long requestNumber) {
boolean needContextInfo = false;
List<ProbeExtension> probeExtnList = RequestProbeService
.getProbeExtensions();
for (int i = 0; i < probeExtnList.size(); i++) {
ProbeExtension probeExtension = probeExtnList.get(i);
if (reques... | java |
public static RequestProbeTransformDescriptor getObjForInstrumentation(
String key) {
RequestProbeTransformDescriptor requestProbeTransformDescriptor = RequestProbeBCIManagerImpl
.getRequestProbeTransformDescriptors().get(key);
return requestProbeTransformDescriptor;
} | java |
boolean addHandle (SIMessageHandle handle,
Map ctxInfo,
final boolean canBeDeleted) {
final String methodName = "addHandle";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, new Object [] { han... | java |
boolean matches (Map ctxInfo, boolean canBeDeleted)
{
final String methodName = "matches";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, new Object [] { ctxInfo, canBeDeleted });
}
if (TraceComponent.isAnyTracingEnabled(... | java |
private void updateBufferManager(Map<String, Object> properties) {
if (properties.isEmpty()) {
return;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "Ignoring runtime changes to WSBB config; " + properties);
}
// T... | java |
private synchronized static void initConfigs() {
for (int i = 0; i < moduleIDs.length; i++) {
// add module configs one by one
//addModuleInfo(moduleIDs[i] + modulePrefix);
// don't do validation since in pre-defined module
getConfigFromXMLFile(getXmlFileName(modu... | java |
public static PmiModuleConfig getConfig(String moduleID) {
if (moduleID == null)
return null;
PmiModuleConfig config = (PmiModuleConfig) moduleConfigs.get(moduleID);
if (config == null) {
// beanModule and com.ibm.websphere.pmi.xml.beanModule will work
// if... | java |
public static PmiModuleConfig findConfig(PmiModuleConfig[] configs, String moduleID) {
if (moduleID == null)
return null;
for (int i = 0; i < configs.length; i++) {
if (configs[i].getUID().equals(moduleID)) // VELA
//configs[i].getShortName().equals(moduleID))
... | java |
public synchronized static PmiModuleConfig getConfigFromXMLFile(String xmlFilePath, boolean bFromCache, boolean bValidate) {
//System.out.println ("[PerfModules] getConfigFromXMLFile(): " +xmlFilePath);
PmiModuleConfig config = null;
// if xmlFilePath = /com/ibm/websphere/pmi/customMod.xml
... | java |
public static String getDataName(String moduleName, int dataId) {
PmiModuleConfig config = PerfModules.getConfig(moduleName);
if (config == null)
return null;
PmiDataInfo info = config.getDataInfo(dataId);
if (info == null)
return null;
else
r... | java |
public static int getDataId(String moduleName, String dataName) {
PmiModuleConfig config = PerfModules.getConfig(moduleName);
// attach module name to it - this has to be consistent with the PMI xml config files
// under com/ibm/websphere/pmi/xxModule.xml
if (dataName.indexOf('.') < 0)
... | java |
public ConsumerDispatcherState getConsumerDispatcherState()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConsumerDispatcherState");
SibTr.exit(tc, "getConsumerDispatcherState", _subState);
}
return _subState;
} | java |
private void deleteDurableSubscription(
boolean callProxyCode)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "deleteDurableSubscription",
new Object[] {
new Boolean(callProxyCode) });
HashMap durableSubsTable =
_destinationManager.getDura... | java |
public static TraceComponent register(Class<?> aClass, String group) {
return register(aClass, group, null);
} | java |
public static final void dump(TraceComponent tc, String msg, Object obj) {
if (obj != null && obj instanceof Object[]) {
com.ibm.websphere.ras.Tr.dump(tc, msg, (Object[]) obj);
} else {
com.ibm.websphere.ras.Tr.dump(tc, msg, obj);
}
} | java |
public static final void entry(TraceComponent tc, String methodName, Object obj) {
if (obj != null && obj instanceof Object[]) {
com.ibm.websphere.ras.Tr.entry(tc, methodName, (Object[]) obj);
} else {
com.ibm.websphere.ras.Tr.entry(tc, methodName, obj);
}
} | java |
public static final void error(TraceComponent tc, String msg) {
com.ibm.websphere.ras.Tr.error(tc, msg);
} | java |
public static final void exit(TraceComponent tc, String methodName, Object obj) {
com.ibm.websphere.ras.Tr.exit(tc, methodName, obj);
} | java |
public String getID() {
byte[] genBytes = new byte[this.outputSize];
synchronized (this.generator) {
this.generator.nextBytes(genBytes);
}
String id = convertSessionIdBytesToSessionId(genBytes, this.idLength);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnab... | java |
public MatchResponse merge(MatchResponse matchResponse) {
if (matchResponse == null || matchResponse == this) {
return this;
} else {
boolean mergedSSLRequired = mergeSSLRequired(matchResponse.isSSLRequired());
boolean mergedAccessPrecluded = mergeAccessPrecluded(matc... | java |
protected boolean mergeSSLRequired(boolean otherSSLRequired) {
boolean mergedSSLRequired = false;
if (collectionMatch.isExactMatch()) {
mergedSSLRequired = sslRequired && otherSSLRequired;
} else if (collectionMatch.isPathMatch() || collectionMatch.isExtensionMatch()) {
m... | java |
private void _publishManagedBeanDestroyerListener(FacesContext facesContext)
{
ExternalContext externalContext = facesContext.getExternalContext();
Map<String, Object> applicationMap = externalContext.getApplicationMap();
applicationMap.put(ManagedBeanDestroyerListener.APPLICATION_MAP_KEY, ... | java |
public void setFacesInitializer(FacesInitializer facesInitializer) // TODO who uses this method?
{
if (_facesInitializer != null && _facesInitializer != facesInitializer && _servletContext != null)
{
_facesInitializer.destroyFaces(_servletContext);
}
_facesInitializer = f... | java |
private void dispatchInitializationEvent(ServletContextEvent event, int operation)
{
if (operation == FACES_INIT_PHASE_PREINIT)
{
if (!loadFacesInitPluginsJDK6())
{
loadFacesInitPluginsJDK5();
}
}
List<StartupListener> pluginEntri... | java |
public void unsetAsynchConsumer(boolean stoppable) //SIB0115d.comms
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIErrorException,
SIIncorrec... | java |
public void setAsynchConsumer(AsynchConsumerCallback consumer,
int maxActiveMessages,
long messageLockExpiry,
int maxBatchSize,
OrderingContext orderContext,
... | java |
public void exchangeStop()
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() &&... | java |
public void deleteMessages(SIMessageHandle[] msgHandles,
SITransaction tran,
int priority)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResour... | java |
public void setSessionId(short sessionId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSessionId", ""+sessionId);
if (this.sessionId == 0 && sessionId != 0)
{
this.sessionId = sessionId;
}
else
{
// If the session I... | java |
public void get(Object rootVal,
MatchSpaceKey msg,
EvalCache cache,
Object contextValue,
SearchResults result)
throws MatchingException,BadMessageFormatMatchingException
{
if (tc.isEntryEnabled())
tc.entry(this,cclass, "get", new Obj... | java |
public ContentMatcher remove(Conjunction selector, MatchTarget object, InternTable subExpr, OrdinalPosition parentId)
throws MatchingException
{
if (tc.isEntryEnabled())
tc.entry(this,cclass, "remove","selector: "+selector+", object: "+object);
vacantChild = vacantChild.remove(selector, object, subE... | java |
public int shrink()
{
byte[] old = buf;
if (pos == 0)
{
return 0; // nothing to do
}
int n = old.length - pos;
int m;
int p;
int s;
int l;
if (n < origsize)
{
buf = new byte[origsize];
p = pos... | java |
@Override
public boolean isRRSTransactional() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, hexId() + ":isRRSTransactional()=" + true);
}
return true;
} | java |
protected Compiler createCompiler(FacesContext context)
{
Compiler compiler = new SAXCompiler();
compiler.setDevelopmentProjectStage(context.isProjectStage(ProjectStage.Development));
loadLibraries(context, compiler);
loadDecorators(context, compiler);
loadOptions(context, ... | java |
protected FaceletFactory createFaceletFactory(FacesContext context, Compiler compiler)
{
ExternalContext eContext = context.getExternalContext();
// refresh period
long refreshPeriod;
if (context.isProjectStage(ProjectStage.Production))
{
refreshPeriod = WebConfi... | java |
protected String getResponseContentType(FacesContext context, String orig)
{
String contentType = orig;
// see if we need to override the contentType
Map<Object, Object> m = context.getAttributes();
if (m.containsKey("facelets.ContentType"))
{
contentType = (Stri... | java |
protected String getResponseEncoding(FacesContext context, String orig)
{
String encoding = orig;
// see if we need to override the encoding
Map<Object, Object> m = context.getAttributes();
Map<String, Object> sm = context.getExternalContext().getSessionMap();
// 1. check t... | java |
protected void initialize(FacesContext context)
{
log.finest("Initializing");
Compiler compiler = createCompiler(context);
_faceletFactory = createFaceletFactory(context, compiler);
ExternalContext eContext = context.getExternalContext();
_initializeBuffer(eContext);
... | java |
private Facelet _getFacelet(FacesContext context, String viewId) throws IOException
{
// grab our FaceletFactory and create a Facelet
FaceletFactory.setInstance(_faceletFactory);
try
{
return _faceletFactory.getFacelet(context, viewId);
}
finally
{... | java |
@Override
protected void retrieveBundleContext() {
BundleContext bc = TxBundleTools.getBundleContext();
if (tc.isDebugEnabled())
Tr.debug(tc, "retrieveBundleContext from TxBundleTools, bc " + bc);
if (bc == null) {
bc = EmbeddableTxBundleTools.getBundleContext();
... | java |
public synchronized void setRequestBufferSize(int size) {
if (size <= 0) {
throw new IllegalArgumentException("request buffer size must be greater than zero");
}
if (this.requestBuffer.size() != 0) {
throw new IllegalStateException("cannot resize non-empty ThreadPool re... | java |
@Deprecated
protected void addThread(Runnable command) {
Worker worker;
if (_isDecoratedZOS) // 331761A
worker = new DecoratedZOSWorker(command, threadid++); // 331761A
else
// 331761A
worker = new Worker(command, threadid++); // LIDB1855-58
// D5... | java |
@Deprecated
public int createThreads(int numberOfThreads) {
int ncreated = 0;
for (int i = 0; i < numberOfThreads; ++i) {
synchronized (this) {
if (poolSize_ < maximumPoolSize_) {
addThread(null);
++ncreated;
} els... | java |
@Deprecated
protected synchronized void workerDone(Worker w, boolean taskDied) {
threads_.remove(w);
if (taskDied) {
--activeThreads;
--poolSize_;
}
if (poolSize_ == 0 && shutdown_) {
maximumPoolSize_ = minimumPoolSize_ = 0; // disable new threa... | java |
@Deprecated
protected Runnable getTask(boolean oldThread) throws InterruptedException { // PK77809
long waitTime;
Runnable r = null;
boolean firstTime = true;
while (true) {
synchronized (this) {
// System.out.println("1 " + activeThreads + " : " + poolSi... | java |
public void setDecoratedZOS() { // 331761A
if (xMemSetupThread == null) {
try {
final Class xMemCRBridgeClass = Class.forName("com.ibm.ws390.xmem.XMemCRBridgeImpl");
xMemSetupThread = xMemCRBridgeClass.getMethod("setupThreadStub", new Class[] { java.lang.Object.class... | java |
public void executeOnDaemon(Runnable command) {
int id = 0;
final Runnable commandToRun = command;
synchronized (this) {
this.daemonId++;
id = this.daemonId;
}
final String runId = name + " : DMN" + id; // d185137.2
Thread t = (Thread) AccessCo... | java |
public void execute(Runnable command, int blockingMode) throws InterruptedException, ThreadPoolQueueIsFullException, IllegalStateException { // D186668
execute(command, blockingMode, 0);
} | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.