_id
stringlengths
2
7
title
stringlengths
3
140
partition
stringclasses
3 values
text
stringlengths
73
34.1k
language
stringclasses
1 value
meta_information
dict
q153300
DataSourceService.unsetJaasLoginContextEntry
train
protected void unsetJaasLoginContextEntry(ServiceReference<com.ibm.ws.security.jaas.common.JAASLoginContextEntry> svc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(this, tc, "unsetJaasLoginContextEntry", svc); } jaasLoginContextEntryName = null; }
java
{ "resource": "" }
q153301
AnnotationTargetsImpl_Targets.recordUnresolvedClass
train
protected void recordUnresolvedClass(String classOrPackageName) { if (!AnnotationTargetsVisitor.isPackageName(classOrPackageName)) { String i_className = internClassName(classOrPackageName); // Make sure to not double record the class: // A failure occur *after* recording th...
java
{ "resource": "" }
q153302
AnnotationTargetsImpl_Targets.i_setSuperclassName
train
protected void i_setSuperclassName(String i_subclassName, String i_superclassName) { i_superclassNameMap.put(i_subclassName, i_superclassName); if (tc.isDebugEnabled()) { Tr.debug(tc, MessageFormat.format("[ {0} ] Subclass [ {1} ] has superclass [ {2} ]", ...
java
{ "resource": "" }
q153303
AnnotationTargetsImpl_Targets.getPolicyData
train
protected AnnotationTargetsImpl_PolicyData getPolicyData(ScanPolicy policy) { if (policy == ScanPolicy.SEED) { scanDirectClasses(); return seedData; } else if (policy == ScanPolicy.PARTIAL) { scanDirectClasses(); return partialData; } else if (po...
java
{ "resource": "" }
q153304
AnnotationTargetsImpl_Targets.doGetPolicyData
train
protected AnnotationTargetsImpl_PolicyData doGetPolicyData(ScanPolicy policy) { if (policy == ScanPolicy.SEED) { return seedData; } else if (policy == ScanPolicy.PARTIAL) { return partialData; } else if (policy == ScanPolicy.EXCLUDED) { return excludedData;...
java
{ "resource": "" }
q153305
CommonFilter.init
train
public boolean init(String s1) { if (s1 == null) { Tr.error(tc, "AUTH_FILTER_INIT_NULL_STRING"); return false; } //break up conditions around semicolon StringTokenizer st1 = new StringTokenizer(s1, ";"); StringTokenizer st2 = null; String s2 = nul...
java
{ "resource": "" }
q153306
CommonFilter.isAccepted
train
public boolean isAccepted(IRequestInfo req) { boolean answer = true; if (processAll) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "processAll is true, therefore we always intercept."); } return answer; } ...
java
{ "resource": "" }
q153307
RemoteConsumerTransmit.containsGuesses
train
public boolean containsGuesses() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "containsGuesses"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "containsGuesses", Boolean.FALSE); return false; }
java
{ "resource": "" }
q153308
RemoteConsumerTransmit.getCurrentMaxIndoubtMessages
train
public int getCurrentMaxIndoubtMessages(int priority, int COS) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getCurrentMaxIndoubtMessages", new Object[]{new Integer(priority), new Integer(COS)}); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
{ "resource": "" }
q153309
HttpOutboundLink.getInterface
train
private HttpOutboundServiceContextImpl getInterface(VirtualConnection inVC) { if (null == this.myInterface) { this.myInterface = new HttpOutboundServiceContextImpl((TCPConnectionContext) getDeviceLink().getChannelAccessor(), this, inVC, this.myChannel.getHttpConfig()); } return this...
java
{ "resource": "" }
q153310
HttpOutboundLink.postConnectProcessing
train
protected void postConnectProcessing(VirtualConnection inVC) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Finished connecting to target: " + this + " " + inVC); } getInterface(inVC); }
java
{ "resource": "" }
q153311
HttpOutboundLink.clear
train
protected void clear() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Clearing the outbound link: " + this + " " + getVirtualConnection()); } // reset the retry flag based on the config setEnableReconnect(this.myChannel.getHttpConfig().allo...
java
{ "resource": "" }
q153312
HttpOutboundLink.reConnectSync
train
protected void reConnectSync(IOException originalExcep) throws IOException { setAllowReconnect(false); try { connect(getTargetAddress()); } catch (Exception e) { // no FFDC required if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
java
{ "resource": "" }
q153313
HttpOutboundLink.reConnectAsync
train
protected void reConnectAsync(IOException originalExcep) { setAllowReconnect(false); this.reconnecting = true; this.reconnectException = originalExcep; connectAsynch(getTargetAddress()); }
java
{ "resource": "" }
q153314
TranStrategy.resumeLocalTx
train
final void resumeLocalTx(LocalTransactionCoordinator lCoord) throws IllegalStateException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEventEnabled()) { if (lCoord != null) { Tr.event(tc, "Resuming LTC cntxt: ...
java
{ "resource": "" }
q153315
ConnectionDescriptorImpl.setAll
train
public void setAll(String _rhn, String _rha, String _lhn, String _lha) { this.remoteHostName = _rhn; this.remoteHostAddress = _rha; this.localHostName = _lhn; this.localHostAddress = _lha; this.addrLocal = null; this.addrRemote = null; }
java
{ "resource": "" }
q153316
ConnectionDescriptorImpl.setAddrs
train
public void setAddrs(InetAddress _remote, InetAddress _local) { this.addrRemote = _remote; this.addrLocal = _local; this.remoteHostName = null; this.remoteHostAddress = null; this.localHostName = null; this.localHostAddress = null; }
java
{ "resource": "" }
q153317
AliasDestinationHandler.setReceiveAllowed
train
private synchronized void setReceiveAllowed(DestinationAliasDefinition aliasDefinition) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setReceiveAllowed", aliasDefinition); ExtendedBoolean aliasIsReceiveAllowed = aliasDefinition.isReceiveAllowed(); ...
java
{ "resource": "" }
q153318
JmsQueueImpl.setQueueName
train
@Override public void setQueueName(String qName) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setQueueName", qName); setDestName(qName); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
{ "resource": "" }
q153319
RepositoryReaderImpl.getLogLocation
train
public String getLogLocation() { if (logInstanceBrowser instanceof MainLogRepositoryBrowserImpl) { return ((MainLogRepositoryBrowserImpl) logInstanceBrowser).getLocation().getAbsolutePath(); } else { return ((OneInstanceBrowserImpl) logInstanceBrowser).getLocation().getAbsolutePa...
java
{ "resource": "" }
q153320
RepositoryReaderImpl.containsLogFiles
train
public static boolean containsLogFiles(File location) { if (location == null) { return false; } location = checkKnownType(location); if (isFile(location)) { try { // Is a WBL file. if (new OneFileBrowserImpl(location).getProcessId...
java
{ "resource": "" }
q153321
RepositoryReaderImpl.listRepositories
train
public static File[] listRepositories(File parent) { if (parent == null) { throw new IllegalArgumentException("Input parameter can't be null."); } parent = checkKnownType(parent); if (!parent.isDirectory()) { throw new IllegalArgumentException("Input parameter sho...
java
{ "resource": "" }
q153322
RepositoryReaderImpl.getLogLists
train
@Override public Iterable<ServerInstanceLogRecordList> getLogLists() { return getLogLists((Date) null, (Date) null, (LogRecordHeaderFilter) null); }
java
{ "resource": "" }
q153323
RepositoryReaderImpl.getLogLists
train
public Iterable<ServerInstanceLogRecordList> getLogLists(int minLevel, int maxLevel) { return getLogLists((Date) null, (Date) null, new LevelFilter(minLevel, maxLevel)); }
java
{ "resource": "" }
q153324
RepositoryReaderImpl.getLogListForServerInstance
train
public ServerInstanceLogRecordList getLogListForServerInstance(Date time, final LogRecordHeaderFilter filter) { ServerInstanceByTime instance = new ServerInstanceByTime(time == null ? -1 : time.getTime()); if (instance.logs == null && instance.traces == null) { return EMPTY_LIST; } ...
java
{ "resource": "" }
q153325
XATransactionWrapper.addSync
train
@Override public boolean addSync() throws ResourceException { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isEntryEnabled()) { Tr.entry(this, tc, "addSync"); } UOWCoordinator uowCoord = mcWrapper.getUOWCoordinator();...
java
{ "resource": "" }
q153326
XATransactionWrapper.end
train
@Override public void end(Xid xid, int flags) throws XAException { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isEntryEnabled()) Tr.entry(this, tc, "end"); if (getMcWrapper().isMCAborted()) { Tr.exit(tc, "Connec...
java
{ "resource": "" }
q153327
XATransactionWrapper.delist
train
@Override public void delist() throws ResourceException { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isEntryEnabled()) Tr.entry(this, tc, "delist", mcWrapper.getUOWCoordinator()); enlisted = false; if (isTracingEn...
java
{ "resource": "" }
q153328
XATransactionWrapper.setTransactionTimeout
train
@Override public boolean setTransactionTimeout(int seconds) throws XAException { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isEntryEnabled()) Tr.entry(this, tc, "setTransactionTimeout"); boolean rc = false; try { ...
java
{ "resource": "" }
q153329
XATransactionWrapper.processXAException
train
public void processXAException(XAException xae) { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if ((xae.errorCode == XAException.XAER_RMERR) || (xae.errorCode == XAException.XAER_RMFAIL)) { if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(t...
java
{ "resource": "" }
q153330
WABGroup.addWab
train
void addWab(WAB wab, WABInstaller installer) { if (!Thread.holdsLock(this)) { throw new IllegalStateException(); } if (wabs == null) { wabs = new ConcurrentLinkedQueue<WAB>(); } wabs.add(wab); //if the group is uninstalled, this is a late wab addi...
java
{ "resource": "" }
q153331
WABGroup.uninstallGroup
train
void uninstallGroup(WABInstaller installer) { //call for each of them to be removed //in practice this will only mean one web container removal for the group //but we need all the removes to update the WAB states. if (wabs != null) { //iterating over a concurrentlinkedqueue w...
java
{ "resource": "" }
q153332
WABGroup.removeWAB
train
boolean removeWAB(WAB wab) { if (!Thread.holdsLock(this)) { throw new IllegalStateException(); } //this is invoked _after_ the wab is uninstalled from the web container, //and is our chance to forget the wab, thus we don't need to care about //the group uninstallatio...
java
{ "resource": "" }
q153333
RemoteConsumerDispatcher.put
train
public void put(List undeliveredMessages, boolean isRestoring) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this,tc, "put", undeliveredMessages); int length = undeliveredMessages.size(); // read the RemoteQPConsumerKey for later on updating the...
java
{ "resource": "" }
q153334
RemoteConsumerDispatcher.reachabilityChange
train
public void reachabilityChange(boolean reachable) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this,tc, "reachabilityChange", Boolean.valueOf(reachable)); Object[] clonedConsumerPoints = null; synchronized (consumerPoints) { // If we went from reachable to...
java
{ "resource": "" }
q153335
RemoteConsumerDispatcher.disconnectCardOneConsumer
train
public void disconnectCardOneConsumer() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "disconnectCardOneConsumer"); Object[] clonedConsumerPoints = null; synchronized (consumerPoints) { // we clone the list before notifying the exception, since the CP's may c...
java
{ "resource": "" }
q153336
RemoteConsumerDispatcher.createConsumerKey
train
protected DispatchableKey createConsumerKey(DispatchableConsumerPoint consumerPoint, SelectionCriteria criteria, SIBUuid12 connectionUuid, boolean readAhead, ...
java
{ "resource": "" }
q153337
RemoteConsumerDispatcher.createConsumerKeyGroup
train
protected JSKeyGroup createConsumerKeyGroup(JSConsumerSet consumerSet) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createConsumerKeyGroup", consumerSet); JSKeyGroup ckg = new RemoteQPConsumerKeyGroup(this); if (TraceComponent.isAnyTracingEnabled() && tc.isEn...
java
{ "resource": "" }
q153338
RemoteConsumerDispatcher.eventPostCommitAdd
train
protected void eventPostCommitAdd(SIMPMessage msg, TransactionCommon transaction) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "eventPostCommitAdd", new Object[]{msg, transaction}); SibTr.exit(tc, "eventPostCommitAdd"); } }
java
{ "resource": "" }
q153339
RemoteConsumerDispatcher.eventUnlocked
train
protected void eventUnlocked(SIMPMessage msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "eventUnlocked", msg); AIMessageItem message = (AIMessageItem) msg; // dispatch internal will add it to the timeoutManager if it can't find a ready consumer dispatc...
java
{ "resource": "" }
q153340
RemoteConsumerDispatcher.getRejectTimeout
train
public long getRejectTimeout() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRejectTimeout"); boolean localCardinalityOne; synchronized (consumerPoints) { localCardinalityOne = _cardinalityOne; } if (localCardinalityOne) { if (TraceCompo...
java
{ "resource": "" }
q153341
MDBRuntimeImpl.setMessageEndpointCollaborator
train
@Reference(name = "messageEndpointCollaborator", service = MessageEndpointCollaborator.class, cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY) protected void setMessageEndpointColla...
java
{ "resource": "" }
q153342
MDBRuntimeImpl.getRRSXAResource
train
@Override public XAResource getRRSXAResource(String activationSpecId, Xid xid) throws XAResourceNotAvailableException { RRSXAResourceFactory factory = rrsXAResFactorySvcRef.getService(); if (factory == null) { return null; } else { return factory.getTwoPhaseXAResource...
java
{ "resource": "" }
q153343
MDBRuntimeImpl.addAdminObjectService
train
private void addAdminObjectService(ServiceReference<AdminObjectService> reference, String id, boolean jndiName) { NamedAdminObjectServiceInfo aosInfo = createNamedAdminObjectServiceInfo(id); aosInfo.getServices(jndiName).addReference(reference); // If the highest reference after updating is the...
java
{ "resource": "" }
q153344
MDBRuntimeImpl.removeAdminObjectService
train
protected synchronized void removeAdminObjectService(ServiceReference<AdminObjectService> reference) { String id = (String) reference.getProperty(ADMIN_OBJECT_CFG_ID); if (id != null) { removeAdminObjectService(reference, id, false); String jndiName = (String) reference.getPrope...
java
{ "resource": "" }
q153345
MDBRuntimeImpl.removeAdminObjectService
train
protected void removeAdminObjectService(ServiceReference<AdminObjectService> reference, String id, boolean jndiName) { NamedAdminObjectServiceInfo aosInfo = adminObjectServices.get(id); if (aosInfo != null) { aosInfo.getServices(jndiName).removeReference(reference); // If the hi...
java
{ "resource": "" }
q153346
MDBRuntimeImpl.removeEndPointActivationService
train
protected synchronized void removeEndPointActivationService(ServiceReference<EndpointActivationService> reference) { String activationSvcId = (String) reference.getProperty(ACT_SPEC_CFG_ID); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "activationSvcId : " ...
java
{ "resource": "" }
q153347
MDBRuntimeImpl.activateDeferredEndpoints
train
private void activateDeferredEndpoints(Set<MessageEndpointFactoryImpl> mefs) { for (MessageEndpointFactoryImpl mef : mefs) { if (!mef.runtimeActivated) { try { if (mef.endpointActivationServiceInfo.getAutoStart() == false && mef.shouldActivate == false) { ...
java
{ "resource": "" }
q153348
MDBRuntimeImpl.activateEndpointInternal
train
private void activateEndpointInternal(MessageEndpointFactoryImpl mef, boolean explicit) throws ResourceException { // Wait for the destination if specified by the MDB. If it is instead // specified on the activationSpec, then the EndpointActivationService // won't be registered until the destin...
java
{ "resource": "" }
q153349
MDBRuntimeImpl.deactivateEndpoints
train
private void deactivateEndpoints(Set<MessageEndpointFactoryImpl> mefs) { for (MessageEndpointFactoryImpl mef : mefs) { if (mef.runtimeActivated) { deactivateEndpointInternal(mef); } } }
java
{ "resource": "" }
q153350
PtoPMessageItemStream.restore
train
public void restore(ObjectInputStream ois, int dataVersion) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "restore", new Object[] { ois, new Integer(dataVersion) }); checkPersistentVersionId(dataVersion); try { HashMap hm = (HashMap)ois.readO...
java
{ "resource": "" }
q153351
PtoPMessageItemStream.getActiveTransactions
train
public void getActiveTransactions(Set<PersistentTranId> transactionList) throws MessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getActiveTransactions", transactionList); AbstractItem item = null; NonLockingCursor cursor = new...
java
{ "resource": "" }
q153352
LTPAKeyFileUtilityImpl.generateLTPAKeys
train
protected final Properties generateLTPAKeys(byte[] keyPasswordBytes, final String realm) throws Exception { Properties expProps = null; try { KeyEncryptor encryptor = new KeyEncryptor(keyPasswordBytes); LTPAKeyPair pair = LTPADigSignature.generateLTPAKeyPair(); byte[...
java
{ "resource": "" }
q153353
LTPAKeyFileUtilityImpl.getOutputStream
train
private OutputStream getOutputStream(final String keyFile) throws IOException { try { return AccessController.doPrivileged(new PrivilegedExceptionAction<OutputStream>() { @Override public OutputStream run() throws IOException { return new FileOutpu...
java
{ "resource": "" }
q153354
LTPAKeyFileUtilityImpl.addLTPAKeysToFile
train
protected void addLTPAKeysToFile(OutputStream os, Properties ltpaProps) throws Exception { try { // Write the ltpa key propeperties to ltpaProps.store(os, null); } catch (IOException e) { throw e; } finally { if (os != null) try { ...
java
{ "resource": "" }
q153355
TagFileScanVisitor.checkConflict
train
private String checkConflict(Element elem, String oldAttrValue, String attr) throws JspCoreException { String result = oldAttrValue; String attrValue = null; if (elem.getAttributeNode(attr) != null ) { attrValue = elem.getAttributeNode(attr).getValue(); } if (attrValue != null) { if (oldAttrValue !...
java
{ "resource": "" }
q153356
FileArtifactNotifier.convertAbsToRelative
train
private Set<String> convertAbsToRelative(Collection<File> files) { Set<String> result = new HashSet<String>(); for (File f : files) { String fAbsPath = PathUtils.fixPathString(f); //assumption here that f is a dir, and path will end in File.seperator if (fAbsPath.startsWith(rootA...
java
{ "resource": "" }
q153357
TCPPort.processNewConnection
train
public void processNewConnection(SocketIOChannel socket) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "processNewConnection"); } VirtualConnection vc = vcf.createConnection(); TCPConnLink bc = (TCPConnLink) tcpChannel.getConnectionLink(vc...
java
{ "resource": "" }
q153358
TaskList.declareAlreadyPrecommitted
train
public final void declareAlreadyPrecommitted() throws TaskListException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "declareAlreadyPrecommitted"); if (STATE_UNTOUCHED == _state) { _state = STATE_END_PRECOMMIT; } else i...
java
{ "resource": "" }
q153359
CookieUtils.needsQuote
train
private static boolean needsQuote(String value) { if (null == value) return true; int len = value.length(); if (0 == len) { return true; } if ('"' == value.charAt(0)) { if ('"' == value.charAt(len - 1)) { // already wrapped with...
java
{ "resource": "" }
q153360
CookieUtils.maybeQuote
train
private static void maybeQuote(StringBuilder buff, String value) { // PK48169 - handle a null value as well as an empty one if (null == value || 0 == value.length()) { buff.append("\"\""); } else if (needsQuote(value)) { buff.append('"'); buff.append(value); ...
java
{ "resource": "" }
q153361
CookieUtils.convertV0Cookie
train
private static String convertV0Cookie(HttpCookie cookie) { StringBuilder buffer = new StringBuilder(40); // Append name=value buffer.append(cookie.getName()); String value = cookie.getValue(); if (null != value && 0 != value.length()) { buffer.append('='); ...
java
{ "resource": "" }
q153362
CookieUtils.convertV1Cookie
train
private static String convertV1Cookie(HttpCookie cookie) { StringBuilder buffer = new StringBuilder(40); // Append name=value buffer.append(cookie.getName()); buffer.append('='); maybeQuote(buffer, cookie.getValue()); // Always append the version buffer.append("...
java
{ "resource": "" }
q153363
CookieUtils.convertV1SetCookie
train
private static String convertV1SetCookie(HttpCookie cookie) { StringBuilder buffer = new StringBuilder(40); // Append name=value buffer.append(cookie.getName()); buffer.append('='); maybeQuote(buffer, cookie.getValue()); // insert version - required buffer.appen...
java
{ "resource": "" }
q153364
ConversationMetaDataImpl.getRemoteAddress
train
public InetAddress getRemoteAddress() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getRemoteAddress"); InetAddress result = null; TCPConnectionContext tcpContext = null; ConnectionLink connLinkRef = baseLink.getDeviceLink(); if (connLinkRef !...
java
{ "resource": "" }
q153365
SessionManagerMBeanImpl.filterUnexpectedKeys
train
private Map<String, Object> filterUnexpectedKeys(Map<String, Object> inputProps) { Map<String, Object> outputProps = new HashMap<String, Object>(); Set<Entry<String, Object>> entries = inputProps.entrySet(); for (Map.Entry<String, Object> entry : entries) { String key = entry.getKey...
java
{ "resource": "" }
q153366
SessionManagerMBeanImpl.publishToRepository
train
private void publishToRepository(String attributeName, String attributeType, Object oldValue, Object newValue) { super.sendNotification(new AttributeChangeNotification( this, sequenceNum.incrementAndGet(), System.currentTimeMillis(), ...
java
{ "resource": "" }
q153367
TimedExitThread.main
train
public static void main(String[] args) { final boolean testTimeout = true; final boolean testDeadlock = false; final boolean testShutdown = true; final long timeout = 1000; final Object lock1 = new Object(); final Object lock2 = new Object(); final Thread thread...
java
{ "resource": "" }
q153368
ServerTransportFactory.startServerComms
train
public static void startServerComms() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "startServerComms"); try { ServerConnectionManager.initialise(new AcceptListenerFactoryImpl()); } catch (Throwable t) { FFDCFilter.process...
java
{ "resource": "" }
q153369
LocalTranCoordImpl.enlistSynchronization
train
public void enlistSynchronization(javax.transaction.Synchronization sync) throws IllegalStateException { if (tc.isEntryEnabled()) Tr.entry(tc, "enlistSynchronization", sync); /* Dont need this check on sync enlistment if ((_current == null) || (_current.globalTranExists())) { ...
java
{ "resource": "" }
q153370
LocalTranCoordImpl.suspend
train
protected void suspend() { if (tc.isEntryEnabled()) Tr.entry(tc, "suspend"); _current = null; _state = Suspended; if (tc.isEntryEnabled()) Tr.exit(tc, "suspend"); }
java
{ "resource": "" }
q153371
LocalTranCoordImpl.resume
train
protected void resume(LocalTranCurrentImpl current) { if (tc.isEntryEnabled()) Tr.entry(tc, "resume", current); _current = current; _state = Running; if (tc.isEntryEnabled()) Tr.exit(tc, "resume"); }
java
{ "resource": "" }
q153372
LocalTranCoordImpl.getComponentMetadataForLTC
train
protected void getComponentMetadataForLTC() { if (_deferredConfig) { if (tc.isEntryEnabled()) Tr.entry(tc, "getComponentMetadataForLTC"); _deferredConfig = false; if (tc.isEntryEnabled()) Tr.exit(tc, "getComponentMetadataForLTC"); } }
java
{ "resource": "" }
q153373
ConversationState.setConnectionObjectId
train
public void setConnectionObjectId(short connectionObjectId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setConnectionObjectId", Short.valueOf(connectionObjectId)); this.connectionObjectId = connectionObjectId; if (TraceComponent.isAny...
java
{ "resource": "" }
q153374
ConversationState.setCachedConsumerProps
train
public void setCachedConsumerProps(CachedSessionProperties props) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setCachedConsumerProps", props); this.cachedProps = props; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
{ "resource": "" }
q153375
ConversationState.setCachedConsumer
train
public void setCachedConsumer(CATMainConsumer consumer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setCachedConsumer", consumer); this.cachedConsumer = consumer; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
{ "resource": "" }
q153376
ConversationState.addObject
train
public synchronized int addObject(Object object) throws ConversationStateFullException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "addObject", "object=" + object); int objectIndex = 0; if (freeSlot == MINUS_ONE) { // Object ...
java
{ "resource": "" }
q153377
ConversationState.extendObjectTable
train
private synchronized void extendObjectTable() throws ConversationStateFullException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "extendObjectTable"); int newTableSize = (((maxIndex + 1) * OBJECT_TABLE_EXTEND_FACTOR) - OBJECT_TABLE_ORIGIN); ...
java
{ "resource": "" }
q153378
ConversationState.getObject
train
public synchronized Object getObject(int objectIndex) throws IndexOutOfBoundsException, NoSuchElementException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getObject", "" + objectIndex); Object object; if ((object...
java
{ "resource": "" }
q153379
ConversationState.removeObject
train
public synchronized Object removeObject(int objectIndex) throws IndexOutOfBoundsException, NoSuchElementException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeObject", Integer.valueOf(objectIndex)); if ((objectIndex ...
java
{ "resource": "" }
q153380
ConversationState.dumpObjectTable
train
public void dumpObjectTable(int numberOfEntries) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dumpObjectTable"); if (numberOfEntries < 0) { throw new IllegalArgumentException(); } if (TraceComponent.isAnyT...
java
{ "resource": "" }
q153381
ConversationState.setInitialRequestNumber
train
public void setInitialRequestNumber(int initialRequestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setInitialRequestNumber", Integer.valueOf(initialRequestNumber)); this.requestNumber = initialRequestNumber; if (TraceComponent....
java
{ "resource": "" }
q153382
ConversationState.getUniqueRequestNumber
train
public synchronized int getUniqueRequestNumber() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getUniqueRequestNumber"); // Always add two requestNumber += 2; if (requestNumber > Short.MAX_VALUE) { // Reset...
java
{ "resource": "" }
q153383
ConversationState.getLastItemsInStore
train
public synchronized String getLastItemsInStore() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLastItemsInStore"); String lastItems = ""; // The last item in the store will be at position maxIndex. Dump all the items 100 below that ...
java
{ "resource": "" }
q153384
ConversationState.putChunkedMessageWrapper
train
public void putChunkedMessageWrapper(long wrapperId, ChunkedMessageWrapper wrapper) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putChunkedMessageWrapper", new Object[] { Long.valueOf(wrapperId), wrapper }); inProgressMessages.put(Long.valueOf...
java
{ "resource": "" }
q153385
ConversationState.removeChunkedMessageWrapper
train
public void removeChunkedMessageWrapper(long wrapperId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeChunkedMessageWrapper", Long.valueOf(wrapperId)); inProgressMessages.remove(Long.valueOf(wrapperId)); if (TraceComponent.isAnyTr...
java
{ "resource": "" }
q153386
InjectionTarget.setInjectionBinding
train
public void setInjectionBinding(InjectionBinding<?> injectionBinding) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setInjectionBinding : " + injectionBinding); ivInjectionBinding = injectionBinding; }
java
{ "resource": "" }
q153387
StringCharArrayAccessor.createString
train
public static String createString(char[] charBuf) { if (!enabled) { return createStringFallback(charBuf); } String str = new String(); try { // try to prevent possible final field setting execution reordering in JIT // (JSR-133/JM...
java
{ "resource": "" }
q153388
BuzzHash.computeHashCode
train
public static final long computeHashCode(String str, boolean modifyAlgorithm) { // d179573 Ends // to avoid EBCDIC / ASCII / Unicdoe encoding difference (i.e. z/OS390) // uses toCharArray() instead of getBytes(). char chars[] = str.toCharArray(); // Corrected the algorithm ...
java
{ "resource": "" }
q153389
UIViewRoot.addPhaseListener
train
public void addPhaseListener(PhaseListener phaseListener) { if (phaseListener == null) { throw new NullPointerException("phaseListener"); } getStateHelper().add(PropertyKeys.phaseListeners, phaseListener); }
java
{ "resource": "" }
q153390
UIViewRoot.getAfterPhaseListener
train
@JSFProperty(returnSignature = "void", methodSignature = "javax.faces.event.PhaseEvent", jspName = "afterPhase", stateHolder=true) public MethodExpression getAfterPhaseListener() { return (MethodExpression) getStateHelper().eval(PropertyKeys.afterPhaseListener); }
java
{ "resource": "" }
q153391
UIViewRoot.getBeforePhaseListener
train
@JSFProperty(returnSignature = "void", methodSignature = "javax.faces.event.PhaseEvent", jspName = "beforePhase", stateHolder=true) public MethodExpression getBeforePhaseListener() { return (MethodExpression) getStateHelper().eval(PropertyKeys.beforePhaseListener); }
java
{ "resource": "" }
q153392
UIViewRoot._broadcastAll
train
private boolean _broadcastAll(FacesContext context, List<? extends FacesEvent> events, Collection<FacesEvent> eventsAborted) { assert events != null; for (int i = 0; i < events.size(); i++) { FacesEvent event = events...
java
{ "resource": "" }
q153393
UIViewRoot.removePhaseListener
train
public void removePhaseListener(PhaseListener phaseListener) { if (phaseListener == null) { return; } getStateHelper().remove(PropertyKeys.phaseListeners, phaseListener); }
java
{ "resource": "" }
q153394
UIViewRoot._process
train
private boolean _process(FacesContext context, PhaseId phaseId, PhaseProcessor processor) { RuntimeException processingException = null; try { if (!notifyListeners(context, phaseId, getBeforePhaseListener(), true)) { try { ...
java
{ "resource": "" }
q153395
UIViewRoot._getEvents
train
private Events _getEvents(PhaseId phaseId) { // Gather the events and purge the event list to prevent concurrent modification during broadcasting int size = _events.size(); List<FacesEvent> anyPhase = new ArrayList<FacesEvent>(size); List<FacesEvent> onPhase = new ArrayList<FacesEven...
java
{ "resource": "" }
q153396
Pattern.getClause
train
private boolean getClause(Iterator tokens, List clause) { while(tokens.hasNext()) { Object token = tokens.next(); if (token == matchMany) return true; clause.add(token); } return false; }
java
{ "resource": "" }
q153397
Pattern.checkPrefix
train
boolean checkPrefix(char[] chars, int[] cursor) { if (prefix == null) return true; else return matchClause(prefix, chars, cursor); }
java
{ "resource": "" }
q153398
Pattern.matchForward
train
static boolean matchForward(char[] chars, char[] pattern, int[] cursor) { if (pattern.length > cursor[1] - cursor[0]) return false; int index = 0; while (index < pattern.length) if (chars[cursor[0]++] != pattern[index++]) return false; return true; }
java
{ "resource": "" }
q153399
Pattern.checkSuffix
train
boolean checkSuffix(char[] chars, int[] cursor) { if (suffix == null) return true; // Compute the only possible starting point. This only works because a clause's minlen // is an exact length for SQL-style patterns. This method is overridden for topic // patterns. int start = cursor[1] - suff...
java
{ "resource": "" }