Class JCoConnectionsSnapshotClusterResultEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- de.hybris.platform.servicelayer.event.events.AbstractEvent
-
- de.hybris.platform.sap.core.jco.monitor.event.JCoConnectionsSnapshotClusterResultEvent
-
- All Implemented Interfaces:
ClusterAwareEvent,java.io.Serializable
public class JCoConnectionsSnapshotClusterResultEvent extends AbstractEvent implements ClusterAwareEvent
Returns the JCo connections snapshot of the current cluster to the requester.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JCoConnectionsSnapshotClusterResultEvent(java.lang.String snapshotUuid, int clusterId, JCoMonitorException exception)Exception constructor.JCoConnectionsSnapshotClusterResultEvent(java.lang.String snapshotUuid, int clusterId, java.lang.String snapshotContent)Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClusterId()Returns the cluster id.JCoMonitorExceptiongetException()Returns the exception which may have occurred during creation of the snapshot.java.lang.StringgetSnapshotContent()Returns the snapshot content.java.lang.StringgetSnapshotUuid()Returns the snapshot uuid.booleanhasFailed()Returns if the creation of the snapshot has failed.booleanpublish(int sourceNodeId, int targetNodeId)Decide whether this event should be broadcasted/received.-
Methods inherited from class de.hybris.platform.servicelayer.event.events.AbstractEvent
getScope, getSource, isFromCluster, setFromCluster, setScope, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.servicelayer.event.ClusterAwareEvent
canPublish
-
-
-
-
Constructor Detail
-
JCoConnectionsSnapshotClusterResultEvent
public JCoConnectionsSnapshotClusterResultEvent(java.lang.String snapshotUuid, int clusterId, java.lang.String snapshotContent)Standard constructor.- Parameters:
snapshotUuid- snapshot uuidclusterId- cluster idsnapshotContent- snapshot content
-
JCoConnectionsSnapshotClusterResultEvent
public JCoConnectionsSnapshotClusterResultEvent(java.lang.String snapshotUuid, int clusterId, JCoMonitorException exception)Exception constructor.- Parameters:
snapshotUuid- snapshot uuidclusterId- cluster idexception-JCoMonitorException
-
-
Method Detail
-
getSnapshotUuid
public java.lang.String getSnapshotUuid()
Returns the snapshot uuid.- Returns:
- the snapshotGuid
-
getClusterId
public int getClusterId()
Returns the cluster id.- Returns:
- the clusterId
-
getSnapshotContent
public java.lang.String getSnapshotContent()
Returns the snapshot content.- Returns:
- the snapshotContent
-
getException
public JCoMonitorException getException()
Returns the exception which may have occurred during creation of the snapshot.- Returns:
- the
JCoMonitorException
-
hasFailed
public boolean hasFailed()
Returns if the creation of the snapshot has failed.- Returns:
- failed indicator
-
publish
public boolean publish(int sourceNodeId, int targetNodeId)Description copied from interface:ClusterAwareEventDecide whether this event should be broadcasted/received. Examples arereturn (sourceNodeId==targetNodeId );=> will only publish to local clusterreturn true;=> will publish to all nodesreturn (targetNodeId==14);=> publish to dedicated node regardless of source
- Specified by:
publishin interfaceClusterAwareEvent- Returns:
trueif event should be published from source cluster node to target cluster node
-
-