Class DynamicCacheChangeFailureMessage
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.DynamicCacheChangeFailureMessage
-
- All Implemented Interfaces:
Serializable,DiscoveryCustomMessage
public class DynamicCacheChangeFailureMessage extends Object implements DiscoveryCustomMessage
This class represents discovery message that is used to provide information about dynamic cache start failure.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DynamicCacheChangeFailureMessage(ClusterNode locNode, GridDhtPartitionExchangeId exchId, IgniteCheckedException cause, Collection<String> cacheNames)Creates new DynamicCacheChangeFailureMessage instance.
-
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>cacheNames()DiscoCachecreateDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)Creates new discovery cache if message caused topology version change.IgniteCheckedExceptionerror()ExchangeActionsexchangeActions()voidexchangeActions(ExchangeActions exchangeActions)@Nullable GridDhtPartitionExchangeIdexchangeId()IgniteUuidid()booleanisMutable()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
-
DynamicCacheChangeFailureMessage
public DynamicCacheChangeFailureMessage(ClusterNode locNode, GridDhtPartitionExchangeId exchId, IgniteCheckedException cause, Collection<String> cacheNames)
Creates new DynamicCacheChangeFailureMessage instance.- Parameters:
locNode- Local node.exchId- Exchange Id.cause- Cache start error.cacheNames- Cache names.
-
-
Method Detail
-
id
public IgniteUuid id()
- Specified by:
idin interfaceDiscoveryCustomMessage- Returns:
- Unique custom message ID.
-
cacheNames
public Collection<String> cacheNames()
- Returns:
- Collection of failed caches.
-
error
public IgniteCheckedException error()
- Returns:
- Cache start error.
-
exchangeActions
public ExchangeActions exchangeActions()
- Returns:
- Cache updates to be executed on exchange.
-
exchangeActions
public void exchangeActions(ExchangeActions exchangeActions)
- Parameters:
exchangeActions- Cache updates to be executed on exchange.
-
exchangeId
@Nullable public @Nullable GridDhtPartitionExchangeId exchangeId()
- Returns:
- Exchange version.
-
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.
-
-