| Modifier and Type | Field and Description |
|---|---|
Throwable |
_error |
Object |
_lock |
boolean |
_running |
OPCServer |
_server |
OPCSERVERSTATUS |
_serverStatus |
| Constructor and Description |
|---|
ServerStateOperation(OPCServer server) |
| Modifier and Type | Method and Description |
|---|---|
OPCSERVERSTATUS |
getServerState(int timeout)
Get the server state with a timeout.
|
void |
run()
Perform the operation.
|
public OPCSERVERSTATUS _serverStatus
public OPCServer _server
public Throwable _error
public Object _lock
public boolean _running
public ServerStateOperation(OPCServer server)
public void run()
This method will block until either the serve state has been aquired or the timeout triggers cancels the call.
public OPCSERVERSTATUS getServerState(int timeout) throws Throwable
timeout - the timeout in msnull if the server is not set.Throwable - any error that occurredCopyright © 2017 LSST. All rights reserved.