com.sshtools.j2ssh.transport
public class: ServiceState [javadoc |
source]
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.
- author:
Lee - David Painter
- version:
$ - Revision: 1.24 $
- since:
0.2.0 -
| Field Summary |
|---|
| public static final int | SERVICE_UNINITIALIZED | The service is unitialized |
| public static final int | SERVICE_STARTED | The service has started and can send/recieve messages |
| public static final int | SERVICE_STOPPED | The service has stopped and no messages can be sent or received |
| Method from com.sshtools.j2ssh.transport.ServiceState Summary: |
|---|
|
isValidState |
| Method from com.sshtools.j2ssh.transport.ServiceState Detail: |
public boolean isValidState(int state) {
return ((state == SERVICE_UNINITIALIZED) || (state == SERVICE_STARTED) ||
(state == SERVICE_STOPPED));
}
|