code
stringlengths
73
34.1k
label
stringclasses
1 value
void setSICoreConnection(final SICoreConnection connection) { if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "setSICoreConnection", connection); } _coreConnection = connection; if (TRACE.isEntryEnabled()) { SibTr.exit(this, TRACE, "setSICoreConnection")...
java
@Override @Trivial public ZipFile open() throws IOException { String methodName = "open"; synchronized( zipFileLock ) { if ( zipFile == null ) { debug(methodName, "Opening"); if ( zipFileReaper == null ) { zipFile = ZipFileUtils.op...
java
@Override @Trivial public InputStream getInputStream(ZipFile useZipFile, ZipEntry zipEntry) throws IOException { String methodName = "getInputStream"; String entryName = zipEntry.getName(); if ( zipEntry.isDirectory() ) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebu...
java
@Trivial private static byte[] read(InputStream inputStream, int expectedRead, String name) throws IOException { byte[] bytes = new byte[expectedRead]; int remainingRead = expectedRead; int totalRead = 0; while ( remainingRead > 0 ) { int nextRead = inputStream.read(byt...
java
private String findVersion() { WlpInformation wlp = _asset.getWlpInformation(); if (wlp == null) { return null; } Collection<AppliesToFilterInfo> filterInfo = wlp.getAppliesToFilterInfo(); if (filterInfo == null) { return null; } for (App...
java
private void addVersionDisplayString() { WlpInformation wlp = _asset.getWlpInformation(); JavaSEVersionRequirements reqs = wlp.getJavaSEVersionRequirements(); if (reqs == null) { return; } String minVersion = reqs.getMinVersion(); // Null means no requiremen...
java
private void removeRequireFeatureWithToleratesIfExists(String feature) { Collection<RequireFeatureWithTolerates> rfwt = _asset.getWlpInformation().getRequireFeatureWithTolerates(); if (rfwt != null) { for (RequireFeatureWithTolerates toCheck : rfwt) { if (toCheck.getFeature()...
java
private void copyRequireFeatureToRequireFeatureWithTolerates() { Collection<RequireFeatureWithTolerates> rfwt = _asset.getWlpInformation().getRequireFeatureWithTolerates(); if (rfwt != null) { // Both fields (with and without tolerates) should exist, as // rfwt should not be crea...
java
public static boolean isClassVetoed(Class<?> type) { if (type.isAnnotationPresent(Vetoed.class)) { return true; } return isPackageVetoed(type.getPackage()); }
java
private Map<String, String> populateCommonAuthzHeaderParams() { Map<String, String> parameters = new HashMap<String, String>(); parameters.put(TwitterConstants.PARAM_OAUTH_CONSUMER_KEY, consumerKey); parameters.put(TwitterConstants.PARAM_OAUTH_NONCE, Utils.generateNonce()); parameters.p...
java
private String signAndCreateAuthzHeader(String endpointUrl, Map<String, String> parameters) { String signature = computeSignature(requestMethod, endpointUrl, parameters); parameters.put(TwitterConstants.PARAM_OAUTH_SIGNATURE, signature); String authzHeaderString = createAuthorizationHeaderStri...
java
public Map<String, Object> populateJsonResponse(String responseBody) throws JoseException { if (responseBody == null || responseBody.isEmpty()) { return null; } return JsonUtil.parseJson(responseBody); }
java
@FFDCIgnore(SocialLoginException.class) @Sensitive public Map<String, Object> executeRequest(SocialLoginConfig config, String requestMethod, String authzHeaderString, String url, String endpointType, String verifierValue) { if (endpointType == null) { endpointType = TwitterConstants.TWITTER...
java
@FFDCIgnore(IllegalStateException.class) private void updateMonitorService() { if ( !coveringPaths.isEmpty() ) { if ( service == null ) { try { // If we are shutting down, we want to generate the exception quickly. BundleContext bundleConte...
java
private void updateEnclosingMonitor() { if ( !coveringPaths.isEmpty() ) { if ( !listenerRegistered ) { // This container is not yet registered to the enclosing container. // Register this container. ArtifactContainer enclosingRootContainer = entryInEn...
java
private boolean registerListener(String newPath, ArtifactListenerSelector newListener) { boolean updatedCoveringPaths = addCoveringPath(newPath); Collection<ArtifactListenerSelector> listenersForPath = listeners.get(newPath); if ( listenersForPath == null ) { // Each listeners colle...
java
private boolean addCoveringPath(String newPath) { int newLen = newPath.length(); Iterator<String> useCoveringPaths = coveringPaths.iterator(); boolean isCovered = false; boolean isCovering = false; while ( !isCovered && useCoveringPaths.hasNext() ) { String coveringP...
java
@Trivial private String validateNotification(Collection<?> added, Collection<?> removed, Collection<?> updated) { boolean isAddition = !added.isEmpty(); boolean isRemoval = !removed.isEmpty(); boolean isUpdate = !updated.isEmpty(); if ( !isAddition && !isRemoval && !isUpdate ) { ...
java
private void notifyAllListeners(boolean isUpdate, String filter) { // Can't reuse the registered paths collection across the loop // because the listener notification can do processing in a new // thread. Reusing the registered paths could cause a collision // between the listener threa...
java
public AuthenticationService getAuthenticationService(SecurityService securityService) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "getAuthenticationService", securityService); } if(_authenticationService == null) { if (securityService != null) _auth...
java
protected Subject login() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "login"); } Subject subject = null; try { /* * Only if we have the AuthenticationService running, we can do * Authentication. If it is not present we cannot do any * auth...
java
private void rejectHandshake(Conversation conversation, int requestNumber, String rejectedField) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rejectHandshake", new Object[] { conversation, requestNumber, rejected...
java
void register(CloudantService svc, ConcurrentMap<ClientKey, Object> clients) { registrations.put(svc, clients); }
java
@FFDCIgnore(NoSuchMethodException.class) private void setRRSTransactional() { try { ivRRSTransactional = (Boolean) activationSpec.getClass().getMethod("getRRSTransactional").invoke(activationSpec); } catch (NoSuchMethodException x) { ivRRSTransactional = false; } catc...
java
@Override public void setJCAVersion(int majorJCAVer, int minorJCAVer) { majorJCAVersion = majorJCAVer; minorJCAVersion = minorJCAVer; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "MessageEndpointFactoryImpl.setJCAVersionJCA: Version " + majorJCA...
java
private void setup(BeanMetaData bmd) { if (!ivSetup) { int slotSize = bmd.container.getEJBRuntime().getMetaDataSlotSize(MethodMetaData.class); for (int i = 0; i < capacity; ++i) { EJBMethodInfoImpl methodInfo = bmd.createEJBMethodInfoImpl(slotSize)...
java
public final void done(EJBMethodInfoImpl mi) { //d151861 if (orig || (mi == null) || (topOfStack == 0)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "In orig mode returning:" + " orig: " + orig + " t...
java
final public EJBMethodInfoImpl get(String methodSignature, String methodNameOnly, EJSWrapperBase wrapper, MethodInterface methodInterface, // d164221 TransactionAtt...
java
Class<?> loadClass(String name) throws ClassNotFoundException { // First, try to find the class by name. ServiceReference<DeserializationClassProvider> provider = classProviders.getReference(name); if (provider != null) { return loadClass(provider, name); } // Next, ...
java
public void begin() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "begin", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { if (t...
java
public void commit() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "commit", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { if ...
java
public void rollback() throws ResourceException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "rollback", ivMC); // if the MC marked Stale, it means the user requested a purge pool with an immediate option // so don't allow any work on the mc if (ivMC._mcStale) { ...
java
private void serializeRealObject() throws ObjectFailedToSerializeException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "serializeRealObject"); if (hasRealObject) { // If the realObject isn't null, we need to serialize it & set it int...
java
private Serializable deserializeToRealObject() throws IOException, ClassNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "deserializeToRealObject"); Serializable obj = null; ObjectInputStream ois = null; byte[] bytes ...
java
public SICoreConnection getConnection() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled()) { SibTr.entry(CoreSPIProducerSession.tc, "getConnection", this); SibTr.exit(CoreSPIProducerSession.tc, "getConnection", _conn); ...
java
void disableDiscriminatorAccessCheckAtSend(String discriminatorAtCreate) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "disableDiscriminatorAccessCheckAtSend"); _checkDiscriminatorAccessAtSend = false; this._discriminatorAtCreate = discriminatorAtCreate; if...
java
public void addEntry(TimerWorkItem addItem, long curTime) { // this routine assumes the slot is not full this.mostRecentlyAccessedTime = curTime; this.lastEntryIndex++; this.entries[lastEntryIndex] = addItem; }
java
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-") public List<Flow> getFlows() { if (flows == null) { flows = new ArrayList<Flow>(); } return this.flows; }
java
public JMFMessage decode(JSchema schema, byte[] contents, int offset, int length) throws JMFMessageCorruptionException { return new JSMessageImpl(schema, contents, offset, length, true); }
java
protected String read(SocketChannel sc) throws IOException { sc.read(buffer); buffer.flip(); decoder.decode(buffer, charBuffer, true); charBuffer.flip(); String result = charBuffer.toString(); // Clear out buffers buffer.clear(); charBuffer.clear(); ...
java
protected void write(SocketChannel sc, String s) throws IOException { sc.write(encoder.encode(CharBuffer.wrap(s))); }
java
@Test public void MPJwtBadMPConfigAsEnvVars_GoodMpJwtConfigSpecifiedInServerXml() throws Exception { resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_AltConfigNotInApp_goodServerXmlConfig.xml"); standardTestFlow(resourceServer, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_R...
java
@Test public void MPJwtBadMPConfigAsEnvVars_MpJwtConfigNotSpecifiedInServerXml() throws Exception { standardTestFlow(resourceServer, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_ROOT_CONTEXT, MpJwtFatConstants.NO_MP_CONFIG_IN_APP_APP, MpJwtFatConstants.MPJWT_APP_CLASS_NO_MP_CONFIG_IN_APP,...
java
private boolean doRead(int amountToRead) throws IOException{ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "doRead, Current buffer, " + _buffer + ", reading from the TCP Channel, readLine : " + _isReadLine); } try { i...
java
private boolean syncRead(int amountToRead) throws IOException{ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "syncRead, Executing a synchronous read"); } // Allocate the buffer and set it on the TCP Channel setAndAllocateBuffer(amountToRea...
java
private boolean immediateRead(int amountToRead){ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "immediateRead, Executing a read"); } if(amountToRead > 1){ //Allocate a new temp buffer, then set the position to 0 and limit to the amo...
java
public int read() throws IOException { validate(); int rc = -1; if(doRead(1)){ rc = _buffer.get() & 0x000000FF; } _buffer.release(); _buffer = null; return rc; }
java
public int read(byte[] output, int offset, int length) throws IOException { int size = -1; validate(); if (0 == length) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "read(byte[],int,int), Target length was 0"); ...
java
private void setAndAllocateBuffer(int sizeToAllocate) { if(_buffer == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "setAndAllocateBuffer, Buffer is null, size to allocate is : " + sizeToAllocate); } _buffer = a...
java
private void validate() throws IOException { if (null != _error) { throw _error; } if(!_isReadLine && !_isReady){ //If there is no data available then isReady will have returned false and this throw an IllegalStateException if (TraceComponent.isAnyTra...
java
public void setupReadListener(ReadListener readListenerl, SRTUpgradeInputStream31 srtUpgradeStream){ if(readListenerl == null){ if (TraceComponent.isAnyTracingEnabled() && tc.isErrorEnabled()) Tr.error(tc, "readlistener.is.null"); throw new NullPointerException(T...
java
public void initialRead(){ _isInitialRead = true; if(_buffer != null){ _buffer.release(); _buffer = null; } setAndAllocateBuffer(1); configurePreReadBuffer(1); //This if the first read of the ReadListener, which means force the re...
java
public void configurePostInitialReadBuffer(){ _isInitialRead = false; _isFirstRead = false; _buffer = _tcpContext.getReadInterface().getBuffer(); configurePostReadBuffer(); }
java
public Boolean close() { _isClosing = true; boolean closeResult = true; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){ Tr.debug(tc, "close, Initial read outstanding : " + _isInitialRead); } if(_isInitialRead){ if (TraceComponent...
java
public synchronized int getDurableSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getDurableSubscriptions"); if (tc.isEntryEnabled()) SibTr.exit( tc, "getDurableSubscriptions", new Integer(durableSubscriptions)); return durableSubscriptions; }
java
public synchronized int getNonDurableSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getNonDurableSubscriptions"); if (tc.isEntryEnabled()) SibTr.exit( tc, "getNonDurableSubscriptions", new Integer(nonDurableSubscriptions)); return nonDurableSubscriptions;...
java
public synchronized int getTotalSubscriptions() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getTotalSubscriptions"); int totalSubscriptions = durableSubscriptions + nonDurableSubscriptions; if (tc.isEntryEnabled()) SibTr.exit( tc, "getTotalSubscriptions", new Integer(...
java
void balance( NodeStack stack, GBSNode q) { GBSNode p; int bpidx = stack.balancePointIndex(); int x = bpidx; GBSNode bpoint = stack.node(x); GBSNode bfather = stack.node(x-1); /* Adjust balance factors in intervening nodes */ if (bpoint.leftChild...
java
private void rotateLeft( GBSNode bfather, GBSNode bpoint) { GBSNode bson = bpoint.leftChild(); if (bson.balance() == -1) /* Single LL rotation */ { bpoint.setLeftChild(bson.rightChild()); bson.setRightChild(bpoint); if (bfather.rightChi...
java
public Entry getPrevious() { checkEntryParent(); Entry entry = null; if(!isFirst()) { entry = previous; } return entry; }
java
@Override public boolean analyzeJar(Analyzer analyzer) throws Exception { try { if (scanAgain) { //this will only have an effect on the first scan, because subsequent scanAgain //will use the errorMarker to decide if to scan again resetErrorMarker(); ...
java
private void collectClassDependencies (Clazz classInstance, Analyzer analyzer) throws Exception { // retrieve the imports from the known class path Set<TypeRef> importedClasses = classInstance.parseClassFile(); for (TypeRef importedClass:importedClasses) { if (canBeSkipped(importedClass)) // validate the impo...
java
private boolean canBeSkipped (TypeRef importedClass) { // skip known imported classes and the ones in JRE if (allReferencedTypes.contains(importedClass) || importedReferencedTypes.contains(importedClass) || importedClass.isJava()) return true; // Skip the imported classes which are excluded String classPack...
java
private Set<PackageRef> collectPackageDependencies() { Set<PackageRef> referencedPackages = new HashSet<PackageRef> (); for (TypeRef newReferencedType:importedReferencedTypes) { PackageRef packageRef = newReferencedType.getPackageRef(); if (referencedPackages.contains(packageRef)) // package already known ...
java
public boolean addMetatypeAd(MetatypeAd metatypeAd) { if (this.metatypeAds == null) this.metatypeAds = new LinkedList<MetatypeAd>(); for (MetatypeAd ad : metatypeAds) if (ad.getID().equals(metatypeAd.getID())) return false; this.metatypeAds.add(metatypeA...
java
public synchronized void prepareSocket() throws IOException { if (!prepared) { final long fd = getFileDescriptor(); if (fd == INVALID_SOCKET) { throw new AsyncException(AsyncProperties.aio_handle_unavailable); } channelIdentifier = provider.prepar...
java
public String getParameterClassName(String attributeName, JspCoreContext context) throws JspCoreException { String parameterClassName = null; if (parameterClassNameMap == null) { parameterClassNameMap = new HashMap(); } parameterClassName = (String)parameter...
java
public ReturnCode rollback() { while (!history.isEmpty()) { final Action action = (Action) history.pop(); final ReturnCode ret = action.execute(); if (ret.getCode() != 0) { return ret; } } return ReturnCode.OK; }
java
public void updateState(SSLContext context, SSLEngine engine, SSLEngineResult result, WsByteBuffer decNetBuf, int position, int limit) { this.sslContext = context; this.sslEngine = engine; this.sslEngineResult = result; this.decryptedNetBuffer = decNetBuf; this.netBufferPosition ...
java
private void setXMLBeanInterface(String homeInterfaceName, String interfaceName) // F743-32443 throws InjectionException { // If a home or business interface was specified in XML, then set that as // the injection type. Both may be null if the XML just provides an // override of an anno...
java
private void setBindingName() // d681743 throws InjectionException { Map<String, String> ejbRefBindings = ivNameSpaceConfig.getEJBRefBindings(); if (ejbRefBindings != null) { ivBindingName = ejbRefBindings.get(getJndiName()); if (ivBindingName != null && ivBindin...
java
@Override public void addInjectionTarget(Member member) throws InjectionException { // If the beanName attribute was found in the constructor or merge // method, then save the class of where it was located. if (ivBeanName != null && ivBeanNameClass == null) { ...
java
@Override public void visitInsn(int opcode) { if (opcode == ATHROW && !enabledListeners.isEmpty()) { String key = createKey(); ProbeImpl probe = getProbe(key); long probeId = probe.getIdentifier(); setProbeInProgress(true); visitInsn(DUP); // thro...
java
public void addData(int index, byte[] data) throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "addData",new java.lang.Object[] {new Integer(index), RLSUtils.toHexString(data,RLSUtils.MAX_DISPLAY_BYTES), this}); // If the parent recovery log instance has experienced a serious internal error ...
java
public int identity() { if (tc.isEntryEnabled()) Tr.entry(tc, "identity",this); if (tc.isEntryEnabled()) Tr.exit(tc, "identity",new Integer(_identity)); return _identity; }
java
public static int decode(WsByteBuffer headerBlock, int N) { // if (!headerBlock.hasRemaining()) { // throw new HeaderFieldDecodingException("No length to decode"); // } int I = HpackUtils.getLSB(headerBlock.get(), N); if (I < HpackUtils.ipow(2, N) - 1) { return...
java
static protected int getPadBits( int bitString) { int val = 0; for (int i = 3; i >= 0; i--) { // // this may look a little odd, but if it isn't done like this pre jdk1.2 // JVM's break! // if (i != 0) { ...
java
static protected byte[] getBytes(int bitString) { int bytes = 4; for (int i = 3; i >= 1; i--) { if ((bitString & (0xFF << (i * 8))) != 0) { break; } bytes--; } byte[] result = new byte[bytes]; for (int i...
java
public static DERBitString getInstance( Object obj) { if (obj == null || obj instanceof DERBitString) { return (DERBitString)obj; } if (obj instanceof ASN1OctetString) { byte[] bytes = ((ASN1OctetString)obj).getOctets(); int ...
java
private AuthenticationResult handleBasicAuth(String inRealm, HttpServletRequest req, HttpServletResponse res) { AuthenticationResult result = null; String hdrValue = req.getHeader(BASIC_AUTH_HEADER_NAME); if (hdrValue == null || !hdrValue.startsWith("Basic ")) { result = new Authent...
java
protected String getBasicAuthRealmName(WebRequest webRequest) { SecurityMetadata securityMetadata = webRequest.getSecurityMetadata(); if (securityMetadata != null) { LoginConfiguration loginConfig = securityMetadata.getLoginConfiguration(); if (loginConfig != null && loginConfig....
java
@Sensitive protected String decodeBasicAuth(String data, String encoding) { String output = ""; byte decodedByte[] = null; decodedByte = Base64Coder.base64DecodeString(data); if (decodedByte != null && decodedByte.length > 0) { boolean decoded = false; if (enc...
java
public static boolean isUninstallable(Set<IFixInfo> installedFixes, IFixInfo fixToBeUninstalled) { if (Boolean.valueOf(System.getenv(S_DISABLE)).booleanValue()) { return true; } if (fixToBeUninstalled != null) { for (IFixInfo fix : installedFixes) { if (...
java
public boolean isUninstallable(UninstallAsset uninstallAsset, Set<IFixInfo> installedFixes, List<UninstallAsset> uninstallAssets) { if (Boolean.valueOf(System.getenv(S_DISABLE)).booleanValue()) { return true; } IFixInfo fixToBeUninstalled = uninstallAsset.getIFixInfo(); for...
java
public static ArrayList<String> fixRequiredByFeature(String fixApar, Map<String, ProvisioningFeatureDefinition> installedFeatures) { ArrayList<String> dependencies = new ArrayList<String>(); for (ProvisioningFeatureDefinition fd : installedFeatures.values()) { String requireFixes = fd.getHea...
java
public List<UninstallAsset> determineOrder(List<UninstallAsset> list) { if (list != null) { List<FixDependencyComparator> fixCompareList = new ArrayList<FixDependencyComparator>(); // Initialize the feature comparator for (UninstallAsset asset : list) { fixCom...
java
private static boolean isSupersededBy(List<Problem> apars1, List<Problem> apars2) { boolean result = true; // Now iterate over the current list of problems, and see if the incoming IFixInfo contains all of the problems from this IfixInfo. // If it does then return true, to indicate that this I...
java
private static boolean confirmNoFileConflicts(Set<UpdatedFile> updatedFiles1, Set<UpdatedFile> updatedFiles2) { for (Iterator<UpdatedFile> iter1 = updatedFiles1.iterator(); iter1.hasNext();) { UpdatedFile currFile1 = iter1.next(); for (Iterator<UpdatedFile> iter2 = updatedFiles2.iterato...
java
@Override public void close(boolean deleteProgressFile) { final String methodName = "close()"; traceDebug(methodName, "cacheName=" + this.cacheName + " deleteProgressFile=" + deleteProgressFile); if (deleteProgressFile) { // 316654 // remove the InProgress (dummy) file when close...
java
@Override public int writeAuxiliaryDepTables() { int returnCode = htod.writeAuxiliaryDepTables(); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } else { updatePropertyFile(); } return returnCode; }
java
private void readLastScanFile() { final String methodName = "readLastScanFile()"; final File f = new File(lastScanFileName); traceDebug(methodName, "cacheName=" + this.cacheName); if (f.exists()) { final CacheOnDisk cod = this; AccessController.doPrivileged(new Pr...
java
protected void updateLastScanFile() { final String methodName = "updateLastScanFile()"; final File f = new File(lastScanFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { ...
java
private void deletePropertyFile() { final String methodName = "deletePropertyFile()"; final File f = new File(htodPropertyFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { ...
java
public void deleteDiskCacheFiles() { final String methodName = "deleteDiskCacheFiles()"; final File f = new File(swapDirPath); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName); AccessController.doPrivileged(new PrivilegedAction() { p...
java
protected ValueSet readAndDeleteInvalidationFile() { final String methodName = "readAndDeleteInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; this.valueSet = new ValueSet(1); if (f.exists()) { AccessController.doPrivile...
java
protected void createInvalidationFile() { final String methodName = "createInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; traceDebug(methodName, "cacheName=" + this.cacheName + " valueSet=" + cod.valueSet.size()); AccessControlle...
java
public void alarm(final Object alarmContext) { final String methodName = "alarm()"; synchronized (this) { if (!stopping && !this.htod.invalidationBuffer.isDiskClearInProgress()) { this.htod.invalidationBuffer.invokeBackgroundInvalidation(HTODInvalidationBuffer.SCAN); ...
java
public void clearDiskCache() { if (htod.clearDiskCache() == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } else { updateLastScanFile(); updatePropertyFile(); createInProgressFile(); } }
java
public int writeCacheEntry(CacheEntry ce) { // @A5C int returnCode = htod.writeCacheEntry(ce); if (returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(this.htod.diskCacheException); } return returnCode; }
java
public CacheEntry readCacheEntry(Object id) { // SKS-O Result result = htod.readCacheEntry(id); if (result.returnCode == HTODDynacache.DISK_EXCEPTION) { stopOnError(result.diskException); this.htod.returnToResultPool(result); return null; } CacheEntry ...
java