Package com.sshtools.j2ssh.transport
Class ServiceState
java.lang.Object
com.sshtools.j2ssh.util.State
com.sshtools.j2ssh.transport.ServiceState
- All Implemented Interfaces:
Serializable
This class represents the state of a transport protocol service.
- Since:
- 0.2.0
- Version:
- $Revision: 1.24 $
- Author:
- Lee David Painter
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The service has started and can send/recieve messagesstatic final int
The service has stopped and no messages can be sent or receivedstatic final int
The service is unitialized -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isValidState
(int state) Evaluates whether the state is valid.Methods inherited from class com.sshtools.j2ssh.util.State
breakWaiting, getValue, setValue, waitForState, waitForState, waitForStateUpdate
-
Field Details
-
SERVICE_UNINITIALIZED
public static final int SERVICE_UNINITIALIZEDThe service is unitialized- See Also:
-
SERVICE_STARTED
public static final int SERVICE_STARTEDThe service has started and can send/recieve messages- See Also:
-
SERVICE_STOPPED
public static final int SERVICE_STOPPEDThe service has stopped and no messages can be sent or received- See Also:
-
-
Constructor Details
-
ServiceState
public ServiceState()Constructs the state instance
-
-
Method Details
-
isValidState
public boolean isValidState(int state) Evaluates whether the state is valid.
- Specified by:
isValidState
in classState
- Parameters:
state
-- Returns:
- Since:
- 0.2.0
-