code
stringlengths
73
34.1k
label
stringclasses
1 value
public Runnable execute(Runnable command, long timeoutInMillis) throws InterruptedException, IllegalStateException { try { return execute(command, WAIT_WHEN_QUEUE_IS_FULL, timeoutInMillis); } catch (ThreadPoolQueueIsFullException e) { // we should not get here. // Ale...
java
public void setMonitorPlugin(MonitorPlugin plugin) throws TooManyListenersException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setMonitorPlugin", plugin); } if (this.monitorPlugin != null && !this.monitorPlugin.equals(plugin)) { t...
java
public void checkAllThreads() { // if nothing is plugged in, exit early if (this.monitorPlugin == null) { return; } long currentTime = 0; // lazily initialize current time try { for (Iterator i = this.threads_.values().iterator(); i.hasNext();) { ...
java
public FilterCellSlowStr findNextCell(String nextValue) { if (nextCell == null) { return null; } return nextCell.get(nextValue); }
java
protected boolean invokeGeneratePluginCfgMBean(ParseLoginAddress loginAddress, String clusterName, String targetPath, String option) { boolean success = false; try { success = connection.generatePluginConfig(loginAddress, clusterName, targetPath ,option); if (success) success = copyFileToTargetPath(...
java
public static TraceFactory getTraceFactory(NLS nls) { return (TraceFactory) Utils.getImpl("com.ibm.ws.objectManager.utils.TraceFactoryImpl", new Class[] { NLS.class }, new Object[] { nls }); }
java
public void setActiveTrace(String activeNames, int traceLevel) throws java.io.IOException { TraceFactory.activeNames = activeNames; TraceFactory.traceLevel = traceLevel;; }
java
protected void setSICoreConnection(SICoreConnection connection) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSICoreConnection", connection); //Retrieve Client Conversation State if necessary validateConversationState(); cConState.setSICoreConne...
java
public Serializable copy(Serializable obj) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "copy : " + Util.identity(obj)); // ----------------------------------------------------------------------- // ...
java
public ScheduleExpression copy(ScheduleExpression schedule) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "copy ScheduleExpression: " + Util.identity(schedule)); // 'schedule' could be a subclass of ScheduleExpression, so only // use the base cl...
java
public static ScheduleExpression copyBase(ScheduleExpression schedule) // d632906 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "copy copyBase: " + Util.identity(schedule)); // 'schedule' could be a subclass of ScheduleExpression. // Use only th...
java
BigInteger setMultiChoiceCount() { if (fields != null) for (int i = 0; i < fields.length; i++) multiChoiceCount = multiChoiceCount.multiply(fields[i].setMultiChoiceCount()); return multiChoiceCount; }
java
public JSVariant[] getDominatedVariants() { if (dominated == null) { List dom = new ArrayList(); getDominatedVariants(dom); dominated = (JSVariant[])dom.toArray(new JSVariant[0]); } return dominated; }
java
public static ChainStartMode getKey(int ordinal) { if (ordinal >= 0 && ordinal < _values.length) { return _values[ordinal]; } return null; }
java
public static InjectionTarget getInjectionTarget(ComponentNameSpaceConfiguration compNSConfig, ClientInjection injection) throws InjectionException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "ge...
java
protected ArrayList filterXidsByType(Xid[] xidArray) { if (tc.isEntryEnabled()) Tr.entry(tc, "filterXidsByType", xidArray); final ArrayList<XidImpl> xidList = new ArrayList<XidImpl>(); if (xidArray != null) { /*----------------------------------------------------------*...
java
protected ArrayList filterXidsByCruuidAndEpoch(ArrayList xidList, byte[] cruuid, int epoch) { if (tc.isEntryEnabled()) Tr.entry(tc, "filterXidsByCruuidAndEpoch", new Object[] { ...
java
protected boolean canWeForgetXid(XidImpl ourXid, Xid[] knownXids) { if (tc.isEntryEnabled()) Tr.entry(tc, "canWeForgetXid", new Object[] { ourXid, knownXids }); if (tc.isDebugEn...
java
private static void propogateSecureSession(HttpServletRequest request, Message message) { final String cipherSuite = (String) request.getAttribute(SSL_CIPHER_SUITE_ATTRIBUTE); if (cipherSuite != null) { final java.security.cert.Certi...
java
private void cacheInput(Message outMessage) { if (outMessage.getExchange() == null) { return; } Message inMessage = outMessage.getExchange().getInMessage(); if (inMessage == null) { return; } Object o = inMessage.get("cxf.io.cacheinput"); D...
java
public static void processException(Object source ,Class sourceClass ,String methodName ,Throwable throwable ,String probe ,Object[] ob...
java
static void print(Object object,java.io.PrintWriter printWriter) { if (object instanceof Printable) { ((Printable)object).print(printWriter); } else { printWriter.print(object); } // if (object instanceof Printable). }
java
byte[] getServiceData() throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "getServiceData", this); // Check that the file is actually open if (_activeFile == null) { if (tc.isEntryEnabled()) Tr.exit(tc, "getServiceData", "Int...
java
LogFileHeader logFileHeader() throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "logFileHeader", this); // Check that the file is actually open if (_activeFile == null) { if (tc.isEntryEnabled()) Tr.exit(tc, "logFileHeader", ...
java
ArrayList<ReadableLogRecord> recoveredRecords() { if (tc.isDebugEnabled()) Tr.debug(tc, "recoveredRecords", _recoveredRecords); return _recoveredRecords; }
java
void setServiceData(byte[] serviceData) throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "setServiceData", new java.lang.Object[] { RLSUtils.toHexString(serviceData, RLSUtils.MAX_DISPLAY_BYTES), this }); // Check that the files are available if ((_file1 == nul...
java
protected void writeLogRecord(LogRecord logRecord) { if (tc.isEntryEnabled()) Tr.entry(tc, "writeLogRecord", logRecord); _activeFile.writeLogRecord(logRecord); if (tc.isEntryEnabled()) Tr.exit(tc, "writeLogRecord"); }
java
public static Map<String, String> processArchiveManifest(final JarFile jarFile) throws Throwable { Map<String, String> manifestAttrs = null; if (jarFile != null) { try { manifestAttrs = AccessController.doPrivileged(new PrivilegedExceptionAction<Map<String, String>>() { ...
java
public static Map<String, String> processArchiveManifest(final File file) throws Throwable { Map<String, String> manifestAttrs = null; if (file != null && file.isFile() && ArchiveFileType.JAR.isType(file.getPath())) { JarFile jarFile = null; try { jarFile = new J...
java
public static String getLicenseAgreement(final JarFile jar, final Map<String, String> manifestAttrs) { String licenseAgreement = null; if (manifestAttrs.isEmpty()) { return licenseAgreement; } String licenseAgreementPrefix = manifestAttrs.get(ArchiveUtils.LICENSE_AGREEMENT)...
java
public void deactivate(ComponentContext context) { if (contextRef.get() == null) { // Components are only deactivated if they activate successfully, // and component instances are discarded after being deactivated. // This is either DS or programmer error. throw n...
java
public void init(HttpInboundServiceContext sc) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); }
java
public void init(HttpOutboundServiceContext sc) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); setVersion(getServiceContext().getHttpConfig().getOutgoingVersion());...
java
public void init(HttpInboundServiceContext sc, BNFHeaders hdrs) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); if (null != hdrs) { hdrs.duplicate(this);...
java
public void init(HttpOutboundServiceContext sc, BNFHeaders hdrs) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); if (null != hdrs) { hdrs.duplicate(this)...
java
@Override public WsByteBuffer[] encodePseudoHeaders() { WsByteBuffer[] firstLine = new WsByteBuffer[1]; firstLine[0] = allocateBuffer(getOutgoingBufferSize()); LiteralIndexType indexType = LiteralIndexType.NOINDEXING; //For the time being, there will be no indexing on the responses ...
java
@Override public void setMethod(String method) throws UnsupportedMethodException { MethodValues val = MethodValues.match(method, 0, method.length()); if (null == val) { throw new UnsupportedMethodException("Illegal method " + method); } setMethod(val); }
java
@Override public void setMethod(MethodValues method) { this.myMethod = method; super.setFirstLineChanged(); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "setMethod(v): " + (null != method ? method.getName() : null)); } }
java
@Override final public String getRequestURI() { if (null == this.myURIString) { this.myURIString = GenericUtils.getEnglishString(this.myURIBytes); } return this.myURIString; }
java
private String getTargetHost() { String host = getVirtualHost(); if (null == host) { host = (isIncoming()) ? getServiceContext().getLocalAddr().getCanonicalHostName() : getServiceContext().getRemoteAddr().getCanonicalHostName(); } return host; }
java
private int getTargetPort() { int port = getVirtualPort(); if (NOTSET == port) { port = (isIncoming()) ? getServiceContext().getLocalPort() : getServiceContext().getRemotePort(); } return port; }
java
@Override public int getVirtualPort() { if (HeaderStorage.NOTSET != this.iUrlPort) { // use the port from the parsed URL return this.iUrlPort; } if (NOT_PRESENT <= this.iHdrPort) { // already searched the header value and either found it or not, ...
java
private void parseURI(byte[] data, int start) { // at this point, we're parsing /URI [?querystring] if (start >= data.length) { // PK22096 - default to "/" if not found, should have caught empty // string inputs previously (http://host:port is valid) this.myURIBytes =...
java
private void parseScheme(byte[] data) { // we know the first character is correct, find the colon for (int i = 1; i < data.length; i++) { if (':' == data[i]) { SchemeValues val = SchemeValues.match(data, 0, i); if (null == val) { throw new ...
java
@Override public void setRequestURI(byte[] uri) { if (null == uri || 0 == uri.length) { throw new IllegalArgumentException("setRequestURI: null input"); } super.setFirstLineChanged(); if ('*' == uri[0]) { // URI of "*" can only be one character long to be va...
java
public void initScheme() { // set the scheme based on whether the socket is secure or not if (null == getServiceContext() || null == getServiceContext().getTSC()) { // discrimination path, not ready for this yet return; } if (getServiceContext().isSecure()) { ...
java
@Override public String getScheme() { // if it hasn't been set yet, then check whether the SC is secure // or not and set the value accordingly if (null == this.myScheme) { initScheme(); } if (null == this.myScheme) { // if the request has been already destroyed t...
java
@Override public void setScheme(SchemeValues scheme) { this.myScheme = scheme; super.setFirstLineChanged(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setScheme(v): " + (null != scheme ? scheme.getName() : null)); } }
java
private void deserializeMethod(ObjectInput stream) throws IOException, ClassNotFoundException { MethodValues method = null; if (SERIALIZATION_V2 == getDeserializationVersion()) { method = MethodValues.find(readByteArray(stream)); } else { method = MethodValues.find((Strin...
java
private void deserializeScheme(ObjectInput stream) throws IOException, ClassNotFoundException { SchemeValues scheme = null; if (SERIALIZATION_V2 == getDeserializationVersion()) { byte[] value = readByteArray(stream); if (null == value) { throw new IOException("Mis...
java
private synchronized void parseParameters() { if (null != this.queryParams) { // already parsed return; } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "parseParameters for " + this); } String encoding = getCh...
java
protected void setDataSourceFactory(ServiceReference<ResourceFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setDataSourceFactory", "setting " + ref); } ...
java
protected void unsetDataSourceFactory(ServiceReference<ResourceFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetDataSourceFactory", "unsetting " + ref); ...
java
protected void setResourceConfigFactory(ServiceReference<ResourceConfigFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setResourceConfigFactory", "setting " + ref); ...
java
protected void unsetResourceConfigFactory(ServiceReference<ResourceConfigFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetResourceConfigFactory", "unsetting " + ...
java
protected void setLocalTransactionCurrent(ServiceReference<LocalTransactionCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setLocalTransactionCurrent", "setting " + ...
java
protected void unsetLocalTransactionCurrent(ServiceReference<LocalTransactionCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetLocalTransactionCurrent", "unsettin...
java
protected void setEmbeddableWebSphereTransactionManager(ServiceReference<EmbeddableWebSphereTransactionManager> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setEmbeddableW...
java
protected void unsetEmbeddableWebSphereTransactionManager(ServiceReference<EmbeddableWebSphereTransactionManager> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetEmbedda...
java
protected void setUowCurrent(ServiceReference<UOWCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setUowCurrent", "setting " + ref); } uowCurrentRef.s...
java
protected void unsetUowCurrent(ServiceReference<UOWCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetUowCurrent", "unsetting " + ref); } uowCurren...
java
protected void setUserTransaction(ServiceReference<UserTransaction> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setUserTransaction", "setting " + ref); } ...
java
protected void unsetUserTransaction(ServiceReference<UserTransaction> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetUserTransaction", "unsetting " + ref); } ...
java
protected void setSerializationService(ServiceReference<SerializationService> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setSerializationService", "setting " + ref); ...
java
protected void unsetSerializationService(ServiceReference<SerializationService> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetSerializationService", "unsetting " + ref...
java
private Connection getJdbcConnection() throws JspCoreException, SQLException { Connection conn = null; String url = getConnProperties().getUrl(); String user = getConnProperties().getLoginUser(); String passwd = getConnProperties().getLoginPasswd(); String jndiName = getConnPro...
java
public static boolean isAbsolutePath(String uri) { boolean absolute = false; if (uri != null) { if (uri.indexOf(":/") != -1) { absolute = true; } else if (uri.indexOf(":\\") != -1) { absolute = true; } } return absolute...
java
private static boolean equalsHashes(File fileToHash, String hashToCompare) throws IOException { boolean result = false; // Now calculate the new hash and compare the 2. If they are NOT the same the ifix needs to be re-applied. String fileHash = MD5Utils.getFileMD5String(fileToHash); if ...
java
private static Map<String, IFixInfo> processIFixXmls(File wlpInstallationDirectory, Map<String, BundleFile> bundleFiles, CommandConsole console) { // A map of update file names and the IfixInfo objects that contain the latest versions of these files. Map<String, IFixInfo> filteredIfixInfos = new HashMa...
java
private static String getExistingMatchingIfixID(BundleFile bundleFile, Set<String> existingIDs, Map<String, BundleFile> bundleFiles) { String existingIfixKey = null; // Iterate over the known ids. for (String existingID : existingIDs) { // If we have a corresponding BundleFile for th...
java
private static Map<String, BundleFile> processLPMFXmls(File wlpInstallationDirectory, CommandConsole console) { // A map of update file names and the IfixInfo objects that contain the latest versions of these files. Map<String, BundleFile> bundleFiles = new HashMap<String, BundleFile>(); // Ite...
java
public static String getEntityType(String accessId) { Matcher m = matcher(accessId); if (m != null) { return m.group(1); } return null; }
java
public static String getRealm(String accessId) { Matcher m = matcher(accessId); if (m != null) { return m.group(2); } return null; }
java
public static String getUniqueId(String accessId) { Matcher m = matcher(accessId); if (m != null) { return m.group(3); } return null; }
java
public static String getUniqueId(String accessId, String realm) { if (realm != null) { Pattern pattern = Pattern.compile("([^:]+):(" + Pattern.quote(realm) + ")/(.*)"); Matcher m = pattern.matcher(accessId); if (m.matches()) { if (m.group(3).length() > 0)...
java
private String replaceNonAlpha(String name) { String modifiedName = null; if (p != null) modifiedName = p.matcher(name).replaceAll("_"); return modifiedName; }
java
public void setConsumerDispatcher(ConsumerDispatcher consumerDispatcher) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setConsumerDispatcher", consumerDispatcher); this.consumerDispatcher = consumerDispatcher; if (TraceComponent.isAnyTracin...
java
@Override public void xmlWriteOn(FormattedWriter writer) throws IOException { if (consumerDispatcher != null) { writer.newLine(); writer.taggedValue("consumerDispatcher", consumerDispatcher.toString()); } }
java
public void deleteIfPossible(boolean startAsynchThread) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteIfPossible", new Boolean(startAsynchThread)); // Lock exclusively to stop any further messages from being added. _subscriptionLockMan...
java
public void markAsToBeDeleted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "markAsToBeDeleted"); toBeDeleted = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "markAsToBeDeleted"); }
java
public void removeAllAvailableReferences() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeAllAvailableReferences"); LocalTransaction transaction = null; ItemReference itemReference = null; try ...
java
public LockManager getSubscriptionLockManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getSubscriptionLockManager"); SibTr.exit(tc, "getSubscriptionLockManager", _subscriptionLockManager); } return _subscriptionLo...
java
@Trivial private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { GetField fields = in.readFields(); failure = (Throwable) fields.get(FAILURE, null); previousResult = (byte[]) fields.get(PREVIOUS_RESULT, null); }
java
@Trivial private void writeObject(ObjectOutputStream out) throws IOException { PutField fields = out.putFields(); fields.put(FAILURE, failure); fields.put(PREVIOUS_RESULT, previousResult); out.writeFields(); }
java
public static <T> StaticValue<T> mutateStaticValue(StaticValue<T> staticValue, Callable<T> initializer) { if (multiplex) { // Multiplexing case; must check for existing StaticValue if (staticValue == null) { // no existing value; create new one with no constructor initial...
java
public static Object concat(Object[] arrs) { int totalLen = 0; Class commonComponentType = null; for (int i = 0, len = arrs.length; i < len; i++) { // skip all null arrays if (arrs[i] == null) { continue; } ...
java
@Override public int compare(T entity1, T entity2) { SortHandler shandler = new SortHandler(sortControl); return shandler.compareEntitysWithRespectToProperties((Entity) entity1, (Entity) entity2); }
java
public void dump() { if (!tc.isDumpEnabled()) { return; } Enumeration vEnum = lockTable.keys(); Tr.dump(tc, "-- Lock Manager Dump --"); while (vEnum.hasMoreElements()) { Object key = vEnum.nextElement(); Tr.dump(tc, "lock table entry", ...
java
protected Commandline getCommandline() { Commandline cmdl = new Commandline(); if (configFile != null) { cmdl.createArgument().setValue("--config"); cmdl.createArgument().setFile(configFile); } if (debug) { cmdl.createArgument().setValue("--debug"); ...
java
@Override public void execute() { List<File> flist = new ArrayList<File>(); if (file != null) { flist.add(file); } for (int i = 0; i < filesets.size(); i++) { FileSet fs = filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(getPro...
java
private ReturnCode write(String command, ReturnCode notStartedRC, ReturnCode errorRC) { SocketChannel channel = null; try { ServerCommandID commandID = createServerCommand(command); if (commandID.getPort() > 0) { channel = SelectorProvider.provider().openSocketCha...
java
public ReturnCode startStatus(ServerLock lock) { // The server process might not have created the command file yet. // Wait for it to appear. while (!isValid()) { ReturnCode rc = startStatusWait(lock); if (rc != ReturnCode.START_STATUS_ACTION) { return rc;...
java
private ReturnCode startStatusWait(ServerLock lock) { try { Thread.sleep(BootstrapConstants.POLL_INTERVAL_MS); } catch (InterruptedException ex) { Debug.printStackTrace(ex); return ReturnCode.ERROR_SERVER_START; } // This method is only called if the ...
java
public ReturnCode stopServer(boolean force) { return write(force ? FORCE_STOP_COMMAND : STOP_COMMAND, ReturnCode.REDUNDANT_ACTION_STATUS, ReturnCode.ERROR_SERVER_STOP); }
java
public ReturnCode introspectServer(String dumpTimestamp, Set<JavaDumpAction> javaDumpActions) { // Since "server dump" is used for diagnostics, we go out of our way to // not send an unrecognized command to the server even if the user has // broken their environment such that the client process ...
java
public ReturnCode javaDump(Set<JavaDumpAction> javaDumpActions) { StringBuilder commandBuilder = new StringBuilder(JAVADUMP_COMMAND); char sep = DELIM; for (JavaDumpAction javaDumpAction : javaDumpActions) { commandBuilder.append(sep).append(javaDumpAction.toString()); se...
java
public ReturnCode pause(String targetArg) { StringBuilder commandBuilder = new StringBuilder(PAUSE_COMMAND); char sep = DELIM; if (targetArg != null) { commandBuilder.append(sep).append(targetArg); } return write(commandBuilder.toString(), Retur...
java
public ReturnCode resume(String targetArg) { StringBuilder commandBuilder = new StringBuilder(RESUME_COMMAND); char sep = DELIM; if (targetArg != null) { commandBuilder.append(sep).append(targetArg); } return write(commandBuilder.toString(), Ret...
java
public boolean contain(OidcTokenImplBase token) { //(IdToken token) { String key = token.getJwtId(); if (key == null) { return false; } key = getCacheKey(token); long currentTimeMilliseconds = (new Date()).getTime(); synchronized (primaryTable) { ...
java
public final ResourceException isValid(int newAction) { try { setState(newAction, true); } catch (TransactionException exp) { FFDCFilter.processException(exp, "com.ibm.ws.rsadapter.spi.WSStateManager.isValid", "385", this); return exp; } return null; ...
java