|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectacedb.Aceconnect
The Aceconnect class is the driver for interacting
the socket aceserver.
The key methods are login
and
talk. All command
defined in tace can be executed
through talk.
| Field Summary | |
protected java.io.DataInputStream |
socketIns
|
| Fields inherited from interface acedb.Constants |
ACESERV_MSGDATA, ACESERV_MSGENCORE, ACESERV_MSGFAIL, ACESERV_MSGKILL, ACESERV_MSGOK, ACESERV_MSGREQ, RESULT_BACKWARD, RESULT_FORWARD, RESULT_RANDOM |
| Constructor Summary | |
Aceconnect(java.net.Socket socket)
|
|
| Method Summary | |
void |
close()
Close the socket and associated streams. |
void |
dumpSocketInfo()
for debuging |
int |
execCommand(java.lang.String msg)
Send query command to Saceserver and return the Status of the command execution; use getMessage() to get the message. |
java.lang.String |
execData(java.lang.String data)
I don't know what type of data should be send through this channel. |
java.lang.String |
getMessage()
returns the message body as String. |
java.lang.String |
getMsgType()
The client only consructs ACESERV_MSGREQ, ACESERV_MSGENCORE for requesting information. |
int |
getMsgTypeInt()
returns the message type as int defined in Constants.java |
boolean |
isClosed()
to see that this connection is closed or not |
boolean |
login(java.lang.String user,
java.lang.String pwd)
signing on to the server. |
void |
quit()
Terminate the server. |
protected int |
sendCommand(java.lang.String msg)
Sends commands to server and read the header from the socket. |
java.lang.String |
sendData(java.lang.String msg)
Send data to be parsed into the server database. |
void |
shutdown()
Tell the server to shutdown. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.DataInputStream socketIns
| Constructor Detail |
public Aceconnect(java.net.Socket socket)
| Method Detail |
public java.lang.String getMsgType()
public int getMsgTypeInt()
public java.lang.String getMessage()
public boolean login(java.lang.String user,
java.lang.String pwd)
public int execCommand(java.lang.String msg)
Aceconnect.getMessage().
getMessage
public java.lang.String execData(java.lang.String data)
protected int sendCommand(java.lang.String msg)
public java.lang.String sendData(java.lang.String msg)
public void quit()
public void shutdown()
public boolean isClosed()
public void close()
public void dumpSocketInfo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||