Class ClusteredRegistration.ExecutorMBeanImpl
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.ClusteredRegistration.ExecutorMBeanImpl
-
- All Implemented Interfaces:
ExecutorMBean
- Enclosing class:
- ClusteredRegistration
protected class ClusteredRegistration.ExecutorMBeanImpl extends Object implements ExecutorMBean
ExecutorMBeanimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringf_sDetailsThe details of the executor.protected Stringf_sExecutorIdThe executor ID.protected Stringf_sLocationThe location of the executor.protected Stringf_sMemberIdThe member ID which hosts the executor.protected Stringf_sNameThe logical name of the executor.protected TaskExecutorService.ExecutorInfo.Statem_stateThe state of the executor.-
Fields inherited from interface com.oracle.coherence.concurrent.executor.management.ExecutorMBean
EXECUTOR_NAME, EXECUTOR_TYPE
-
-
Constructor Summary
Constructors Constructor Description ExecutorMBeanImpl(String sName, int nMemberId, String sLocation, String sExecutorId, String sDetails)Constructs aExecutorMBeanImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDescription()Return the description of the registeredExecutorService.StringgetId()Return the unique ID of the registeredExecutorService.StringgetLocation()Get the location where the executor is running.StringgetMemberId()Get the member id where the executor is running.StringgetName()Return the logical name of the registeredExecutorService.StringgetState()Get the state of the executor.intgetStateCode()Get the state of the executor as an integer.longgetTasksCompletedCount()Get the completed tasks count for the executor.longgetTasksInProgressCount()Get the in progress tasks count for the executor.longgetTasksRejectedCount()Get the number of tasks rejected by the executor.inthashCode()booleanisTraceLogging()Return a boolean to indicate whether the executor trace logging is enabled (true) or not (false).voidresetStatistics()Reset the statistics.voidsetTraceLogging(boolean fTrace)Set the trace to true to enable executor trace logging; false to disable executor trace logging.StringtoString()
-
-
-
Field Detail
-
f_sMemberId
protected final String f_sMemberId
The member ID which hosts the executor.
-
f_sName
protected final String f_sName
The logical name of the executor.
-
f_sDetails
protected final String f_sDetails
The details of the executor.
-
f_sLocation
protected final String f_sLocation
The location of the executor.
-
f_sExecutorId
protected final String f_sExecutorId
The executor ID.
-
m_state
protected TaskExecutorService.ExecutorInfo.State m_state
The state of the executor.
-
-
Constructor Detail
-
ExecutorMBeanImpl
public ExecutorMBeanImpl(String sName, int nMemberId, String sLocation, String sExecutorId, String sDetails)
Constructs aExecutorMBeanImpl.- Parameters:
sName- the executor namenMemberId- the member ID the executor is running onsLocation- the location details of the executorsExecutorId- the ID of the executorsDetails- the details of the executor type
-
-
Method Detail
-
resetStatistics
public void resetStatistics()
Description copied from interface:ExecutorMBeanReset the statistics.- Specified by:
resetStatisticsin interfaceExecutorMBean
-
getMemberId
public String getMemberId()
Description copied from interface:ExecutorMBeanGet the member id where the executor is running.- Specified by:
getMemberIdin interfaceExecutorMBean- Returns:
- the member id where the executor is running
-
getName
public String getName()
Description copied from interface:ExecutorMBeanReturn the logical name of the registeredExecutorService.- Specified by:
getNamein interfaceExecutorMBean- Returns:
- the logical name of the registered
ExecutorService
-
getId
public String getId()
Description copied from interface:ExecutorMBeanReturn the unique ID of the registeredExecutorService.- Specified by:
getIdin interfaceExecutorMBean- Returns:
- the unique ID of the registered
ExecutorService
-
getDescription
public String getDescription()
Description copied from interface:ExecutorMBeanReturn the description of the registeredExecutorService.- Specified by:
getDescriptionin interfaceExecutorMBean- Returns:
- the unique description of the registered
ExecutorService
-
getLocation
public String getLocation()
Description copied from interface:ExecutorMBeanGet the location where the executor is running.- Specified by:
getLocationin interfaceExecutorMBean- Returns:
- the location where the executor is running
-
getState
public String getState()
Description copied from interface:ExecutorMBeanGet the state of the executor.- Specified by:
getStatein interfaceExecutorMBean- Returns:
- the executor state
-
getStateCode
public int getStateCode()
Description copied from interface:ExecutorMBeanGet the state of the executor as an integer.- Specified by:
getStateCodein interfaceExecutorMBean- Returns:
- the executor state as an integer
-
getTasksCompletedCount
public long getTasksCompletedCount()
Description copied from interface:ExecutorMBeanGet the completed tasks count for the executor.- Specified by:
getTasksCompletedCountin interfaceExecutorMBean- Returns:
- the completed tasks count for the executor
-
getTasksRejectedCount
public long getTasksRejectedCount()
Description copied from interface:ExecutorMBeanGet the number of tasks rejected by the executor.- Specified by:
getTasksRejectedCountin interfaceExecutorMBean- Returns:
- the rejected tasks count for the executor
-
getTasksInProgressCount
public long getTasksInProgressCount()
Description copied from interface:ExecutorMBeanGet the in progress tasks count for the executor.- Specified by:
getTasksInProgressCountin interfaceExecutorMBean- Returns:
- the in progress tasks count for the executor
-
isTraceLogging
public boolean isTraceLogging()
Description copied from interface:ExecutorMBeanReturn a boolean to indicate whether the executor trace logging is enabled (true) or not (false). By default, the executor trace logging is disabled. You can enable it by either setting the "coherence.executor.trace.logging" system property or the "TraceLogging" attribute in the ExecutorMBean through JMX or management over REST.- Specified by:
isTraceLoggingin interfaceExecutorMBean- Returns:
- whether executor trace logging is enabled (true) or not (false)
-
setTraceLogging
public void setTraceLogging(boolean fTrace)
Description copied from interface:ExecutorMBeanSet the trace to true to enable executor trace logging; false to disable executor trace logging.- Specified by:
setTraceLoggingin interfaceExecutorMBean- Parameters:
fTrace- a flag to indicate whether to enable (true) executor trace logging or not (false)
-
-