Package org.openscada.opc.lib.da
Class ServerStateOperation
java.lang.Object
org.openscada.opc.lib.da.ServerStateOperation
- All Implemented Interfaces:
Runnable
A server state operation which can be interruped
- Author:
- Jens Reimann
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetServerState(int timeout) Get the server state with a timeout.voidrun()Perform the operation.
-
Field Details
-
_serverStatus
-
_server
-
_error
-
_lock
-
_running
public boolean _running
-
-
Constructor Details
-
ServerStateOperation
-
-
Method Details
-
run
public void run()Perform the operation.This method will block until either the serve state has been aquired or the timeout triggers cancels the call.
-
getServerState
Get the server state with a timeout.- Parameters:
timeout- the timeout in ms- Returns:
- the server state or
nullif the server is not set. - Throws:
Throwable- any error that occurred
-