code
stringlengths
73
34.1k
label
stringclasses
1 value
@Override public void introspect(PrintWriter writer) { RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean(); introspectUptime(runtime, writer); introspectVendorVersion(runtime, writer); introspectInputArguments(runtime, writer); Map<String, String> props = introspect...
java
public ArrayList getProperties(){ ArrayList properties = new ArrayList(); if (configEntry.properties != null){ Iterator it = configEntry.properties.values().iterator(); while (it.hasNext()){ Property property = new Property((com.ibm.ws.cache.config.Property)it.next()); properties.add(property); } ...
java
public CacheId[] getCacheIds(){ CacheId[] cacheIds = new CacheId[configEntry.cacheIds.length]; for ( int i=0; i<configEntry.cacheIds.length; i++ ){ cacheIds[i] = new CacheId(configEntry.cacheIds[i]); } return cacheIds; }
java
public DependencyId[] getDependencyIds(){ DependencyId[] depIds = new DependencyId[configEntry.dependencyIds.length]; for ( int i=0; i<configEntry.dependencyIds.length; i++ ){ depIds[i] = new DependencyId(configEntry.dependencyIds[i]); } return depIds; }
java
public Invalidation[] getInvalidations(){ Invalidation[] invalidations = new Invalidation[configEntry.invalidations.length]; for ( int i=0; i<configEntry.invalidations.length; i++ ){ invalidations[i] = new Invalidation(configEntry.invalidations[i]); } return invalidations; }
java
private void closeSocketChannel(SocketChannel sc) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { try { Tr.event(this, tc, "Closing connection, local: " + sc.socket().getLocalSocketAddress() + " remote: " + sc.socket().getRemoteSocketAddress()); } ca...
java
public static Class<?>[] toTypeArray(String[] s) throws ClassNotFoundException { if (s == null) return null; Class<?>[] c = new Class[s.length]; for (int i = 0; i < s.length; i++) { c[i] = forName(s[i]); } return c; }
java
public static String[] toTypeNameArray(Class<?>[] c) { if (c == null) return null; String[] s = new String[c.length]; for (int i = 0; i < c.length; i++) { s[i] = c[i].getName(); } return s; }
java
public boolean add(Object o) { synchronized (pool) { if (index < pool.length) { pool[index++] = o; // if (DEBUG && tc.isDebugEnabled() ) // Tr.debug(tc,"added to pool " + name + " at " + index); return true; } } ...
java
protected synchronized Dispatchable getThreadContext() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadContext"); // Start D202625 // Save the position of the data int currentPos = data.position(); int currentLimit = data.limit(); ...
java
public void setLogDataDirectory(String logDataDirectory) { LogState state = ivLog.setDataDirectory(logDataDirectory); if (state != null) { updateLogConfiguration(state); state.copyTo(ivLog); } }
java
private void updateTraceConfiguration(TraceState state) { if (DIRECTORY_TYPE.equals(state.ivStorageType)) { LogRepositoryComponent.setTraceDirectoryDestination(state.ivDataDirectory, state.ivPurgeBySizeEnabled, state.ivPurgeByTimeEnabled, state.ivFileSwitchEnabled, state.ivBufferingEnabled, state.ivPurgeMaxSi...
java
public void setTraceMemory(String dataDirectory, long memoryBufferSize) { TraceState state = (TraceState)ivTrace.clone(); state.ivStorageType = MEMORYBUFFER_TYPE; state.ivDataDirectory = dataDirectory; state.ivMemoryBufferSize = memoryBufferSize; updateTraceConfiguration(state); state.copyTo(ivTrace);...
java
private static HttpServletRequest getWrappedServletRequestObject(HttpServletRequest sr) { if (sr instanceof HttpServletRequestWrapper) { HttpServletRequestWrapper w = (HttpServletRequestWrapper) sr; // make sure we drill all the way down to an // SRTServletRequest...there ...
java
public static FileSharedServerLeaseLog getFileSharedServerLeaseLog(String logDirStem, String localRecoveryIdentity, String recoveryGroup) { if (tc.isEntryEnabled()) Tr.entry(tc, "FileSharedServerLeaseLog", new Object[] { logDirStem, localRecoveryIdentity, recoveryGroup }); if (_serverInstal...
java
public static int parseRMICCompatible(String options) // PM46698 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "parseRMICCompatible: " + options); int flags; if (options == null) { ...
java
public static void registerJIT_StubClassPlugin(ClassLoader classloader) { boolean isRegistered = JIT_StubPluginImpl.register(classloader); if (!isRegistered) { throw new IllegalArgumentException("Specified ClassLoader does not support JIT_StubClassPlugin : " + classloader); ...
java
synchronized void setStageTopics(String stageName, String[] topics) { for (String t : topics) { if (t.equals("*")) { wildcardStageTopics.put("", stageName); } else if (t.endsWith("/*")) { wildcardStageTopics.put(t.substring(0, t.length() - 1), stageName); ...
java
TopicData getTopicData(Topic topic, String topicName) { TopicData topicData = null; if (topic != null) { topicData = topic.getTopicData(); } if (topicData == null) { topicData = topicDataCache.get(topicName); if (topic != null && topicData != null) {...
java
public boolean accessDenied(InetAddress remoteAddr) { String hostname = null; //F184719 // check the inclusion lists first to see if the client matches if (includeAccess.getActive() || includeAccessNames.getActive()) { boolean closeSocket = true; if (includeAccess.getA...
java
final protected void eventPrecommitAdd(MessageItem msg, final TransactionCommon transaction) throws SIDiscriminatorSyntaxException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "eventPrecommitAdd", new Object[] { msg, transaction }); ...
java
@Override public void sendAckMessage(SIBUuid8 sourceMEUuid, SIBUuid12 destUuid, SIBUuid8 busUuid, long ackPrefix, int priority, Reliability reliability, ...
java
@Override public void sendNackMessage(SIBUuid8 sourceMEUuid, SIBUuid12 destUuid, SIBUuid8 busUuid, long startTick, long endTick, int priority, ...
java
private ControlNack createControlNackMessage() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createControlNackMessage"); ControlNack nackMsg = null; // Create new NackMessage try ...
java
protected ControlRequestFlush createControlRequestFlush() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createControlRequestFlush"); ControlRequestFlush rflushMsg = null; // Create new message try ...
java
private int checkCanExceptionMessage(DestinationHandler destinationHandler) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "checkCanExceptionMessage", new Object[] { destinationHandler })...
java
private int checkTargetAbleToAcceptOrExceptionMessage(JsDestinationAddress targetDestinationAddr) throws SITemporaryDestinationNotFoundException, SIResourceException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
private int checkLinkAbleToExceptionMessage() throws SIException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkLinkAbleToExceptionMessage"); int blockingReason = DestinationHandler.OUTPUT_HANDLER_NOT_FOUND; blocking...
java
@Override public int checkStillBlocked() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkStillBlocked"); // For safety, we assume that the destination is blocked (def 244425 and 464463) int blockingReason = DestinationHandler.OUTPUT_H...
java
void balancedPush( int state, GBSNode node) { push(state, node); if (node.balance() != 0) _bpidx = _cidx; }
java
void processSubFringe( GBSNode p) { /* Depth of a balanced T-zero tree for */ /* this tree's K factor */ int t0_depth = _tree.tZeroDepth(); /* Determine top-most node we must visit in the tree walk ...
java
private void innerProcessSubTree( GBSNode p, int initialState, int topIndex) { boolean done = false; _topIndex = topIndex; _endp = p; _endIndex = _idx; GBSNode q; /* Used for tree walking */ int s = initialState; while...
java
public String stateName( int state) { String name = "Unknown state = " + state; switch(state) { case NodeStack.VISIT_LEFT: name = "VISIT_LEFT"; break; case NodeStack.PROCESS_CURRENT: name = "PROCESS_CURRENT"; break; case NodeStack.VISIT_RIGHT: ...
java
public final static void logException(TraceComponent compTc, Throwable t, EJBMethodMetaData m, BeanO bean) { //d408351 - only log recursive exceptions if they have not been logged before if (hasBeenLogged(t)) { return; } BeanId beanId = null; if (bean != null) { ...
java
static public Throwable findRootCause(Throwable throwable) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "findRootCause: " + throwable); } Throwable root = throwable; Throwable next = root; while (next != null) { root ...
java
public static Exception Exception(Throwable cause) { return (cause instanceof Exception) ? (Exception) cause : new Exception("See nested Throwable", cause); }
java
protected ClientBehaviorAttachedObjectTargetImpl createAttachedObjectTarget(FaceletContext ctx) { ClientBehaviorAttachedObjectTargetImpl target = new ClientBehaviorAttachedObjectTargetImpl(); if (_event != null) { target.setEvent(_event.getValueExpression(ctx, String.cla...
java
private void registerEndpointMBean(String name, EndPointInfoImpl ep) { endpointMBeans.put(name, registerMBeanAsService(name, ep)); }
java
private EndPointInfoImpl updateEndpointMBean(String name, String host, int port) { EndPointInfoImpl existingEP = endpoints.get(name); existingEP.updateHost(host); existingEP.updatePort(port); return existingEP; }
java
private void destroyEndpointMBeans() { for (Map.Entry<String, ServiceRegistration<DynamicMBean>> mbean : endpointMBeans.entrySet()) { String mbeanName = mbean.getKey(); endpointMBeans.remove(mbeanName); mbean.getValue().unregister(); } }
java
public static void destroyEndpoints() { EndPointMgrImpl _this = (EndPointMgrImpl) getRef(); synchronized (_this.endpoints) { _this.destroyEndpointMBeans(); _this.endpoints.clear(); } }
java
private void unregisterMBeanInService(String name) { ServiceRegistration<DynamicMBean> existingMBean = endpointMBeans.remove(name); if (existingMBean != null) { existingMBean.unregister(); } }
java
@Override public void removeEndPoint(String name) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Deleting endpoint: " + name); } synchronized (this.endpoints) { if (this.endpoints.remove(name) != null) { unregisterM...
java
private static String[] getTokensArray(String tokenComposite) throws ParseException { if (tokenComposite == null || "".equals(tokenComposite)) { return null; } return parseNameTokens(tokenComposite); }
java
static public String[] parseNameTokens(String stringValue) { if (stringValue == null) { return null; } ArrayList<String> list = new ArrayList<String>(5); int length = stringValue.length(); boolean inSpace = true; int start = 0; for (int i = 0; i < length; i++) { ...
java
public static FlowType getKey(int ordinal) { if (ordinal >= 0 && ordinal < _values.length) { return _values[ordinal]; } return null; }
java
public boolean containsChannel(String channelName) { boolean found = false; for (int i = 0; i < channels.length; i++) { if (channels[i].getName().equals(channelName)) { found = true; break; } } if (TraceComponent.isAnyTracingEnabled...
java
private static boolean needsEncoding(String s, boolean relax, boolean[] unreserved) { int len = s.length(); for (int i = 0; i < len; ++i) { char c = s.charAt(i); if (c == '%' && relax) { continue; } if (c > unreserved.length) { ...
java
public Object getWLMEndPointData() { if (mode != PropertiesType.WLM_EP) { throw new SIErrorException( nls.getFormattedMessage("INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006", null, "INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006") // D270373 ); } return wlmEndPointData; }
java
public static String getContextRootNotFoundMessage() { // this does not return a default string, since the caller may (and does in our case) choose to build a runtime // dependent string. HttpDispatcher f = instance.get().get(); if (f != null) return f.appOrContextRootNotFou...
java
public boolean isTrusted(String hostAddr, String headerName) { if (!wcTrusted) { return false; } if (HttpHeaderKeys.isSensitivePrivateHeader(headerName)) { // if this is a sensitive private header, check trustedSensitiveHeaderOrigin values return isTrustedForS...
java
public boolean isTrustedForSensitiveHeaders(String hostAddr) { if (!useSensitivePrivateHeaders) { // trustedSensitiveHeaderOrigin list is either unset (defaults to "none") or explicitly set to "none" return false; } if (restrictSensitiveHeaderOrigin == null) { ...
java
public static ExecutorService getExecutorService() { HttpDispatcher f = instance.get().get(); if (f == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "HttpDispatcher instance not found"); } return null; ...
java
public static CHFWBundle getCHFWBundle() { HttpDispatcher f = instance.get().get(); if (f != null) return f.chfw; return null; }
java
public static WsByteBufferPoolManager getBufferManager() { final CHFWBundle chfw = getCHFWBundle(); if (null == chfw) { return ChannelFrameworkFactory.getBufferManager(); } return chfw.getBufferManager(); }
java
public static ChannelFramework getFramework() { final CHFWBundle chfw = getCHFWBundle(); if (null == chfw) { return ChannelFrameworkFactory.getChannelFramework(); } return chfw.getFramework(); }
java
@Reference(name = "workClassifier", policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL) protected void setWorkClassifier(WorkClassifier service) { workClassifier = service; }
java
public static WorkClassifier getWorkClassifier() { HttpDispatcher f = instance.get().get(); if (f != null) return f.workClassifier; return null; }
java
private static ObjectName createObjectName(String type, String name, Hashtable<String, String> props) { props.put(KEY_TYPE, type); props.put(KEY_NAME, name); try { return new ObjectName(DOMAIN_NAME, props); } catch (MalformedObjectNameException e) { throw new Ill...
java
public static ObjectName createApplicationObjectName(String name, String serverName) { Hashtable<String, String> props = new Hashtable<String, String>(); props.put(TYPE_SERVER, serverName); return createObjectName(TYPE_APPLICATION, name, props); }
java
public static ObjectName createEJBModuleObjectName(String uri, String appName, String serverName) { return createModuleObjectName(ModuleType.EJBModule, uri, appName, serverName); }
java
public static ObjectName createWebModuleObjectName(String moduleURI, String appName, String serverName) { return createModuleObjectName(ModuleType.WebModule, moduleURI, appName, serverName); }
java
public static ObjectName createJavaMailObjectName(String serverName, String mailSessionID, int resourceCounter) { Hashtable<String, String> props = new Hashtable<String, String>(); props.put(TYPE_SERVER, serverName); props.put(MAIL_SESSION_ID, mailSessionID); props.put(RESOURCE_ID, TYPE_...
java
public static ObjectName createResourceObjectName(String serverName, String resourceType, String keyName) { ObjectName objectName; Hashtable<String, String> props = new Hashtable<String, String>(); props.put(TYPE_SERVER, serverName); objectName = createObjectName(resourceType, keyName, ...
java
@Override public boolean libraryExists(String libraryName) { FacesContext facesContext = FacesContext.getCurrentInstance(); String localePrefix = getLocalePrefixForLocateResource(facesContext); final List<String> contracts = facesContext.getResourceLibraryContracts(); String pa...
java
public Object setValue(Token object) { Object result = value; value = object; return result; }
java
@Override protected MatchResponse getMatchResponse(SecurityConstraint securityConstraint, String resourceName, String method) { CollectionMatch collectionMatch = getCollectionMatch(securityConstraint.getWebResourceCollections(), resourceName, method); if (CollectionMatch.RESPONSE_NO_MATCH.equals(co...
java
public void purge() { synchronized(this){ // Clear all references to VirtualHost objects for (DynamicVirtualHost host : hostMap.values()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Purge host : " + host.hashCode...
java
private void setSsoTokenCredential(Subject subject, String principalAccessId) throws CredentialException { try { TokenManager tokenManager = tokenManagerRef.getService(); SingleSignonToken ssoToken = null; Set<Token> tokens = subject.getPrivateCredentials(...
java
public ManagedObject get(Token token) { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass, "get", token); trace.exit(this, cclass, ...
java
public synchronized void flush() throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass, "flush"); trace.exit(this, cclass, ...
java
static void buildEjbWebServiceEndpointInfos(EndpointInfoBuilder endpointInfoBuilder, EndpointInfoBuilderContext ctx, JaxWsServerMetaData jaxWsServerMetaData, List<EJBEndpoint> ejbEndpoints, JaxWsModuleInfo jaxWsModuleInfo) throws UnableToAdaptException { Set<St...
java
public static Jose4jRsaJWK getInstance(int size, String alg, String use, String type) { String kid = RandomUtils.getRandomAlphaNumeric(KID_LENGTH); KeyPairGenerator keyGenerator = null; try { keyGenerator = KeyPairGenerator.getInstance("RSA"); } catch (NoSuchAlgorithmExcepti...
java
public static Jose4jRsaJWK getInstance(String alg, String use, PublicKey publicKey, PrivateKey privateKey, String kid) { //String kid = RandomUtils.getRandomAlphaNumeric(KID_LENGTH); RSAPublicKey pubKey = (RSAPublicKey) publicKey; RSAPrivateKey priKey = (RSAPrivateKey) privateKey; Jose4...
java
private List<Object> reprocessFormParams(Method method, List<Object> origParams, Message m) { Form form = null; boolean hasFormParamAnnotations = false; Object[] newValues = new Object[origParams.size()]; java.lang.reflect.Parameter[] methodParams = method.getParameters(); for (i...
java
private Collection<LibertyVersion> filterVersions(Collection<LibertyVersion> minimumVersions, String version) { LibertyVersion versionToMatch = LibertyVersion.valueOf(version); if (versionToMatch == null) { return minimumVersions; } Collection<LibertyVersion> filteredVersions...
java
Map<Object, Object> createOrRestoreMap(FacesContext context, String prefix, boolean create) { ExternalContext external = context.getExternalContext(); Map<String, Object> sessionMap = external.getSessionMap(); Map<Object, Object> map = (Map<Object, Object>) sessionMap.get(prefix); ...
java
public static TSSConfig getTSSConfig(Map<String, Object> props, Map<OptionsKey, List<TransportAddress>> addrMap, Bundle bundle) throws Exception { TSSConfig tssConfig = new TSSConfig(); List<Map<String, Object>> tssConfigs = Nester.nest(CSIV2_CONFIGURATION, props); if (!tssConfigs.isEmpty()) { ...
java
public ZipFileData addFirst(ZipFileData newFirstData) { String newFirstPath = newFirstData.path; Cell dupCell = cells.get(newFirstPath); if ( dupCell != null ) { throw new IllegalArgumentException("Path [ " + newFirstPath + " ] is already stored"); } Cell oldFirstCe...
java
public ZipFileData addLast(ZipFileData newLastData) { String newLastPath = newLastData.path; Cell dupCell = cells.get(newLastPath); if ( dupCell != null ) { throw new IllegalArgumentException("Path [ " + newLastPath + " ] is already stored"); } Cell oldLastCell = an...
java
public ZipFileData addLast(ZipFileData newLastData, int maximumSize) { String newLastPath = newLastData.path; Cell dupCell = cells.get(newLastPath); if ( dupCell != null ) { throw new IllegalArgumentException("Path [ " + newLastPath + " ] is already stored"); } int ...
java
public void refresh(ApplicationMonitorConfig config) { _config.set(config); UpdateTrigger trigger = config.getUpdateTrigger(); if (trigger != UpdateTrigger.DISABLED) { // Start all existing listeners for (ApplicationListeners listeners : _appListeners.values()) { ...
java
@FFDCIgnore(value = UnableToAdaptException.class) public void addApplication(ApplicationInstallInfo installInfo) { // ...and now create the new... start by asking the handler what needs monitoring final Collection<Notification> notificationsToMonitor; final boolean listenForRootStructuralCha...
java
public void removeApplication(String pid) { // remove the application listener from the set we know about and stop it ApplicationListeners listeners = _appListeners.remove(pid); //check that the app is known, this can be run after the app is already removed. if (listeners != null) { ...
java
public static void traceEJBCallEntry(String methodDesc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_EJBCallEntry_Type_Str).append(DataDelimiter) ...
java
public static void traceEJBCallExit(String methodDesc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_EJBCallExit_Type_Str).append(DataDelimiter) ...
java
public static void traceBeanState(int oldState, String oldString, int newState, String newString) // d167264 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_St...
java
protected synchronized void add(Object id, int bufferType, int cause, int source, boolean fromDepIdTemplateInvalidation, boolean fireEvent, boolean isAlias) { final String methodName = "add(Object)"; if (id == null) { return; } if (bufferType == EXPLICIT_BUFFER) {...
java
protected synchronized void add(ValueSet idSet, int bufferType, int cause, int source, boolean fromDepIdTemplateInvalidation, boolean fireEvent, boolean checkFull) { final String methodName = "add(ValueSet)"; if (idSet == null || idSet.isEmpty()) { return; } int s...
java
protected synchronized Object get(int bufferType) { // final String methodName = "get(boolean)"; Object id = null; if (bufferType == this.EXPLICIT_BUFFER) { if (!this.explicitBuffer.isEmpty()) { Set s = this.explicitBuffer.keySet(); Iterator it = s.ite...
java
protected synchronized void remove(Object id, int bufferType, boolean returnToPool) { // final String methodName = "remove(Object,bufferType)"; if (id == null) { return; } if (bufferType == this.EXPLICIT_BUFFER) { this.explicitBuffer.remove(id); } else if ...
java
protected synchronized void remove(Object id) { // final String methodName = "remove(Object)"; if (id == null) { return; } this.explicitBuffer.remove(id); this.scanBuffer.remove(id); // this.garbageCollectorBuffer.remove(id); // if (id instanceof HTODD...
java
protected synchronized ValueSet getAndRemoveFromExplicitBuffer() { final String methodName = "getAndRemoveFromExplicitBuffer()"; ValueSet valueSet = null; if (this.explicitBuffer.size() == 0) { valueSet = new ValueSet(1); } else { valueSet = new ValueSet(this.expl...
java
protected synchronized boolean findAndRemoveFromGCBuffer(long expirationTime, int hashcode, int size) { EvictionTableEntry evt = null; int i; for (i = 0; i < garbageCollectorBuffer.size(); i++) { evt = (EvictionTableEntry) garbageCollectorBuffer.get(i); if (evt.expiration...
java
protected synchronized void clear(int bufferType) { final String methodName = "clear()"; if (bufferType == HTODInvalidationBuffer.EXPLICIT_BUFFER) { this.explicitBuffer.clear(); } else if (bufferType == HTODInvalidationBuffer.SCAN_BUFFER) { this.scanBuffer.clear(); ...
java
protected synchronized void invokeBackgroundInvalidation(boolean scan) { final String methodName = "invokeBackgroundInvalidation()"; if (!stopping) { synchronized (cod.diskCleanupThread.dcMonitor) { if (cod.diskCleanupThread.currentThread != null) { this.c...
java
protected synchronized boolean contains(Object id) { boolean found = false; if (this.explicitBuffer.containsKey(id) || this.scanBuffer.contains(id)) { found = true; } return found; }
java
@Trivial public synchronized boolean isFull() { // final String methodName = "isFull()"; boolean isFull = false; int size = this.explicitBuffer.size() + this.scanBuffer.size() + this.garbageCollectorBuffer.size(); if (size > this.maxInvalidationBufferSize || (System.currentTimeMillis...
java
protected synchronized void filter(ValueSet filterValueSet) { boolean explicitBufferEmpty = this.explicitBuffer.isEmpty(); boolean scanBufferEmpty = this.scanBuffer.isEmpty(); if (filterValueSet != null && !filterValueSet.isEmpty() && (!explicitBufferEmpty || !scanBufferEmpty)) { Ite...
java
@Trivial protected synchronized int size(int bufferType) { if (bufferType == EXPLICIT_BUFFER) { return this.explicitBuffer.size(); } else if (bufferType == SCAN_BUFFER) { return this.scanBuffer.size(); } else if (bufferType == GC_BUFFER) { return this.garb...
java