Package com.tibco.tibjms.admin
Class State
- java.lang.Object
-
- com.tibco.tibjms.admin.State
-
public class State extends java.lang.ObjectThis class represents the FT state for a TIBCO Enterprise Message Service server.- Since:
- EMS 8.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static intSERVER_COMPSTATE_ONLYThis flag indicates that the server is deployed with FTL stores and is configured as standby_only.static intSERVER_COMPSTATE_PAUSEDThis flag indicates that the server is currently paused, waiting to determine the correct action after the failure of its peer.static intSERVER_COMPSTATE_REPLICATINGThis flag indicates that the server is currently replicating incoming data with its peer (applies to a server either in active or standby state, in the EMS Appliance only).static intSERVER_COMPSTATE_STANDALONEThis flag indicates that the server is currently running standalone (applies to a server in active state, in the EMS Appliance only).static intSERVER_COMPSTATE_SYNCHRONIZINGThis flag indicates that the server is currently synchronizing data with its peer (applies to a server either in active or standby state, in the EMS Appliance only).static intSERVER_COMPSTATE_WAIT_FOR_PEERThis flag indicates that the server is currently waiting for its peer to come up (applies to the EMS Appliance only).static intSERVER_STATE_ACTIVEThis value indicates that the server is currently in active state.static intSERVER_STATE_ACTIVE_PAUSEDThis value indicates that the server is currently in active state and is presently determining the correct action in reaction to failure of the standby server.static intSERVER_STATE_ACTIVE_REPLICATINGThis value indicates that the server is currently in active state and is presently replicating incoming data to the standby server.static intSERVER_STATE_ACTIVE_STANDALONEThis value indicates that the server is currently in standalone active state.static intSERVER_STATE_ACTIVE_SYNCHRONIZINGThis value indicates that the server is currently in active state and is presently synchronizing data to the standby server.static intSERVER_STATE_STANDBYThis value indicates that the server is currently in standby state.static intSERVER_STATE_STANDBY_ONLYThis value indicates that the server is deployed with FTL stores and is configured as standby_only.static intSERVER_STATE_STANDBY_PAUSEDThis value indicates that the server is currently in standby state and is presently determining the correct action in reaction to failure of the active server.static intSERVER_STATE_STANDBY_REPLICATINGThis value indicates that the server is currently in standby state and is presently replicating incoming data from the active server.static intSERVER_STATE_STANDBY_SYNCHRONIZINGThis value indicates that the server is currently in standby state and is presently synchronizing data from the active server.static intSERVER_STATE_WAIT_FOR_PEERThis value indicates that the server is currently waiting for its peer to come up.
-
Constructor Summary
Constructors Constructor Description State(int state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intget()Get the current state of the server.
In classic FT mode, can return one of the constants:
SERVER_STATE_STANDBY - standby server
SERVER_STATE_ACTIVE - active server
In the EMS Appliance, can return one of the above two constants, augmented with complementary flags:
SERVER_COMPSTATE_WAIT_FOR_PEER - the server is waiting for its peer to come up
SERVER_COMPSTATE_SYNCHRONIZING - the server is synchronizing with its peer
SERVER_COMPSTATE_REPLICATING - the server is replicating with its peer
SERVER_COMPSTATE_PAUSED - the server is paused
SERVER_COMPSTATE_STANDALONE - the server is running standalone
When deployed with FTL stores, can return one of the two above constants, augmented with the following flag:
SERVER_COMPSTATE_ONLY - the server is deployed with FTL stores and is configured as standby_only
In addition to the two server states repeated below, the following state values are provided as a convenience that can be used instead of checking against individual flags:
SERVER_STATE_STANDBY - standby server
SERVER_STATE_ACTIVE - active server
SERVER_STATE_WAIT_FOR_PEER - server waiting for its peer to come up
SERVER_STATE_STANDBY_SYNCHRONIZING - standby server synchronizing
SERVER_STATE_STANDBY_REPLICATING - standby server replicating
SERVER_STATE_STANDBY_PAUSED - standby server paused
SERVER_STATE_ACTIVE_SYNCHRONIZING - active server synchronizing
SERVER_STATE_ACTIVE_REPLICATING - active server replicating
SERVER_STATE_ACTIVE_PAUSED - active server paused
SERVER_STATE_ACTIVE_STANDALONE - standalone active server
SERVER_STATE_STANDBY_ONLY - server deployed with FTL stores and configured as standby_onlyjava.lang.StringtoString()
-
-
-
Field Detail
-
SERVER_STATE_STANDBY
public static final int SERVER_STATE_STANDBY
This value indicates that the server is currently in standby state.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_STATE_ACTIVE
public static final int SERVER_STATE_ACTIVE
This value indicates that the server is currently in active state.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_COMPSTATE_WAIT_FOR_PEER
public static final int SERVER_COMPSTATE_WAIT_FOR_PEER
This flag indicates that the server is currently waiting for its peer to come up (applies to the EMS Appliance only).- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_COMPSTATE_SYNCHRONIZING
public static final int SERVER_COMPSTATE_SYNCHRONIZING
This flag indicates that the server is currently synchronizing data with its peer (applies to a server either in active or standby state, in the EMS Appliance only).- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_COMPSTATE_REPLICATING
public static final int SERVER_COMPSTATE_REPLICATING
This flag indicates that the server is currently replicating incoming data with its peer (applies to a server either in active or standby state, in the EMS Appliance only).- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_COMPSTATE_PAUSED
public static final int SERVER_COMPSTATE_PAUSED
This flag indicates that the server is currently paused, waiting to determine the correct action after the failure of its peer.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_COMPSTATE_STANDALONE
public static final int SERVER_COMPSTATE_STANDALONE
This flag indicates that the server is currently running standalone (applies to a server in active state, in the EMS Appliance only).- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_COMPSTATE_ONLY
public static final int SERVER_COMPSTATE_ONLY
This flag indicates that the server is deployed with FTL stores and is configured as standby_only.- Since:
- EMS 10.4.0
- See Also:
- Constant Field Values
-
SERVER_STATE_WAIT_FOR_PEER
public static final int SERVER_STATE_WAIT_FOR_PEER
This value indicates that the server is currently waiting for its peer to come up.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_STATE_STANDBY_SYNCHRONIZING
public static final int SERVER_STATE_STANDBY_SYNCHRONIZING
This value indicates that the server is currently in standby state and is presently synchronizing data from the active server.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_STATE_STANDBY_REPLICATING
public static final int SERVER_STATE_STANDBY_REPLICATING
This value indicates that the server is currently in standby state and is presently replicating incoming data from the active server.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_STATE_STANDBY_PAUSED
public static final int SERVER_STATE_STANDBY_PAUSED
This value indicates that the server is currently in standby state and is presently determining the correct action in reaction to failure of the active server.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_STATE_ACTIVE_SYNCHRONIZING
public static final int SERVER_STATE_ACTIVE_SYNCHRONIZING
This value indicates that the server is currently in active state and is presently synchronizing data to the standby server.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_STATE_ACTIVE_REPLICATING
public static final int SERVER_STATE_ACTIVE_REPLICATING
This value indicates that the server is currently in active state and is presently replicating incoming data to the standby server.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_STATE_ACTIVE_PAUSED
public static final int SERVER_STATE_ACTIVE_PAUSED
This value indicates that the server is currently in active state and is presently determining the correct action in reaction to failure of the standby server.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_STATE_ACTIVE_STANDALONE
public static final int SERVER_STATE_ACTIVE_STANDALONE
This value indicates that the server is currently in standalone active state.- Since:
- EMS 8.1.0
- See Also:
- Constant Field Values
-
SERVER_STATE_STANDBY_ONLY
public static final int SERVER_STATE_STANDBY_ONLY
This value indicates that the server is deployed with FTL stores and is configured as standby_only.- Since:
- EMS 10.4.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public int get()
Get the current state of the server.
In classic FT mode, can return one of the constants:
SERVER_STATE_STANDBY - standby server
SERVER_STATE_ACTIVE - active server
In the EMS Appliance, can return one of the above two constants, augmented with complementary flags:
SERVER_COMPSTATE_WAIT_FOR_PEER - the server is waiting for its peer to come up
SERVER_COMPSTATE_SYNCHRONIZING - the server is synchronizing with its peer
SERVER_COMPSTATE_REPLICATING - the server is replicating with its peer
SERVER_COMPSTATE_PAUSED - the server is paused
SERVER_COMPSTATE_STANDALONE - the server is running standalone
When deployed with FTL stores, can return one of the two above constants, augmented with the following flag:
SERVER_COMPSTATE_ONLY - the server is deployed with FTL stores and is configured as standby_only
In addition to the two server states repeated below, the following state values are provided as a convenience that can be used instead of checking against individual flags:
SERVER_STATE_STANDBY - standby server
SERVER_STATE_ACTIVE - active server
SERVER_STATE_WAIT_FOR_PEER - server waiting for its peer to come up
SERVER_STATE_STANDBY_SYNCHRONIZING - standby server synchronizing
SERVER_STATE_STANDBY_REPLICATING - standby server replicating
SERVER_STATE_STANDBY_PAUSED - standby server paused
SERVER_STATE_ACTIVE_SYNCHRONIZING - active server synchronizing
SERVER_STATE_ACTIVE_REPLICATING - active server replicating
SERVER_STATE_ACTIVE_PAUSED - active server paused
SERVER_STATE_ACTIVE_STANDALONE - standalone active server
SERVER_STATE_STANDBY_ONLY - server deployed with FTL stores and configured as standby_only- Returns:
- the server state.
- Since:
- EMS 8.1.0
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Since:
- EMS 8.1.0
-
-