Class Caches
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.util.Caches
-
public final class Caches extends Object
Utility class for easy access to the various caches used by theExecutorservice.- Since:
- 22.06
- Author:
- rl 2022.5.25
-
-
Field Summary
Fields Modifier and Type Field Description static StringASSIGNMENTS_CACHE_NAMETheNamedCachein whichClusteredAssignmentinstances will be placed.static StringEXECUTORS_CACHE_NAMETheNamedCachein whichClusteredExecutorInfoinstances will be placed.static StringPROPERTIES_CACHE_NAMETheNamedCachein whichClusteredPropertiesinstances will be placed.static StringTASKS_CACHE_NAMETheNamedCachein whichClusteredTaskManagerinstances will be placed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.tangosol.net.NamedCacheassignments(com.tangosol.net.CacheService service)Obtains the cache used to storeClusteredAssignmentinstances.static com.tangosol.net.NamedCacheassignments(com.tangosol.net.ConfigurableCacheFactory factory)Obtains the cache used to storeClusteredAssignmentinstances.static com.tangosol.net.NamedCacheassignments(com.tangosol.net.Session session)Obtains the cache used to storeClusteredAssignmentinstances.static com.tangosol.net.NamedCacheexecutors(com.tangosol.net.CacheService service)Obtains the cache used to storeClusteredExecutorInfoinstances.static com.tangosol.net.NamedCacheexecutors(com.tangosol.net.ConfigurableCacheFactory factory)Obtains the cache used to storeClusteredExecutorInfoinstances.static com.tangosol.net.NamedCacheexecutors(com.tangosol.net.Session session)Obtains the cache used to storeClusteredExecutorInfoinstances.static com.tangosol.net.NamedCacheproperties(com.tangosol.net.CacheService service)Obtains the cache used to storeClusteredPropertiesinstances.static com.tangosol.net.NamedCacheproperties(com.tangosol.net.ConfigurableCacheFactory factory)Obtains the cache used to storeClusteredPropertiesinstances.static com.tangosol.net.NamedCacheproperties(com.tangosol.net.Session session)Obtains the cache used to storeClusteredPropertiesinstances.static com.tangosol.net.NamedCachetasks(com.tangosol.net.CacheService service)Obtains the cache used to storeClusteredTaskManagerinstances.static com.tangosol.net.NamedCachetasks(com.tangosol.net.ConfigurableCacheFactory factory)Obtains the cache used to storeClusteredTaskManagerinstances.static com.tangosol.net.NamedCachetasks(com.tangosol.net.Session session)Obtains the cache used to storeClusteredTaskManagerinstances.
-
-
-
Field Detail
-
TASKS_CACHE_NAME
public static String TASKS_CACHE_NAME
TheNamedCachein whichClusteredTaskManagerinstances will be placed.
-
ASSIGNMENTS_CACHE_NAME
public static String ASSIGNMENTS_CACHE_NAME
TheNamedCachein whichClusteredAssignmentinstances will be placed.
-
EXECUTORS_CACHE_NAME
public static final String EXECUTORS_CACHE_NAME
TheNamedCachein whichClusteredExecutorInfoinstances will be placed.- See Also:
- Constant Field Values
-
PROPERTIES_CACHE_NAME
public static String PROPERTIES_CACHE_NAME
TheNamedCachein whichClusteredPropertiesinstances will be placed.
-
-
Method Detail
-
tasks
public static com.tangosol.net.NamedCache tasks(com.tangosol.net.CacheService service)
Obtains the cache used to storeClusteredTaskManagerinstances.- Parameters:
service- theCacheServiceto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredTaskManagerinstances - Throws:
NullPointerException- ifserviceisnull
-
assignments
public static com.tangosol.net.NamedCache assignments(com.tangosol.net.CacheService service)
Obtains the cache used to storeClusteredAssignmentinstances.- Parameters:
service- theCacheServiceto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredAssignmentinstances - Throws:
NullPointerException- ifserviceisnull
-
executors
public static com.tangosol.net.NamedCache executors(com.tangosol.net.CacheService service)
Obtains the cache used to storeClusteredExecutorInfoinstances.- Parameters:
service- theCacheServiceto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredExecutorInfoinstances - Throws:
NullPointerException- ifserviceisnull
-
properties
public static com.tangosol.net.NamedCache properties(com.tangosol.net.CacheService service)
Obtains the cache used to storeClusteredPropertiesinstances.- Parameters:
service- theCacheServiceto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredPropertiesinstances - Throws:
NullPointerException- ifserviceisnull
-
tasks
public static com.tangosol.net.NamedCache tasks(com.tangosol.net.Session session)
Obtains the cache used to storeClusteredTaskManagerinstances.- Parameters:
session- theSessionto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredTaskManagerinstances - Throws:
NullPointerException- ifsessionisnull
-
assignments
public static com.tangosol.net.NamedCache assignments(com.tangosol.net.Session session)
Obtains the cache used to storeClusteredAssignmentinstances.- Parameters:
session- theSessionto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredAssignmentinstances - Throws:
NullPointerException- ifsessionisnull
-
executors
public static com.tangosol.net.NamedCache executors(com.tangosol.net.Session session)
Obtains the cache used to storeClusteredExecutorInfoinstances.- Parameters:
session- theSessionto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredExecutorInfoinstances - Throws:
NullPointerException- ifsessionisnull
-
properties
public static com.tangosol.net.NamedCache properties(com.tangosol.net.Session session)
Obtains the cache used to storeClusteredPropertiesinstances.- Parameters:
session- theSessionto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredPropertiesinstances - Throws:
NullPointerException- ifsessionisnull
-
tasks
public static com.tangosol.net.NamedCache tasks(com.tangosol.net.ConfigurableCacheFactory factory)
Obtains the cache used to storeClusteredTaskManagerinstances.- Parameters:
factory- theConfigurableCacheFactoryto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredTaskManagerinstances - Throws:
NullPointerException- iffactoryisnull
-
assignments
public static com.tangosol.net.NamedCache assignments(com.tangosol.net.ConfigurableCacheFactory factory)
Obtains the cache used to storeClusteredAssignmentinstances.- Parameters:
factory- theConfigurableCacheFactoryto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredAssignmentinstances - Throws:
NullPointerException- iffactoryisnull
-
executors
public static com.tangosol.net.NamedCache executors(com.tangosol.net.ConfigurableCacheFactory factory)
Obtains the cache used to storeClusteredExecutorInfoinstances.- Parameters:
factory- theConfigurableCacheFactoryto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredAssignmentinstances - Throws:
NullPointerException- iffactoryisnull
-
properties
public static com.tangosol.net.NamedCache properties(com.tangosol.net.ConfigurableCacheFactory factory)
Obtains the cache used to storeClusteredPropertiesinstances.- Parameters:
factory- theConfigurableCacheFactoryto use to obtain a cache reference- Returns:
- the cache used to store
ClusteredPropertiesinstances - Throws:
NullPointerException- iffactoryisnull
-
-