code
stringlengths
73
34.1k
label
stringclasses
1 value
public final void enforceAutoCommit(boolean autoCommit) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "enforceAutoCommit", autoCommit); // Only set values if the requested value is d...
java
private CacheMap getStatementCache() { int newSize = dsConfig.get().statementCacheSize; // Check if statement cache is dynamically enabled if (statementCache == null && newSize > 0) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc...
java
public final boolean isGlobalTransactionActive() { UOWCurrent uow = (UOWCurrent) mcf.connectorSvc.getTransactionManager(); UOWCoordinator coord = uow == null ? null : uow.getUOWCoord(); return coord != null && coord.isGlobal(); }
java
public final boolean isTransactional() { // Take a snapshot of the value with first use (or reuse from pool) of the managed connection. // This value will be cleared when the managed connection is returned to the pool. if (transactional == null) { transactional = mcf.dsConfig.get().t...
java
public void processConnectionClosedEvent(WSJdbcConnection handle) throws ResourceException { //A connection handle was closed - must notify the connection manager // of the close on the handle. JDBC connection handles // which are closed are not allowed to be reused because there is no ...
java
public void processLocalTransactionStartedEvent(Object handle) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn) { if (tc.isEntryEnabled()) Tr.entry(this, tc, "processLocalTransactionStartedEvent", handle); ...
java
public void processLocalTransactionCommittedEvent(Object handle) throws ResourceException { // A application level local transaction has been committed. final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn) { if (tc.isEntryEnabled()) ...
java
public void processConnectionErrorOccurredEvent(Object handle, Exception ex, boolean logEvent) { // Method is not synchronized because of the contract that add/remove event // listeners will only be used on ManagedConnection create/destroy, when the // ManagedConnection is not used by any other ...
java
public void statementClosed(javax.sql.StatementEvent event) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(this, tc, "statementClosed", "Notification of statement closed received from the JDBC driver", AdapterUtil.toString(even...
java
public void statementErrorOccurred(StatementEvent event) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "statementErrorOccurred", "Notification of a fatal statement error received from the JDBC...
java
public void lazyEnlistInGlobalTran(LazyEnlistableConnectionManager lazyEnlistableConnectionManager) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn) { if (tc.isEntryEnabled()) Tr.entry(this, tc, "la...
java
void refreshCachedAutoCommit() { try { boolean autoCommit = sqlConn.getAutoCommit(); if (currentAutoCommit != autoCommit) { currentAutoCommit = autoCommit; for (int i = 0; i < numHandlesInUse; i++) handlesInUse[i].setCurrentAutoCommit(...
java
private final boolean removeHandle(WSJdbcConnection handle) { // Find the handle in the list and remove it. for (int i = numHandlesInUse; i > 0;) if (handle == handlesInUse[--i]) { // Once found, the handle is removed by replacing it with the last handle in the ...
java
private void replaceCRI(WSConnectionRequestInfoImpl newCRI) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "replaceCRI", "Current:", cri, "New:", newCRI); if (numHandlesInUse > 0 ||...
java
private WSJdbcConnection[] resizeHandleList() { System.arraycopy(handlesInUse, 0, handlesInUse = new WSJdbcConnection[ maxHandlesInUse > numHandlesInUse ? maxHandle...
java
private void handleCleanReuse() throws ResourceException { // moved clearing the cache to before we issue the reuse connection //Now since a reuse was issued, the connection is restored to its orginal properties, so make sure // that you match the cri. try { currentTransact...
java
public final Object getStatement(StatementCacheKey key) { Object stmt = statementCache.remove(key); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { if (stmt == null) { Tr.debug(this, tc, "No Matching Prepared Statement found in cache"); } ...
java
public final void cacheStatement(Statement statement, StatementCacheKey key) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(this, tc, "cacheStatement", AdapterUtil.toString(statement), key); // Add the statement to the cache. If there is no room in the cache, a...
java
public void dissociateHandle(WSJdbcConnection connHandle) { if (!cleaningUpHandles && !removeHandle(connHandle)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Unable to dissociate Connection handle with current Mana...
java
public final void clearStatementCache() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // The closing of cached statements is now separated from the removing of statements // from the cache to avoid synchronization during the closing of statements. if (statementCach...
java
private ResourceException closeHandles() { ResourceException firstX = null; Object conn = null; // Indicate that we are cleaning up handles, so we know not to send events for // operations done in the cleanup. cleaningUpHandles = true; for (int i = numHandlesInUse; i >...
java
public XAResource getXAResource() throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getXAResource"); if (xares != null) { if (isTraceOn && tc.isEventEnabled()) ...
java
public final LocalTransaction getLocalTransaction() throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getLocalTransaction"); localTran = localTran == null ? n...
java
public final void setTransactionIsolation(int isoLevel) throws SQLException { if (currentTransactionIsolation != isoLevel) { // Reject switching to an isolation level of TRANSACTION_NONE if (isoLevel == Connection.TRANSACTION_NONE) { throw new SQLExce...
java
public final int getTransactionIsolation() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { try { Tr.debug(this, tc, "The current isolation level from our tracking is: ", currentTransactionIsolation); Tr.debug(this, tc, "Isolation rep...
java
public final void setHoldability(int holdability) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "setHoldability", "Set Holdability to " + AdapterUtil.getCursorHoldabilityString(holdability)...
java
public final void setCatalog(String catalog) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Set Catalog to " + catalog); sqlConn.setCatalog(catalog); connectionPropertyChanged = true; }
java
public final void setReadOnly(boolean isReadOnly) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Set readOnly to " + isReadOnly); sqlConn.setReadOnly(isReadOnly); connectionPropertyChanged = true; }
java
public final void setShardingKeys(Object shardingKey, Object superShardingKey) throws SQLException { if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_3)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(...
java
public final boolean setShardingKeysIfValid(Object shardingKey, Object superShardingKey, int timeout) throws SQLException { if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_3)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()...
java
public final void setTypeMap(Map<String, Class<?>> typeMap) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Set TypeMap to " + typeMap); try{ sqlConn.setTypeMap(typeMap); } catch(SQLFeatureNotSupportedExcept...
java
public final Object getSQLJConnectionContext(Class<?> DefaultContext, WSConnectionManager cm) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getSQLJConnectionContext"); if (sqljContext ...
java
public void setClaimedVictim() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "marking this mc as _claimedVictim"); _claimedVictim = true; }
java
public void setSchema(String schema) throws SQLException { Transaction suspendTx = null; if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_1)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(thi...
java
public String getSchema() throws SQLException { Transaction suspendTx = null; if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_1)) return null; // Global trans must be suspended for jdbc-4.1 getters and setters on zOS if (AdapterUtil.isZOS() && isGlobalTransactionActiv...
java
void setFileTag(File file) throws IOException { if (initialized && fileEncodingCcsid != 0) { int returnCode = setFileTag(file.getAbsolutePath(), fileEncodingCcsid); if (returnCode != 0) { issueTaggingFailedMessage(returnCode); } } }
java
private synchronized void issueTaggingFailedMessage(int returnCode) { if (taggingFailedIssued) { return; } System.err.println(MessageFormat.format(BootstrapConstants.messages.getString("warn.unableTagFile"), returnCode)); taggingFailedIssued = true; }
java
private static boolean registerNatives() { try { final String methodDescriptor = "zJNIBOOT_" + TaggedFileOutputStream.class.getCanonicalName().replaceAll("\\.", "_"); long dllHandle = NativeMethodHelper.registerNatives(TaggedFileOutputStream.class, methodDescriptor, null); if...
java
private static int acquireFileEncodingCcsid() { // Get the charset represented by file.encoding Charset charset = null; String fileEncoding = System.getProperty("file.encoding"); try { charset = Charset.forName(fileEncoding); } catch (Throwable t) { // Pro...
java
public static ParsedScheduleExpression parse(ScheduleExpression expr) { ParsedScheduleExpression parsedExpr = new ParsedScheduleExpression(expr); parse(parsedExpr); return parsedExpr; }
java
static void parse(ParsedScheduleExpression parsedExpr) // d639610 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "parse: " + toString(parsedExpr.getSchedule())); ScheduleExpression expr = parsedExpr.getSchedul...
java
private void parseTimeZone(ParsedScheduleExpression parsedExpr, String string) { if (parsedExpr.timeZone == null) // d639610 { if (string == null) { parsedExpr.timeZone = TimeZone.getDefault(); // d639610 } else { ...
java
private long parseDate(Date date, long defaultValue) // d666295 { if (date == null) { return defaultValue; } long value = date.getTime(); if (value > 0) { // Round up to the nearest second. long remainder = value % 1000; ...
java
private void error(ScheduleExpressionParserException.Error error) // F743-506 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "parse error in " + ivAttr + " at " + ivPos); throw new ScheduleExpressionParserException(error, ivAttr.getDisplayName(), ivStrin...
java
private void parseAttribute(ParsedScheduleExpression parsedExpr, Attribute attr, String string) { // Reset state. ivAttr = attr; ivString = string; ivPos = 0; if (string == null) { // d660135...
java
private void skipWhitespace() { while (ivPos < ivString.length() && Character.isWhitespace(ivString.charAt(ivPos))) { ivPos++; } }
java
private int scanToken() { int begin = ivPos; if (ivPos < ivString.length()) { if (ivString.charAt(ivPos) == '-') { // dayOfWeek allows tokens to begin with "-" (e.g., "-7"). We // cannot add "-" to isTokenChar or else "1-2" would be p...
java
private int findNamedValue(int begin, String[] namedValues, int min) { int length = ivPos - begin; for (int i = 0; i < namedValues.length; i++) { String namedValue = namedValues[i]; if (length == namedValue.length() && ivString.regionMatches(true, begin, namedValue,...
java
public static byte[] generateSalt(String saltString) { byte[] output = null; if (saltString == null || saltString.length() < 1) { // use randomly generated value output = new byte[SEED_LENGTH]; SecureRandom rand = new SecureRandom(); rand.setSeed(rand.gene...
java
public static byte[] digest(char[] plainBytes, byte[] salt, String algorithm, int iteration, int length) throws InvalidPasswordCipherException { if (logger.isLoggable(Level.FINE)) { logger.fine("algorithm : " + algorithm + " iteration : " + iteration); logger.fine("input length: " + plai...
java
public DERObject toASN1Object() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(digestedObjectType); if (otherObjectTypeID != null) { v.add(otherObjectTypeID); } v.add(digestAlgorithm); v.add(objectDigest); return new DERSequ...
java
private boolean findInList(Entry oEntry) { return findInList(oEntry.getHashcodes(), oEntry.getLengths(), firstCell, oEntry.getCurrentSize() - 1); }
java
private boolean putInList(Entry entry) { FilterCellFastStr currentCell = firstCell; FilterCellFastStr nextCell = null; int[] hashcodes = entry.getHashcodes(); int[] lengths = entry.getLengths(); // work from back to front int lastIndex = entry.getCurrentSize() - 1; ...
java
private Entry convertToEntries(String newAddress) { byte[] ba = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "convertToEntries"); } try { ba = newAddress.getBytes("ISO-8859-1"); } catch (UnsupportedEncodingExcepti...
java
public static void hash(byte[] data, byte[] output) { int len = output.length; if (len == 0) return; int[] code = calculate(data); for (int outIndex = 0, codeIndex = 0, shift = 24; outIndex < len && codeIndex < 5; ++outIndex, shift -= 8) { output[outIndex] = (byte...
java
public UIViewRoot createView(FacesContext context, String viewId) { checkNull(context, "context"); //checkNull(viewId, "viewId"); try { viewId = calculateViewId(context, viewId); Application application = context.getApplication(); //...
java
private Object getDestinationName(String destinationType, Object destination) throws Exception { String methodName; if ("javax.jms.Queue".equals(destinationType)) methodName = "getQueueName"; else if ("javax.jms.Topic".equals(destinationType)) methodName = "getTopicName";...
java
JCAContextProvider getJCAContextProvider(Class<?> workContextClass) { JCAContextProvider provider = null; for (Class<?> cl = workContextClass; provider == null && cl != null; cl = cl.getSuperclass()) provider = contextProviders.getService(cl.getName()); return provider; }
java
String getJCAContextProviderName(Class<?> workContextClass) { ServiceReference<JCAContextProvider> ref = null; for (Class<?> cl = workContextClass; ref == null && cl != null; cl = cl.getSuperclass()) ref = contextProviders.getReference(cl.getName()); String name = ref == null ? null...
java
public Class<?> loadClass(final String className) throws ClassNotFoundException, UnableToAdaptException, MalformedURLException { ClassLoader raClassLoader = resourceAdapterSvc.getClassLoader(); if (raClassLoader != null) { return Utils.priv.loadClass(raClassLoader, className); } else...
java
protected void setContextProvider(ServiceReference<JCAContextProvider> ref) { contextProviders.putReference((String) ref.getProperty(JCAContextProvider.TYPE), ref); }
java
private void stopResourceAdapter() { if (resourceAdapter != null) try { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "stop", resourceAdapter); ArrayList<ThreadContext> threadContext = startTask(raThreadContext...
java
@SuppressWarnings("unchecked") private ThreadContextDescriptor captureRaThreadContext(WSContextService contextSvc) { Map<String, String> execProps = new HashMap<String, String>(); execProps.put(WSContextService.DEFAULT_CONTEXT, WSContextService.ALL_CONTEXT_TYPES); execProps.put(WSContextServ...
java
private ArrayList<ThreadContext> startTask(ThreadContextDescriptor raThreadContextDescriptor) { return raThreadContextDescriptor == null ? null : raThreadContextDescriptor.taskStarting(); }
java
private void stopTask(ThreadContextDescriptor raThreadContextDescriptor, ArrayList<ThreadContext> threadContext) { if (raThreadContextDescriptor != null) raThreadContextDescriptor.taskStopping(threadContext); }
java
protected void unsetContextProvider(ServiceReference<JCAContextProvider> ref) { contextProviders.removeReference((String) ref.getProperty(JCAContextProvider.TYPE), ref); }
java
private WebAuthenticator getAuthenticatorForFailOver(String authType, WebRequest webRequest) { WebAuthenticator authenticator = null; if (LoginConfiguration.FORM.equals(authType)) { authenticator = createFormLoginAuthenticator(webRequest); } else if (LoginConfiguration.BASIC.equals(a...
java
private boolean appHasWebXMLFormLogin(WebRequest webRequest) { return webRequest.getFormLoginConfiguration() != null && webRequest.getFormLoginConfiguration().getLoginPage() != null && webRequest.getFormLoginConfiguration().getErrorPage() != null; }
java
private boolean globalWebAppSecurityConfigHasFormLogin() { WebAppSecurityConfig globalConfig = WebAppSecurityCollaboratorImpl.getGlobalWebAppSecurityConfig(); return globalConfig != null && globalConfig.getLoginFormURL() != null; }
java
public WebAuthenticator getWebAuthenticator(WebRequest webRequest) { String authMech = webAppSecurityConfig.getOverrideHttpAuthMethod(); if (authMech != null && authMech.equals("CLIENT_CERT")) { return createCertificateLoginAuthenticator(); } SecurityMetadata securityMetadata...
java
public BasicAuthAuthenticator getBasicAuthAuthenticator() { try { return createBasicAuthenticator(); } catch (RegistryException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "RegistryException while trying to create BasicAuth...
java
@Override public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws ParseException { boolean result = false; if (nsURI != null) { return result; } if (CONTEXT_ROOT_ATTRIBUTE_NAME.equals(localName)) { this.contextRoot =...
java
@Override public boolean isPersistent() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "isPersistent: " + this); // Determine if the calling bean is in a state that allows timer service // method acce...
java
public Entry getNext() { checkEntryParent(); Entry entry = null; if(!isLast()) { entry = next; } return entry; }
java
Entry insertAfter(Entry newEntry) { if (tc.isEntryEnabled()) SibTr.entry( tc, "insertAfter", new Object[] { newEntry }); checkEntryParent(); //make sure that the new entry is not already in a list if(newEntry.parentList == null) { //get the next entry ...
java
Entry remove() { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove"); checkEntryParent(); Entry removedEntry = null; Entry prevEntry = getPrevious(); if(prevEntry != null) { //link the previous entry to the next one prevEntry.next = next; } Entry nextEntry =...
java
void checkEntryParent() { if(parentList == null) { SIErrorException e = new SIErrorException( nls.getFormattedMessage( "INTERNAL_MESSAGING_ERROR_CWSIP0001", new Object[] { "com.ibm.ws.sib.processor.utils.linkedlist.Entry", "1:239:1.3" }, null...
java
@Override public Object put(Object key, Object value) { return localMap.put(key, value); }
java
static Converter getValueTypeConverter(FacesContext facesContext, UISelectMany component) { Converter converter = null; Object valueTypeAttr = component.getAttributes().get(VALUE_TYPE_KEY); if (valueTypeAttr != null) { // treat the valueType attribute exactly lik...
java
private final void checkTopicNotNull(String topic) throws InvalidTopicSyntaxException { if (topic == null) throw new InvalidTopicSyntaxException( NLS.format( "INVALID_TOPIC_ERROR_CWSIH0005", new Object[] { topic })); }
java
private CookieData matchAndParse(byte[] data, HeaderKeys hdr) { int pos = this.bytePosition; int start = -1; int stop = -1; for (; pos < data.length; pos++) { byte b = data[pos]; // found the delimiter for the name */ if ('=' == b) { ...
java
private void parseValue(byte[] data, CookieData token) { int start = -1; int stop = -1; int pos = this.bytePosition; int num_quotes = 0; // cycle through each byte until we hit a delimiter or end of data for (; pos < data.length; pos++) { byte b = data[pos];...
java
protected static JwtContext parseJwtWithoutValidation(String jwtString) throws Exception { JwtConsumer firstPassJwtConsumer = new JwtConsumerBuilder() .setSkipAllValidators() .setDisableRequireSignature() .setSkipSignatureVerification() .build(); ...
java
public static boolean isValidJmxPropertyValue(String s) { if ((s.indexOf(":") >= 0) || (s.indexOf("*") >= 0) || (s.indexOf('"') >= 0) || (s.indexOf("?") >= 0) || (s.indexOf(",") >= 0) || (s.indexOf("=") >= 0)) { return false; } else...
java
public static <R> MethodResult<R> success(R result) { return new MethodResult<>(result, null, false); }
java
public static <R> MethodResult<R> failure(Throwable failure) { return new MethodResult<>(null, failure, false); }
java
public static <R> MethodResult<R> internalFailure(Throwable failure) { return new MethodResult<R>(null, failure, true); }
java
private final void clearUnreferencedEntries() { for (WeakEntry entry = (WeakEntry) queue.poll(); entry != null; entry = (WeakEntry) queue.poll()) { WeakEntry removedEntry = (WeakEntry) super.remove(entry.key); // The entry for this key may have been replaced with another one after it...
java
protected void attachBifurcatedConsumer(BifurcatedConsumerSessionImpl consumer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "attachBifurcatedConsumer", consumer); // Create a bifurcated list if required if (_bifurcatedConsumers == null) ...
java
protected void removeBifurcatedConsumer(BifurcatedConsumerSessionImpl consumer) throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeBifurcatedConsumer", consumer); synchronized (_bifurcatedConsum...
java
void _close() throws SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "_close"); try { //close the LCP _localConsume...
java
void checkNotClosed() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkNotClosed"); try { synchronized (_localConsumerPoint) { _localConsumerPoint.checkNotClosed(...
java
protected SICoreConnection getConnectionInternal() { if (TraceComponent.isAnyTracingEnabled() && CoreSPIConsumerSession.tc.isEntryEnabled()) { SibTr.entry(CoreSPIConsumerSession.tc, "getConnectionInternal", this); SibTr.exit(CoreSPIConsumerSession.tc, "getConnectionInternal",...
java
public long getIdInternal() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getIdInternal"); SibTr.exit(tc, "getIdInternal", new Long(_consumerId)); } return _consumerId; }
java
void setId(long id) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setId", new Long(id)); _consumerId = id; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setId"); }
java
private static void createFactoryInstance() { if (tc.isEntryEnabled()) tc.entry(cclass, "createFactoryInstance"); try { Class cls = Class.forName(MATCHING_CLASS_NAME); instance = (Matching) cls.newInstance(); } catch (Exception e) { // No FFDC Code Needed. // FFD...
java
public static Matching getInstance() throws Exception { if (tc.isEntryEnabled()) tc.entry(cclass, "getInstance"); if (instance == null) throw createException; if (tc.isEntryEnabled()) tc.exit(cclass, "getInstance", "instance=" + instance); return instance; }
java
final boolean abort(boolean removeFromQueue, Throwable cause) { if (removeFromQueue && executor.queue.remove(this)) executor.maxQueueSizeConstraint.release(); if (nsAcceptEnd == nsAcceptBegin - 1) // currently unset nsRunEnd = nsQueueEnd = nsAcceptEnd = System.nanoTime(); ...
java
@Trivial final void accept(boolean runOnSubmitter) { long time; nsAcceptEnd = time = System.nanoTime(); if (runOnSubmitter) nsQueueEnd = time; state.setSubmitted(); }
java
public static String resolve(WebSphereConfig14 config, String raw) { String resolved = raw; StringCharacterIterator itr = new StringCharacterIterator(resolved); int startCount = 0; //how many times have we encountered the start token (EVAL_START_TOKEN) without it being matched by the end token (...
java