|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.montsuqi.client.Client
public class Client
The main application class for panda client.
| Field Summary | |
|---|---|
(package private) Logger |
logger
|
| Constructor Summary | |
|---|---|
Client(Configuration conf)
Constructs a client initialized by the given configuration object. |
|
| Method Summary | |
|---|---|
(package private) void |
connect()
Connects to the server using protocol, user, password and application name specified in the configuration of this client. |
(package private) java.net.Socket |
createSocket()
Creates a socket for the connection. |
(package private) void |
exitSystem()
Terminates the application. |
void |
finalize()
Dispose connection if it exists. |
static void |
main(java.lang.String[] args)
|
void |
run()
Kick the application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Logger logger
| Constructor Detail |
|---|
public Client(Configuration conf)
Constructs a client initialized by the given configuration object.
conf - configuration.| Method Detail |
|---|
void connect()
throws java.io.IOException,
java.security.GeneralSecurityException
Connects to the server using protocol, user, password and application name specified in the configuration of this client.
java.io.IOException - on IO errors.
java.security.GeneralSecurityException - on SSL verification/authentication failure.
java.net.Socket createSocket()
throws java.io.IOException,
java.security.GeneralSecurityException
Creates a socket for the connection.
When the configuration says useSSL, an SSL Socket is returned instead.
java.io.IOException - on IO error.
java.security.GeneralSecurityException - on SSL verification/authentication failure.public void run()
Kick the application.
run in interface java.lang.Runnablevoid exitSystem()
Terminates the application.
Sends end packet to the server and exists.
public void finalize()
Dispose connection if it exists.
finalize in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||