Class ClusteredExecutorInfo.UpdateInfoProcessor
- java.lang.Object
-
- com.tangosol.util.Base
-
- com.tangosol.util.processor.AbstractProcessor<K,V,R>
-
- com.oracle.coherence.concurrent.executor.PortableAbstractProcessor<String,ClusteredExecutorInfo,Void>
-
- com.oracle.coherence.concurrent.executor.ClusteredExecutorInfo.UpdateInfoProcessor
-
- All Implemented Interfaces:
com.tangosol.io.pof.PortableObject,com.tangosol.util.InvocableMap.EntryProcessor<String,ClusteredExecutorInfo,Void>,Serializable
- Enclosing class:
- ClusteredExecutorInfo
public static class ClusteredExecutorInfo.UpdateInfoProcessor extends PortableAbstractProcessor<String,ClusteredExecutorInfo,Void>
AnInvocableMap.EntryProcessorto update the state of anTaskExecutorService.ExecutorInfo.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected longm_cFreeMemoryThe free memory as reported byRuntime.freeMemory().protected longm_cMaxMemoryThe maximum memory as reported byRuntime.maxMemory().protected longm_cTasksCompletedThe tasks completed count.protected longm_cTasksFailedThe tasks failed count.protected longm_cTasksInProgressThe tasks in progress count.protected longm_cTotalMemoryThe total memory as reported byRuntime.totalMemory().protected booleanm_fTerminatedWhether the Executor has been terminated.
-
Constructor Summary
Constructors Constructor Description UpdateInfoProcessor()Constructs anClusteredExecutorInfo.UpdateInfoProcessor(required for serialization).UpdateInfoProcessor(long cMaxMemory, long cTotalMemory, long cFreeMemory, boolean fTerminated, long cTasksCompleted, long cTasksFailed, long cTasksInProgress)Constructs anClusteredExecutorInfo.UpdateInfoProcessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Voidprocess(com.tangosol.util.InvocableMap.Entry<String,ClusteredExecutorInfo> entry)voidreadExternal(com.tangosol.io.pof.PofReader in)voidwriteExternal(com.tangosol.io.pof.PofWriter out)-
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
-
-
-
Field Detail
-
m_cMaxMemory
protected long m_cMaxMemory
The maximum memory as reported byRuntime.maxMemory().
-
m_cTotalMemory
protected long m_cTotalMemory
The total memory as reported byRuntime.totalMemory().
-
m_cFreeMemory
protected long m_cFreeMemory
The free memory as reported byRuntime.freeMemory().
-
m_fTerminated
protected boolean m_fTerminated
Whether the Executor has been terminated.
-
m_cTasksCompleted
protected long m_cTasksCompleted
The tasks completed count.
-
m_cTasksFailed
protected long m_cTasksFailed
The tasks failed count.
-
m_cTasksInProgress
protected long m_cTasksInProgress
The tasks in progress count.
-
-
Constructor Detail
-
UpdateInfoProcessor
public UpdateInfoProcessor()
Constructs anClusteredExecutorInfo.UpdateInfoProcessor(required for serialization).
-
UpdateInfoProcessor
public UpdateInfoProcessor(long cMaxMemory, long cTotalMemory, long cFreeMemory, boolean fTerminated, long cTasksCompleted, long cTasksFailed, long cTasksInProgress)Constructs anClusteredExecutorInfo.UpdateInfoProcessor.- Parameters:
cMaxMemory- the maximum memory as reported byRuntime.maxMemory()cTotalMemory- the total memory as reported byRuntime.totalMemory()cFreeMemory- the free memory as reported byRuntime.freeMemory()fTerminated- whether the monitoredExecutoris terminated.cTasksCompleted- the completed tasks count.cTasksFailed- the failed tasks count.cTasksInProgress- the in progress tasks count.
-
-
Method Detail
-
process
public Void process(com.tangosol.util.InvocableMap.Entry<String,ClusteredExecutorInfo> entry)
-
readExternal
public void readExternal(com.tangosol.io.pof.PofReader in) throws IOException- Specified by:
readExternalin interfacecom.tangosol.io.pof.PortableObject- Overrides:
readExternalin classPortableAbstractProcessor<String,ClusteredExecutorInfo,Void>- Throws:
IOException
-
writeExternal
public void writeExternal(com.tangosol.io.pof.PofWriter out) throws IOException- Specified by:
writeExternalin interfacecom.tangosol.io.pof.PortableObject- Overrides:
writeExternalin classPortableAbstractProcessor<String,ClusteredExecutorInfo,Void>- Throws:
IOException
-
-