Package org.infinispan.rest.distribution
Class CacheDistributionInfo
java.lang.Object
org.infinispan.rest.distribution.CacheDistributionInfo
- All Implemented Interfaces:
JsonSerialization
,NodeDataDistribution
@ProtoTypeId(6000)
public class CacheDistributionInfo
extends Object
implements JsonSerialization, NodeDataDistribution
-
Constructor Summary
ConstructorDescriptionCacheDistributionInfo
(String name, List<String> addresses, long memoryEntries, long totalEntries, long memoryUsed) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
name()
static CacheDistributionInfo
resolve
(AdvancedCache<?, ?> cache) static CacheDistributionInfo
resolve
(AdvancedCache<?, ?> cache, CacheManagerInfo manager) toJson()
long
-
Constructor Details
-
CacheDistributionInfo
-
-
Method Details
-
name
- Specified by:
name
in interfaceNodeDataDistribution
-
addresses
@ProtoField(value=2, collectionImplementation=java.util.ArrayList.class) public List<String> addresses()- Specified by:
addresses
in interfaceNodeDataDistribution
-
memoryEntries
@ProtoField(value=3, defaultValue="0") public long memoryEntries() -
totalEntries
@ProtoField(value=4, defaultValue="0") public long totalEntries() -
memoryUsed
@ProtoField(value=5, defaultValue="0") public long memoryUsed() -
toJson
- Specified by:
toJson
in interfaceJsonSerialization
-
resolve
-
resolve
-