public class HSMSActiveWrapper extends HSMSWrapper implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
Constructor and Description |
---|
HSMSActiveWrapper(int port,
int deviceId,
java.lang.String hostName)
Create the passive wrapper for the particular TCP/IP port.
|
Modifier and Type | Method and Description |
---|---|
void |
addMessageHandler(java.lang.Object messageHandler)
Add a message handler object.
|
void |
addMessageHandler(java.io.Serializable messageHandler)
Add a message handler object.
|
boolean |
connect()
Connected the session.
|
void |
disconnect()
Disconnect the connection.
|
static double |
getDefaultRetryInterval()
Sets the default retry interval.
|
java.lang.String |
getHostName() |
double |
getRetryInterval()
The time, in seconds, between attempts to establish a connection.
|
boolean |
initializeConnection()
Create the connection to the equipment.
|
void |
run()
Run waiting for a connection to be established.
|
void |
secsEvent(SecsEvent theEvent)
Catches incoming PORT_ERROR and re-starts the connection thread if it
has been configured.
|
static void |
setDefaultRetryInterval(double defaultRetryInterval)
Sets the default retry interval.
|
void |
setRetryInterval(double retryInterval)
The time, in seconds, between attempts to establish a connection.
|
void |
stopConnectionThread()
This will stop the connection thread.
|
java.lang.String |
toString()
Returns an description of this object.
|
getDefaultLinkTestInterval, getDeviceId, getLinkTestInterval, getLogger, getPort, getPortManager, getRawSessionManager, getSessionManager, getSessionManager, getT3, getT5, getT6, getT7, getT8, setActive, setDefault, setDefaultLinkTestInterval, setDeviceId, setLinkTestInterval, setLogger, setPort, setPortManager, setT3, setT5, setT6, setT7, setT8
public static final java.lang.String cvsRev
public HSMSActiveWrapper(int port, int deviceId, java.lang.String hostName)
public void addMessageHandler(java.lang.Object messageHandler)
addMessageHandler
in interface WrapperInterface
addMessageHandler
in class HSMSWrapper
messageHandler
- the message handler to addSecsMsg.processSelf(java.lang.Object)
public void addMessageHandler(java.io.Serializable messageHandler)
addMessageHandler
in interface WrapperInterface
addMessageHandler
in class HSMSWrapper
messageHandler
- the message handler to addSecsMsg.processSelf(java.lang.Object)
public boolean connect()
connect
in interface WrapperInterface
public void disconnect()
disconnect
in interface WrapperInterface
disconnect
in class HSMSWrapper
connect()
public static double getDefaultRetryInterval()
public java.lang.String getHostName()
public double getRetryInterval()
public boolean initializeConnection() throws SecsException
initializeConnection
in interface WrapperInterface
SecsException
public void run()
run
in interface java.lang.Runnable
public void secsEvent(SecsEvent theEvent)
secsEvent
in interface SecsEventListener
secsEvent
in class HSMSWrapper
public static void setDefaultRetryInterval(double defaultRetryInterval)
public void setRetryInterval(double retryInterval)
public void stopConnectionThread()
connect()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1999-2021 ErgoTech Systems, Inc. All Rights Reserved.