|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--satin.aro.AROremoteServer
public class AROremoteServer
extends java.lang.ObjectThis class represents a connection with an ARO server. It is used only by ARO clients, not by ARO servers. The connection is established by the object's constructor.
| Field Summary | |
java.io.Writer |
aroLog
When this field is non-null, every ARO function call is logged to this stream. |
static java.io.PrintStream |
debugStream
If not null, debugging statements will be written to this stream. |
static java.io.Writer |
defaultAROlog
Copied into aroLog during construction. |
int |
defaultTimeout
The default timeout value, in seconds, for waiting for responses to requests. |
protected AROobjectID |
server
The ARO object ID of the ARO server object. |
java.io.Writer |
uiLog
When this field is non-null, ARO functions that manipulate the server application's UI (directly or indirectly) are logged to this stream. |
| Constructor Summary | |
AROremoteServer(java.lang.String host,
int port)
Establishes a connection with an ARO server. |
|
| Method Summary | |
void |
close()
Closes the connection. |
boolean |
exists(AROobject obj)
Returns whether the given ARO object still exists in the ARO server. |
protected void |
finalize()
Terminates the TCP/IP connection when there are no more references to the object. |
java.lang.String |
getClassName(AROobject obj)
Returns the name of the ARO class for the given ARO object. |
java.lang.String[] |
getClassNames()
Returns the ARO class names recognized by the server. |
long |
getCumReqTime()
Returns the cumulative time spent processing ARO requests, including the time spent sending the request and waiting for a response. |
java.lang.String[] |
getGlobalSubroutineNames()
Returns the global subroutine names recognized by the server. |
java.lang.String[] |
getMethodNames(java.lang.String className)
Returns the method names recognized by the server for the given class. |
AROobjectID |
getServerID()
Returns the ARO object ID of the server itself. |
AROincomingResponse |
makeRequest(AROoutgoingRequest request,
int timeout)
Sends a request and returns the response. |
AROincomingResponse |
makeRequestAndThrow(AROoutgoingRequest request)
Sends a request and returns the non-exception response. |
AROincomingResponse |
makeRequestAndThrow(AROoutgoingRequest request,
int timeout)
Sends a request and returns the non-exception response. |
void |
sleep(int seconds)
Causes the ARO server to sleep for the given number of seconds. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.io.PrintStream debugStream
public int defaultTimeout
protected AROobjectID server
public java.io.Writer aroLog
public static java.io.Writer defaultAROlog
aroLog during construction.
This provides a way of logging the ARO traffic that
happens during construction of the AROserver.public java.io.Writer uiLog
| Constructor Detail |
public AROremoteServer(java.lang.String host,
int port)
throws java.io.IOException,
AROexception
hostport| Method Detail |
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Object
public void close()
throws java.lang.Throwable
public AROobjectID getServerID()
public AROincomingResponse makeRequest(AROoutgoingRequest request,
int timeout)
throws java.io.IOException
requesttimeoutdefaultTimeout instead.
public AROincomingResponse makeRequestAndThrow(AROoutgoingRequest request,
int timeout)
throws java.io.IOException,
AROexception
requesttimeoutdefaultTimeout instead.
public AROincomingResponse makeRequestAndThrow(AROoutgoingRequest request)
throws java.io.IOException,
AROexception
makeRequest*** you should
use in most cases.
requestpublic long getCumReqTime()
public java.lang.String[] getClassNames()
throws java.io.IOException,
AROexception
public java.lang.String[] getGlobalSubroutineNames()
throws java.io.IOException,
AROexception
public java.lang.String[] getMethodNames(java.lang.String className)
throws java.io.IOException,
AROexception
className
public java.lang.String getClassName(AROobject obj)
throws java.io.IOException,
AROexception
obj
public boolean exists(AROobject obj)
throws java.io.IOException,
AROexception
obj
public void sleep(int seconds)
throws java.io.IOException,
AROexception
sleep(0) can be used to wait for
the application to become idle.| Revision History |
7/10/01 Ed Stauff - added finalize and close method.
6/26/01 Ed Stauff - added getServerID method.
6/7/01 Ed Stauff - added exists method.
6/6/01 Ed Stauff - changes per initial code review.
5/1/01 Ed Stauff - replaced Vectors with arrays.
4/16/01 Ed Stauff - added debugStream.
3/16/01 Ed Stauff - replaced SimpleOutputStream with Writer.
3/13/01 Ed Stauff - doc published for initial review.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
AROremoteServer.java (PRIVATE SOURCES)