|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.jetrix.clients.ConsoleClient
public class ConsoleClient
Command line console.
| Constructor Summary | |
|---|---|
ConsoleClient()
|
|
| Method Summary | |
|---|---|
void |
disconnect()
Trigger the disconnection of this client. |
Channel |
getChannel()
Return the channel this client subscribed to. |
Date |
getConnectionTime()
Return the time of the connection to the server. |
long |
getIdleTime()
Return the time in miliseconds of inactivity. |
InetAddress |
getInetAddress()
Return the Internet address of this client. |
Protocol |
getProtocol()
Return the protocol used by this client. |
String |
getType()
Return the type of the client. |
User |
getUser()
Return the user associated to this client. |
String |
getVersion()
Return the version number of this client. |
Message |
receiveMessage()
Receive a message sent by the client. |
void |
run()
|
void |
send(Message message)
Send a message to the client. |
void |
setChannel(Channel channel)
Set the channel. |
boolean |
supportsAutoJoin()
Tell if the client can be affected automatically to a channel on connecting to the server. |
boolean |
supportsMultipleChannels()
Tell if the client supports multiple channels simultaneously. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleClient()
| Method Detail |
|---|
public Protocol getProtocol()
Client
getProtocol in interface Clientpublic void run()
run in interface Runnablepublic void send(Message message)
Client
send in interface Clientsend in interface Destinationmessage - the message to send
public Message receiveMessage()
throws IOException
Client
receiveMessage in interface ClientIOExceptionpublic InetAddress getInetAddress()
Client
getInetAddress in interface Clientpublic void setChannel(Channel channel)
Client
setChannel in interface Clientpublic Channel getChannel()
Client
getChannel in interface Clientpublic boolean supportsMultipleChannels()
Client
supportsMultipleChannels in interface Clientpublic boolean supportsAutoJoin()
Client
supportsAutoJoin in interface Clientpublic User getUser()
Client
getUser in interface Clientpublic String getVersion()
Client
getVersion in interface Clientpublic String getType()
Client
getType in interface Clientpublic Date getConnectionTime()
Client
getConnectionTime in interface Clientpublic long getIdleTime()
Client
getIdleTime in interface Clientpublic void disconnect()
Client
disconnect in interface Client
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||