com.sshtools.j2ssh.transport

Class ServiceState

Implemented Interfaces:
Serializable

public class ServiceState
extends State

This class represents the state of a transport protocol service.
Version:
$Revision: 1.24 $
Author:
Lee David Painter
Since:
0.2.0

Field Summary

static int
SERVICE_STARTED
The service has started and can send/recieve messages
static int
SERVICE_STOPPED
The service has stopped and no messages can be sent or received
static int
SERVICE_UNINITIALIZED
The service is unitialized

Fields inherited from class com.sshtools.j2ssh.util.State

state

Constructor Summary

ServiceState()
Constructs the state instance

Method Summary

boolean
isValidState(int state)
Evaluates whether the state is valid.

Methods inherited from class com.sshtools.j2ssh.util.State

breakWaiting, getValue, isValidState, setValue, waitForState, waitForState, waitForStateUpdate

Field Details

SERVICE_STARTED

public static final int SERVICE_STARTED
The service has started and can send/recieve messages
Field Value:
2

SERVICE_STOPPED

public static final int SERVICE_STOPPED
The service has stopped and no messages can be sent or received
Field Value:
3

SERVICE_UNINITIALIZED

public static final int SERVICE_UNINITIALIZED
The service is unitialized
Field Value:
1

Constructor Details

ServiceState

public ServiceState()
Constructs the state instance

Method Details

isValidState

public boolean isValidState(int state)
Evaluates whether the state is valid.
Overrides:
isValidState in interface State
Parameters:
state -
Returns:
Since:
0.2.0

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.