Class CacheStatisticsModeChangeMessage
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheStatisticsModeChangeMessage
-
- All Implemented Interfaces:
Serializable,DiscoveryCustomMessage
public class CacheStatisticsModeChangeMessage extends Object implements DiscoveryCustomMessage
Cache statistics mode change discovery message.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheStatisticsModeChangeMessage(UUID reqId, Collection<String> caches, boolean enabled)Constructor for request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable DiscoveryCustomMessageackMessage()Called when custom message has been handled by all nodes.Collection<String>caches()DiscoCachecreateDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)Creates new discovery cache if message caused topology version change.booleanenabled()IgniteUuidid()booleaninitial()Initial message flag.booleanisMutable()UUIDrequestId()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.managers.discovery.DiscoveryCustomMessage
stopProcess
-
-
-
-
Constructor Detail
-
CacheStatisticsModeChangeMessage
public CacheStatisticsModeChangeMessage(UUID reqId, Collection<String> caches, boolean enabled)
Constructor for request.- Parameters:
caches- Collection of cache names.
-
-
Method Detail
-
id
public IgniteUuid id()
- Specified by:
idin interfaceDiscoveryCustomMessage- Returns:
- Unique custom message ID.
-
ackMessage
@Nullable public @Nullable DiscoveryCustomMessage ackMessage()
Called when custom message has been handled by all nodes.- Specified by:
ackMessagein interfaceDiscoveryCustomMessage- Returns:
- Ack message or
nullif ack is not required.
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceDiscoveryCustomMessage- Returns:
Trueif message can be modified during listener notification. Changes will be sent to next nodes.
-
createDiscoCache
public DiscoCache createDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)
Creates new discovery cache if message caused topology version change.- Specified by:
createDiscoCachein interfaceDiscoveryCustomMessage- Parameters:
mgr- Discovery manager.topVer- New topology version.discoCache- Current discovery cache.- Returns:
- Reused discovery cache.
-
caches
public Collection<String> caches()
- Returns:
- Cache names.
-
initial
public boolean initial()
Initial message flag.
-
enabled
public boolean enabled()
- Returns:
- Statistic enabled.
-
requestId
public UUID requestId()
- Returns:
- Request id.
-
-