public class SCPController extends java.lang.Object implements IClientStatusListener
| Constructor and Description |
|---|
SCPController()
Instantiates a new SCP controller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(java.net.SocketAddress objSocketAddress,
int itimeout)
Accepts the connection.
|
void |
close()
Closes the SCP Controller.
|
ISingleCollection<java.net.InetSocketAddress> |
getClientsConnectionInfo()
Retrieves list of connection info for all currently active clients
|
DefaultAssociation |
getDefaultAssociation()
Gets the default association.
|
IProcessHandler |
getProcessHandler()
Gets the process handler.
|
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 SCP.
|
void |
setDefaultAssociation(DefaultAssociation objDefaultAssociation)
Sets the default association.
|
void |
setProcessHandler(IProcessHandler objIProcessHandler)
Sets process handler.
|
void |
stopListening()
Stops listening on this SCPSession so that new client connection
not accepted and continue to process already connected clients.
|
void |
updateStatus(ClientSession objClientSession)
Update status of Client.
|
public SCPController()
throws java.io.IOException
java.io.IOException - Signals that an I/O exception has occurred.public DefaultAssociation getDefaultAssociation()
public void setDefaultAssociation(DefaultAssociation objDefaultAssociation)
objDefaultAssociation - instance of default associationpublic IProcessHandler getProcessHandler()
public void setProcessHandler(IProcessHandler objIProcessHandler)
objIProcessHandler - instance of Process Handler.public void accept(java.net.SocketAddress objSocketAddress,
int itimeout)
throws java.io.IOException
objSocketAddress - object of Socket Address.java.io.IOException - Signals that an I/O exception has occurred.public void updateStatus(ClientSession objClientSession)
updateStatus in interface IClientStatusListenerobjClientSession - object of client session.public int noOfClientsConnected()
public boolean isClientConnected(java.net.InetSocketAddress objAddress)
objAddress - InetSocketAddress of clientpublic ISingleCollection<java.net.InetSocketAddress> getClientsConnectionInfo()
public void close()
public void stopListening()