public class SecsISessionManager extends SessionManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
cvsRev |
static boolean |
sendInterleaved
Set to true to allow sending of interleaved messages.
|
eventListeners, globalSimulation, logger, MULTI_THREADED, primaryThreads, responseThreads, sendErrorMessages, SINGLE_THREADED| Modifier and Type | Method and Description |
|---|---|
byte[][] |
convertToBytes(SecsMsg msg)
Converts a SecsMsg into the raw byte stream.
|
SecsMsg |
createMessage(byte[] unconverted)
Creates a SecsMsg from the raw byte stream.
|
static int |
getBlockNumber(byte[] unconv)
Returns the block number from the byte stream provide.
|
int |
getHeaderSize()
Returns the headersize for HSMS messages.
|
int |
getMaximumBlockSize()
Returns the maximum block size.
|
static SessionManager |
getNewSessionManager()
Return a new session manager object.
|
static int |
getSessionId(byte[] unconv)
Returns the session ID from the byte stream provide.
|
static SessionManager |
getSessionManager(int port,
int deviceId,
int sessionId,
boolean shouldCreate)
Returns the session for the given port host and string.
|
static SessionManager |
getSessionManager(int port,
java.lang.String connectionId,
int deviceId,
int sessionId,
boolean shouldCreate,
LoggerInterface theLogger)
Returns the session for the given port host and string.
|
void |
sendMessage(SecsMsg msg)
Sends the SECS Message over the HSMS link.
|
void |
setMaximumBlockSize(int blockSize)
Sets the maximum block size.
|
addMessageHandler, addToConnection, breakConnection, createSessionManager, createSessionManager, createSessionManager, createSessionManager, endSession, getConnectionManager, getDefault, getDeviceId, getExpectsReply, getIsHost, getLogger, getMessageHandlers, getPortManager, getReplyTimeout, getSessionManager, getSessionManager, getThreadingModel, getWaitingMessages, isDefault, isSimulating, isSimulationFlag, isValid, isValidHostCommandMessage, removeMessageHandler, reprocessMessage, setDefault, setDefault, setDeviceId, setIsHost, setLogger, setMessageHandlers, setReplyTimeout, setSimulationFlag, setThreadingModel, setValid, simulationStateChanged, toStringpublic static final java.lang.String cvsRev
public static boolean sendInterleaved
public byte[][] convertToBytes(SecsMsg msg) throws SecsException
convertToBytes in class SessionManagerSecsExceptionpublic SecsMsg createMessage(byte[] unconverted) throws SecsException
createMessage in class SessionManagerSecsExceptionSecsMsg.getData()public static int getBlockNumber(byte[] unconv)
public int getHeaderSize()
getHeaderSize in class SessionManagerpublic int getMaximumBlockSize()
public static SessionManager getNewSessionManager()
public static int getSessionId(byte[] unconv)
public static SessionManager getSessionManager(int port, int deviceId, int sessionId, boolean shouldCreate) throws SecsException
port - the port identifier. The socket port for HSMS and arbitrary designation for SECS1.connectionId - the host name for HSMS, ignored for SECS1deviceId - the device idSecsExceptionpublic static SessionManager getSessionManager(int port, java.lang.String connectionId, int deviceId, int sessionId, boolean shouldCreate, LoggerInterface theLogger) throws SecsException
port - the port identifier. The socket port for HSMS and arbitrary designation for SECS1.connectionId - the host name for HSMS, ignored for SECS1deviceId - the device idtheLogger - the logger objectSecsExceptionpublic void sendMessage(SecsMsg msg) throws SecsException
sendMessage in class SessionManagerSecsExceptionpublic void setMaximumBlockSize(int blockSize)
throws java.lang.IllegalArgumentException
blockSize - the new maximum block size.java.lang.IllegalArgumentExceptionCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.