HOME

com.ireasoning.core.jmx
Interface State

All Known Subinterfaces:
AdaptorServerMBean, ServiceMBean
All Known Implementing Classes:
AdaptorServer, Session, SnmpAdaptorServer, SnmpBaseSession, SnmpSession, SnmpTrapdSession, TL1AdaptorServer, TL1Session

public interface State

This interface represents object with state information.


Field Summary
static int STARTED
          Signals service already started and is running
static int STARTING
          Starting state, service is starting
static java.lang.String[] STATES
          state string array, possible values are {"Starting","Started", "Stopping", "Stopped"}
static int STOPPED
          Signals service is already stopped
static int STOPPING
          Signals service is stopping
static int UNINITIALIZED
           
 
Method Summary
 int getState()
          Returns the current state of service, one of {State.STARTING, State.STARTED, State.STOPPING, State.STARTED}
 java.lang.String getStateString()
          Returns the string representation of current state.
 

Field Detail

STATES

static final java.lang.String[] STATES
state string array, possible values are {"Starting","Started", "Stopping", "Stopped"}


STARTING

static final int STARTING
Starting state, service is starting

See Also:
Constant Field Values

STARTED

static final int STARTED
Signals service already started and is running

See Also:
Constant Field Values

STOPPING

static final int STOPPING
Signals service is stopping

See Also:
Constant Field Values

STOPPED

static final int STOPPED
Signals service is already stopped

See Also:
Constant Field Values

UNINITIALIZED

static final int UNINITIALIZED
See Also:
Constant Field Values
Method Detail

getState

int getState()
Returns the current state of service, one of {State.STARTING, State.STARTED, State.STOPPING, State.STARTED}


getStateString

java.lang.String getStateString()
Returns the string representation of current state. Possible values are {"Starting","Started", "Stopping", "Stopped"}


HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.