Class PartitionedJCacheStatistics.PartitionedCacheStatisticsAggregator
- java.lang.Object
- 
- com.tangosol.coherence.jcache.partitionedcache.PartitionedJCacheStatistics.PartitionedCacheStatisticsAggregator
 
- 
- All Implemented Interfaces:
- ExternalizableLite,- PortableObject,- InvocableMap.EntryAggregator,- InvocableMap.StreamingAggregator,- Serializable
 - Enclosing class:
- PartitionedJCacheStatistics
 
 public static class PartitionedJCacheStatistics.PartitionedCacheStatisticsAggregator extends Object implements InvocableMap.StreamingAggregator, ExternalizableLite, PortableObject Collect JCache CacheStatistics from all storage-enabled members.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from interface com.tangosol.util.InvocableMap.StreamingAggregatorALLOW_INCONSISTENCIES, BY_MEMBER, BY_PARTITION, PARALLEL, PRESENT_ONLY, RETAINS_ENTRIES, SERIAL
 
- 
 - 
Constructor SummaryConstructors Constructor Description PartitionedCacheStatisticsAggregator()PartitionedCacheStatisticsAggregator(JCacheIdentifier id, ValueExtractor valueExtractor)Constructs an aggregator to aggregate JCache Cache Statistics from all storage-enabled servers for a JCache implemented as a Partitioned Cache.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccumulate(InvocableMap.Entry entry)Accumulate one entry into the result.intcharacteristics()A bit mask representing the set of characteristics of this aggregator.booleancombine(Object partialResult)Merge another partial result into the result.ObjectfinalizeResult()Return the final result of the aggregation.ObjectgetPartialResult()Return the partial result of the aggregation.protected voidprocess(Object o)voidreadExternal(PofReader in)Restore the contents of a user type instance by reading its state using the specified PofReader object.voidreadExternal(DataInput in)Restore the contents of this object by loading the object's state from the passed DataInput object.InvocableMap.StreamingAggregatorsupply()Create a new instance of this aggregator.voidwriteExternal(PofWriter out)Save the contents of a POF user type instance by writing its state using the specified PofWriter object.voidwriteExternal(DataOutput out)Save the contents of this object by storing the object's state into the passed DataOutput object.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.tangosol.util.InvocableMap.StreamingAggregatoraccumulate, aggregate, isAllowInconsistencies, isByMember, isByPartition, isParallel, isPresentOnly, isRetainsEntries, isSerial
 
- 
 
- 
- 
- 
Constructor Detail- 
PartitionedCacheStatisticsAggregatorpublic PartitionedCacheStatisticsAggregator() 
 - 
PartitionedCacheStatisticsAggregatorpublic PartitionedCacheStatisticsAggregator(JCacheIdentifier id, ValueExtractor valueExtractor) Constructs an aggregator to aggregate JCache Cache Statistics from all storage-enabled servers for a JCache implemented as a Partitioned Cache.- Parameters:
- id- the JCache cache to collect cache statistics for.
- valueExtractor- extract CacheStatistics via binary entry context.
 
 
- 
 - 
Method Detail- 
supplypublic InvocableMap.StreamingAggregator supply() Description copied from interface:InvocableMap.StreamingAggregatorCreate a new instance of this aggregator.- Specified by:
- supplyin interface- InvocableMap.StreamingAggregator
- Returns:
- a StreamAggregator
 
 - 
accumulatepublic boolean accumulate(InvocableMap.Entry entry) Description copied from interface:InvocableMap.StreamingAggregatorAccumulate one entry into the result.- Specified by:
- accumulatein interface- InvocableMap.StreamingAggregator
- Parameters:
- entry- the entry to accumulate into the aggregation result
- Returns:
- trueto continue the aggregation, and- falseto signal to the caller that the result is ready and the aggregation can be short-circuited
 
 - 
combinepublic boolean combine(Object partialResult) Description copied from interface:InvocableMap.StreamingAggregatorMerge another partial result into the result.- Specified by:
- combinein interface- InvocableMap.StreamingAggregator
- Parameters:
- partialResult- the partial result to merge
- Returns:
- trueto continue the aggregation, and- falseto signal to the caller that the result is ready and the aggregation can be short-circuited
 
 - 
getPartialResultpublic Object getPartialResult() Description copied from interface:InvocableMap.StreamingAggregatorReturn the partial result of the aggregation.- Specified by:
- getPartialResultin interface- InvocableMap.StreamingAggregator
- Returns:
- the partial result of the aggregation
 
 - 
finalizeResultpublic Object finalizeResult() Description copied from interface:InvocableMap.StreamingAggregatorReturn the final result of the aggregation.- Specified by:
- finalizeResultin interface- InvocableMap.StreamingAggregator
- Returns:
- the final result of the aggregation
 
 - 
characteristicspublic int characteristics() Description copied from interface:InvocableMap.StreamingAggregatorA bit mask representing the set of characteristics of this aggregator.By default, characteristics are a combination of InvocableMap.StreamingAggregator.PARALLELandInvocableMap.StreamingAggregator.RETAINS_ENTRIES, which is sub-optimal and should be overridden by the aggregator implementation if the aggregator does not need to retain entries (which is often the case).- Specified by:
- characteristicsin interface- InvocableMap.StreamingAggregator
- Returns:
- a bit mask representing the set of characteristics of this aggregator
- See Also:
- InvocableMap.StreamingAggregator.ALLOW_INCONSISTENCIES,- InvocableMap.StreamingAggregator.BY_MEMBER,- InvocableMap.StreamingAggregator.BY_PARTITION,- InvocableMap.StreamingAggregator.PARALLEL,- InvocableMap.StreamingAggregator.PRESENT_ONLY,- InvocableMap.StreamingAggregator.RETAINS_ENTRIES,- InvocableMap.StreamingAggregator.SERIAL
 
 - 
processprotected void process(Object o) 
 - 
readExternalpublic void readExternal(DataInput in) throws IOException Description copied from interface:ExternalizableLiteRestore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
- readExternalin interface- ExternalizableLite
- Parameters:
- in- the DataInput stream to read data from in order to restore the state of this object
- Throws:
- IOException- if an I/O exception occurs
- NotActiveException- if the object is not in its initial state, and therefore cannot be deserialized into
 
 - 
writeExternalpublic void writeExternal(DataOutput out) throws IOException Description copied from interface:ExternalizableLiteSave the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
- writeExternalin interface- ExternalizableLite
- Parameters:
- out- the DataOutput stream to write the state of this object to
- Throws:
- IOException- if an I/O exception occurs
 
 - 
readExternalpublic void readExternal(PofReader in) throws IOException Description copied from interface:PortableObjectRestore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
- readExternalin interface- PortableObject
- Parameters:
- in- the PofReader from which to read the object's state
- Throws:
- IOException- if an I/O error occurs
 
 - 
writeExternalpublic void writeExternal(PofWriter out) throws IOException Description copied from interface:PortableObjectSave the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
- writeExternalin interface- PortableObject
- Parameters:
- out- the PofWriter to which to write the object's state
- Throws:
- IOException- if an I/O error occurs
 
 
- 
 
-