public class Controller extends java.lang.Object implements IClientStatusListener
| Constructor and Description |
|---|
Controller()
Instantiates a new sCP controller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(java.net.SocketAddress objSocketAddress,
int itimeout)
Accepts the connection.
|
void |
accept(java.net.Socket socket,
int itimeout)
Accepts socket and starts client session at given socket.
|
void |
close()
Closes the SCP Controller.
|
ISingleCollection<java.net.InetSocketAddress> |
getClientsConnectionInfo()
Retrieves list of connection info for all currently active clients
|
IProcessHandler |
getIProcessHandler()
Gets the IProcessHandler.
|
boolean |
isClientConnected(java.net.InetSocketAddress objAddress)
Shows current status of client,whether it is active or not, for given Inet Socket Address
|
int |
noOfClientsConnected()
Retrieves number of clients currently connected to Service Provider.
|
void |
setBatchProcessor(IBatchProcessor objIBatchProcessor)
Sets the Batch Processor
|
void |
setFragmentProcessor(IFragmentProcessor objIFragmentProcessor)
Sets the Fragment Processor
|
void |
setIProcessHandler(IProcessHandler objIProcessHandler)
Sets the IProcessHandler.
|
void |
setMLLPProcessor(IMLLP objIMLLP)
Sets the MLLP Processor.
|
void |
setReadWriteLength(int iReadLength,
int iWriteLength)
Sets max length limit of reading and writing.
|
void |
setServerSideTransactionHandler(ITransactionHandler objServerSideTransactionHandler)
This will set the ITransactionHandler on Client session.
|
void |
updateStatus(ClientSession objClientSession)
Update status.
|
public Controller()
throws java.io.IOException
java.io.IOException - Signals that an I/O exception has occurred.public void setReadWriteLength(int iReadLength,
int iWriteLength)
iReadLength - value of Reading max lengthiWriteLength - value of Writing max lengthpublic void setFragmentProcessor(IFragmentProcessor objIFragmentProcessor)
objIFragmentProcessor - the objIFragmentProcessor to setpublic void setMLLPProcessor(IMLLP objIMLLP)
objIMLLP - the MLLP to set.public void setBatchProcessor(IBatchProcessor objIBatchProcessor)
objIBatchProcessor - the objIBatchProcessor to setpublic IProcessHandler getIProcessHandler()
public void setIProcessHandler(IProcessHandler objIProcessHandler)
objIProcessHandler - new IIProcessHandlerpublic void setServerSideTransactionHandler(ITransactionHandler objServerSideTransactionHandler)
objServerSideTransactionHandler - - implementor of ITransactionHandlerpublic void accept(java.net.SocketAddress objSocketAddress,
int itimeout)
throws java.io.IOException
objSocketAddress - object of Socket Address.itimeout - timeout period for which connection could be idlejava.io.IOException - Signals that an I/O exception has occurred.public void accept(java.net.Socket socket,
int itimeout)
throws java.io.IOException
socket - Specifies socket to accept connection.itimeout - timeout period for which connection could be idle.java.io.IOException - Signals that an I/O exception has occurred.public void updateStatus(ClientSession objClientSession)
updateStatus in interface IClientStatusListenerobjClientSession - the obj client sessionpublic int noOfClientsConnected()
public boolean isClientConnected(java.net.InetSocketAddress objAddress)
objAddress - InetSocketAddress of clientpublic ISingleCollection<java.net.InetSocketAddress> getClientsConnectionInfo()
public void close()
throws java.io.IOException
java.io.IOException