Interface TaskExecutorService.ExecutorInfo
-
- All Superinterfaces:
com.tangosol.io.ExternalizableLite,Serializable
- All Known Implementing Classes:
ClusteredExecutorInfo
- Enclosing interface:
- TaskExecutorService
public static interface TaskExecutorService.ExecutorInfo extends com.tangosol.io.ExternalizableLiteProvides access to the currently available information for a registeredExecutorService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTaskExecutorService.ExecutorInfo.StateThe state of anExecutorService.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetFreeMemory()The last reported free memory byRuntime.freeMemory()available to theExecutorService.StringgetId()Obtains the unique identity for theExecutorService.longgetLastUpdateTime()Obtains the time since the epoch when theTaskExecutorService.ExecutorInfowas last updated.longgetMaxMemory()The last reported maximum memory byRuntime.maxMemory()available to theExecutorService.<T extends TaskExecutorService.Registration.Option>
TgetOption(Class<T> clzOfOption, T defaultIfNotFound)Obtains theTaskExecutorService.Registration.Optionof the specified class when theExecutorServicewas registered, or the default value if not found.TaskExecutorService.ExecutorInfo.StategetState()Obtains the currentTaskExecutorService.ExecutorInfo.Stateof theExecutorService.longgetTotalMemory()The last reported total memory byRuntime.totalMemory()available to theExecutorService.
-
-
-
Method Detail
-
getId
String getId()
Obtains the unique identity for theExecutorService.- Returns:
- the unique identity
-
getState
TaskExecutorService.ExecutorInfo.State getState()
Obtains the currentTaskExecutorService.ExecutorInfo.Stateof theExecutorService.- Returns:
- the current
TaskExecutorService.ExecutorInfo.State
-
getLastUpdateTime
long getLastUpdateTime()
Obtains the time since the epoch when theTaskExecutorService.ExecutorInfowas last updated.- Returns:
- the time since the epoch for the last update
-
getMaxMemory
long getMaxMemory()
The last reported maximum memory byRuntime.maxMemory()available to theExecutorService.- Returns:
- the maximum memory (in bytes)
-
getTotalMemory
long getTotalMemory()
The last reported total memory byRuntime.totalMemory()available to theExecutorService.- Returns:
- the total memory (in bytes)
-
getFreeMemory
long getFreeMemory()
The last reported free memory byRuntime.freeMemory()available to theExecutorService.- Returns:
- the free memory (in bytes)
-
getOption
<T extends TaskExecutorService.Registration.Option> T getOption(Class<T> clzOfOption, T defaultIfNotFound)
Obtains theTaskExecutorService.Registration.Optionof the specified class when theExecutorServicewas registered, or the default value if not found.- Type Parameters:
T- the type of theTaskExecutorService.Registration.Option- Parameters:
clzOfOption- the class ofTaskExecutorService.Registration.OptiondefaultIfNotFound- the value to return if not found- Returns:
- a
TaskExecutorService.Registration.Option
-
-