|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.appsystem.services.SynergyNetService
synergynetframework.appsystem.services.net.tablecomms.client.TableCommsClientService
public class TableCommsClientService
The Class TableCommsClientService.
| Constructor Summary | |
|---|---|
TableCommsClientService()
Instantiates a new table comms client service. |
|
| Method Summary | |
|---|---|
static java.lang.String |
getClassName(java.lang.Class<?> c)
Gets the class name. |
Client |
getClient()
Gets the client. |
java.util.List<TableIdentity> |
getCurrentlyOnline()
Gets the currently online. |
ClientMessageProcessor |
getProcessor(java.lang.String classname)
Gets the processor. |
ClientMessageProcessor |
getProcessor(TableMessage msg)
Gets the processor. |
void |
handlerConnected(ConnectionHandler connectionHandler)
Handler connected. |
void |
handlerDisconnected(ConnectionHandler connectionHandler)
Handler disconnected. |
boolean |
hasStarted()
Checks for started. |
boolean |
isClientConnected()
Checks if is client connected. |
boolean |
isConnected()
Checks if is connected. |
static void |
main(java.lang.String[] args)
The main method. |
void |
messageReceived(java.lang.Object obj,
ConnectionHandler handler)
Message received. |
void |
register(java.lang.Object caller,
TableCommsApplicationListener applistener)
Register a TableCommsApplicationListener object for listening. |
void |
register(java.lang.String name,
TableCommsApplicationListener applistener)
Register a TableCommsApplicationListener object for listening. |
void |
sendMessage(java.lang.Object obj)
Send message. |
void |
shutdown()
Shutdown. |
void |
start()
Start. |
void |
stop()
Stop. |
void |
update()
Used to avoid threading issues. |
| Methods inherited from class synergynetframework.appsystem.services.SynergyNetService |
|---|
registerServiceMessageListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableCommsClientService()
| Method Detail |
|---|
public static java.lang.String getClassName(java.lang.Class<?> c)
c - the c
public static void main(java.lang.String[] args)
throws CouldNotStartServiceException
args - the arguments
CouldNotStartServiceException - the could not start service exceptionpublic Client getClient()
public java.util.List<TableIdentity> getCurrentlyOnline()
public ClientMessageProcessor getProcessor(java.lang.String classname)
classname - the classname
public ClientMessageProcessor getProcessor(TableMessage msg)
msg - the msg
public void handlerConnected(ConnectionHandler connectionHandler)
MessageHandler
handlerConnected in interface MessageHandlerconnectionHandler - the connection handlerpublic void handlerDisconnected(ConnectionHandler connectionHandler)
MessageHandler
handlerDisconnected in interface MessageHandlerconnectionHandler - the connection handlerpublic boolean hasStarted()
SynergyNetService
hasStarted in class SynergyNetServicepublic boolean isClientConnected()
public boolean isConnected()
public void messageReceived(java.lang.Object obj,
ConnectionHandler handler)
MessageHandler
messageReceived in interface MessageHandlerobj - the objecthandler - the connection handler
public void register(java.lang.Object caller,
TableCommsApplicationListener applistener)
throws java.io.IOException
caller - the callerapplistener - the applistener
java.io.IOException - Signals that an I/O exception has occurred.
public void register(java.lang.String name,
TableCommsApplicationListener applistener)
throws java.io.IOException
name - the nameapplistener - the applistener
java.io.IOException - Signals that an I/O exception has occurred.
public void sendMessage(java.lang.Object obj)
throws java.io.IOException
obj - the obj
java.io.IOException - Signals that an I/O exception has occurred.public void shutdown()
SynergyNetService
shutdown in class SynergyNetService
public void start()
throws CouldNotStartServiceException
SynergyNetService
CouldNotStartServiceException - the could not start service exception
public void stop()
throws ServiceNotRunningException
SynergyNetService
stop in class SynergyNetServiceServiceNotRunningException - the service not running exceptionpublic void update()
SynergyNetService
update in class SynergyNetService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||