Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

Proxy Class Reference

This is the base class of all client-side MPS object handles. More...

Collaboration diagram for Proxy:

Collaboration graph
[legend]
List of all members.

Private Methods

protected Proxy (String resolvedName) throws MPSException
public void _disconnect_proxy () throws MPSException
protected String getReference ()
protected org hebe mps OutputStream getOutputStream ()
protected org hebe mps InputStream getInputStream () throws MPSException

Private Attributes

private org hebe mps Connection _connection
private org hebe mps OutputStream _output
private org hebe mps InputStream _input

Detailed Description

This is the base class of all client-side MPS object handles.

It maintains a Connection object and an InputStream and an OutputStream. There is very little behaviour on this object - the automatically-generated subclasses provide all the functionality by making use of this object's protected member variables.

Author(s):
Tony Garnock-Jones <tonyg@kcbbs.gen.nz>
See also:
org.hebe.mps.Connection , org.hebe.mps.InputStream , org.hebe.mps.OutputStream

Definition at line 52 of file Proxy.java.


Constructor & Destructor Documentation

protected Proxy::Proxy ( String resolvedName ) [inline, private]
 

Only invoked by subclass constructors.

Creates a connection to the named object, possibly using the naming service passed in, if it is not null.

Parameters:
resolvedName   the name of the server to create a proxy for
Exceptions:
MPSException   if anything goes wrong

Definition at line 68 of file Proxy.java.


Member Function Documentation

public void Proxy::_disconnect_proxy ( ) [inline, private]
 

Disconnects this client proxy from the server.

Closes the socket. It'd be nice if eventually this was reversible - subsequent calls to methods on the proxy should transparently reconnect and succeed, but currently once the connection is gone, it's gone.

Exceptions:
MPSException   if anything goes wrong

Definition at line 85 of file Proxy.java.

protected org hebe mps InputStream Proxy::getInputStream ( ) [inline, private]
 

Returns a handle on this proxy's input stream for communication from the server.

Definition at line 114 of file Proxy.java.

protected org hebe mps OutputStream Proxy::getOutputStream ( ) [inline, private]
 

Returns a handle on this proxy's output stream for communication with the server.

Definition at line 105 of file Proxy.java.

protected String Proxy::getReference ( ) [inline, private]
 

Retrieve the canonical name of the server this proxy is connected to.

Used (occasionally) to pass references to MPS objects around between MPS interfaces.

Returns:
the canonical name of the connected server
See also:
org.hebe.mps.OutputStreamwriteReference

Definition at line 97 of file Proxy.java.

Referenced by OutputStream::writeReference().


Member Data Documentation

private org hebe mps Connection Proxy::_connection [private]
 

The connection to the remote object server.

Definition at line 54 of file Proxy.java.

private org hebe mps InputStream Proxy::_input [private]
 

Pipe used when receiving messages from the remote server.

Definition at line 58 of file Proxy.java.

private org hebe mps OutputStream Proxy::_output [private]
 

Pipe used when sending messages to the remote server.

Definition at line 56 of file Proxy.java.


The documentation for this class was generated from the following file:
Generated at Wed Aug 15 01:05:35 2001 for mps-java by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001