Class JCoConnectionsSnapshotClusterResultEvent

    • Constructor Detail

      • JCoConnectionsSnapshotClusterResultEvent

        public JCoConnectionsSnapshotClusterResultEvent​(java.lang.String snapshotUuid,
                                                        int clusterId,
                                                        java.lang.String snapshotContent)
        Standard constructor.
        Parameters:
        snapshotUuid - snapshot uuid
        clusterId - cluster id
        snapshotContent - snapshot content
      • JCoConnectionsSnapshotClusterResultEvent

        public JCoConnectionsSnapshotClusterResultEvent​(java.lang.String snapshotUuid,
                                                        int clusterId,
                                                        JCoMonitorException exception)
        Exception constructor.
        Parameters:
        snapshotUuid - snapshot uuid
        clusterId - cluster id
        exception - 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
      • 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: ClusterAwareEvent
        Decide whether this event should be broadcasted/received. Examples are
        • return (sourceNodeId==targetNodeId ); => will only publish to local cluster
        • return true; => will publish to all nodes
        • return (targetNodeId==14); => publish to dedicated node regardless of source
        Specified by:
        publish in interface ClusterAwareEvent
        Returns:
        true if event should be published from source cluster node to target cluster node