java.lang.Object
com.ibm.oti.shared.SharedClassUtilities
SharedClassUtilities provides APIs to get information about all shared class
caches in a directory and to destroy a particular shared class cache.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Returned bydestroySharedCache(java.lang.String, int, java.lang.String, boolean)
to indicate that the method has failed to destroy the current generation cache.static final int
Returned bydestroySharedCache(java.lang.String, int, java.lang.String, boolean)
to indicate that the method has failed to destroy one or more older generation caches, and either a current generation cache does not exist or is successfully destroyed.static final int
Returned bydestroySharedCache(java.lang.String, int, java.lang.String, boolean)
to indicate either no cache exists or the method has successfully destroyed caches of all generations.static final int
Returned bydestroySharedCache(java.lang.String, int, java.lang.String, boolean)
to indicate that the method failed to destroy any cache.static final int
Value to be passed toflags
parameter of thegetSharedCacheInfo(java.lang.String, int, boolean)
method.static final int
Specifies a non-persistent cache.static final int
Uses the platform dependent default value as the cache type.static final int
Specifies a persistent cache.static final int
Specifies a cache snapshot. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
destroySharedCache
(String cacheDir, int cacheType, String cacheName, boolean useCommandLineValues) Destroys a named shared class cache of a given type in a given directory.static List<SharedClassCacheInfo>
getSharedCacheInfo
(String cacheDir, int flags, boolean useCommandLineValues) Iterates through all shared class caches present in the given directory and returns their information in aList
.
-
Field Details
-
NO_FLAGS
public static final int NO_FLAGSValue to be passed toflags
parameter of thegetSharedCacheInfo(java.lang.String, int, boolean)
method.- See Also:
-
PERSISTENCE_DEFAULT
public static final int PERSISTENCE_DEFAULTUses the platform dependent default value as the cache type.- See Also:
-
PERSISTENT
public static final int PERSISTENTSpecifies a persistent cache.- See Also:
-
NONPERSISTENT
public static final int NONPERSISTENTSpecifies a non-persistent cache.- See Also:
-
SNAPSHOT
public static final int SNAPSHOTSpecifies a cache snapshot.- See Also:
-
DESTROYED_ALL_CACHE
public static final int DESTROYED_ALL_CACHEReturned bydestroySharedCache(java.lang.String, int, java.lang.String, boolean)
to indicate either no cache exists or the method has successfully destroyed caches of all generations.- See Also:
-
DESTROYED_NONE
public static final int DESTROYED_NONEReturned bydestroySharedCache(java.lang.String, int, java.lang.String, boolean)
to indicate that the method failed to destroy any cache.- See Also:
-
DESTROY_FAILED_CURRENT_GEN_CACHE
public static final int DESTROY_FAILED_CURRENT_GEN_CACHEReturned bydestroySharedCache(java.lang.String, int, java.lang.String, boolean)
to indicate that the method has failed to destroy the current generation cache.- See Also:
-
DESTROY_FAILED_OLDER_GEN_CACHE
public static final int DESTROY_FAILED_OLDER_GEN_CACHEReturned bydestroySharedCache(java.lang.String, int, java.lang.String, boolean)
to indicate that the method has failed to destroy one or more older generation caches, and either a current generation cache does not exist or is successfully destroyed.- See Also:
-
-
Constructor Details
-
SharedClassUtilities
Deprecated.Constructs a new instance of this class.
-
-
Method Details