public class StateChangeEvent extends java.lang.Object implements java.io.Serializable
statechange at a node to the StateChangeListener. There is a distinct instance of this event representing each state change at a node.
Each event instance may have zero or more state change related exceptions
associated with it. The exceptions are of type
StateChangeException has a method called
StateChangeException.getEvent() that can be used to associate an event with
|Modifier and Type||Method and Description|
Returns the time (in nano second units) the event occurred, as reported by
Returns the node name identifying the master at the time of the event.
Returns the state that the node has transitioned to.
public ReplicatedEnvironment.State getState()
Stateresulting from this event
public long getEventTime()
public java.lang.String getMasterNodeName() throws java.lang.IllegalStateException
java.lang.IllegalStateException- if the node is in the
Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.