public class HSMSConnectionManager extends ConnectionManager implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
static int |
maxMessageLength
The maximum length of messsage that we will accept.
|
| Constructor and Description |
|---|
HSMSConnectionManager(PortManager hsm)
The constructor for the portManager.
|
HSMSConnectionManager(java.lang.String hostname,
int port)
Create a connection manager to connect to a specific port on a remote machine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionManager(SessionManager hsm)
Add a session manager.
|
java.lang.String |
getId()
Returns an ID for this connection.
|
SessionManager |
getNewSessionManager()
Return a new SessionManager object by calling the getNewSessionManager
method of HSMSSessionManager.
|
int |
getT5()
This is the T5 timeout.
|
int |
getT6()
This is the T6 timeout.
|
int |
getT7()
This is the T7 timeout.
|
double |
getT8()
This is the T8 timeout.
|
boolean |
isSelected() |
boolean |
isSingleSession()
Returns true if the current session is a single session.
|
boolean |
requiresPoll()
Returns true if we need to poll for messages.
|
void |
run()
Runs the port manager waiting for input on the socket that we were created for.
|
void |
sendMessage(byte[] msg)
Send the message through the port.
|
void |
setSelected(boolean selected) |
void |
setSingleSession(boolean flag)
Sets the nature of the session, single or not single.
|
void |
setT5(int newValue)
This is the T5 timeout.
|
void |
setT6(int newValue)
This is the T6 timeout.
|
void |
setT7(int newValue)
This is the T7 timeout.
|
void |
setT8(double newValue)
This is the T8 timeout.
|
addSessionManager, closeConnection, getActiveEntityFlag, getPortManager, getSessionManager, getSessionManagers, sendMessage, setActiveEntityFlag, setPortManagerpublic static int maxMessageLength
public HSMSConnectionManager(PortManager hsm)
public HSMSConnectionManager(java.lang.String hostname,
int port)
throws java.io.IOException
java.io.IOExceptionpublic void addSessionManager(SessionManager hsm)
addSessionManager in class ConnectionManagerHSMSSessionManager.getSessionId()public java.lang.String getId()
getId in class ConnectionManagerpublic SessionManager getNewSessionManager()
getNewSessionManager in class ConnectionManagerSessionManager.getNewSessionManager()public int getT5()
public int getT6()
public int getT7()
public double getT8()
public boolean isSelected()
public boolean isSingleSession()
public boolean requiresPoll()
requiresPoll in class ConnectionManagerpublic void run()
run in interface java.lang.Runnablepublic void sendMessage(byte[] msg)
throws java.io.IOException
sendMessage in class ConnectionManagerjava.io.IOExceptionpublic void setSelected(boolean selected)
public void setSingleSession(boolean flag)
flag - true if the session is a single session (HSMS-SS)public void setT5(int newValue)
public void setT6(int newValue)
public void setT7(int newValue)
public void setT8(double newValue)
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.