public class HSMSPassiveWrapper extends HSMSWrapper
cvsRev
Constructor and Description |
---|
HSMSPassiveWrapper(int port)
Create the passive wrapper for the particular TCP/IP port.
|
HSMSPassiveWrapper(int port,
int deviceId) |
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.
|
java.lang.String |
connectedHost() |
void |
disconnect()
Disconnect the connection.
|
java.util.Vector |
getAllSessions()
This will return back a Vector of SessionManagers associated with this
connection.
|
int |
getConnectionLimit()
Returns the current connection limit.
|
SessionManager |
getSessionManager(int deviceId)
Get a session manager for the provided deviceID.
|
HSMSSocketListener |
getSocketManager()
Returns the socket manager for the current parameters.
|
boolean |
initializeConnection()
Connected the session.
|
void |
listenForConnections() |
void |
removeMessageHandler(java.lang.Object messageHandler)
Remove a message handler object.
|
void |
setConnectionLimit(int connectionLimit)
Set the connection limit.
|
void |
setDeviceId(int newValue)
Sets the device id for this wrapper.
|
void |
setLogger(LoggerInterface l)
Sets the logger for the current connection.
|
java.lang.String |
toString()
Returns an description of this object.
|
destroy, getDefaultLinkTestInterval, getDeviceId, getLinkTestInterval, getLogger, getMessageHandlers, getPort, getPortManager, getRawSessionManager, getSessionManager, getT3, getT5, getT6, getT7, getT8, init, secsEvent, setActive, setDefault, setDefaultLinkTestInterval, setLinkTestInterval, setPort, setPortManager, setT3, setT5, setT6, setT7, setT8, start, stop
public HSMSPassiveWrapper(int port)
public HSMSPassiveWrapper(int port, int deviceId)
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
connect
in class HSMSWrapper
public java.lang.String connectedHost()
connectionAddress
- public void disconnect()
disconnect
in interface WrapperInterface
disconnect
in class HSMSWrapper
public java.util.Vector getAllSessions()
public int getConnectionLimit()
public SessionManager getSessionManager(int deviceId)
getSessionManager
in interface WrapperInterface
getSessionManager
in class HSMSWrapper
deviceId
- the deviceIdpublic HSMSSocketListener getSocketManager()
public boolean initializeConnection() throws SecsException
WrapperInterface
SecsException
public void listenForConnections() throws SecsException
SecsException
public void removeMessageHandler(java.lang.Object messageHandler)
removeMessageHandler
in interface WrapperInterface
removeMessageHandler
in class HSMSWrapper
messageHandler
- the message handler to addSecsMsg.processSelf(java.lang.Object)
public void setConnectionLimit(int connectionLimit)
connectionLimit
- the new connection limitHSMSSocketManager.setConnectionLimit(int)
public void setDeviceId(int newValue)
HSMSWrapper
setDeviceId
in interface WrapperInterface
setDeviceId
in class HSMSWrapper
WrapperInterface.setDeviceId(int)
public void setLogger(LoggerInterface l)
HSMSWrapper
setLogger
in interface WrapperInterface
setLogger
in class HSMSWrapper
l
- the logger to add.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.