public class PyroProxy
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
hostname |
java.lang.String |
objectid |
int |
port |
| Constructor and Description |
|---|
PyroProxy()
No-args constructor for (un)pickling support
|
PyroProxy(PyroURI uri)
Create a proxy for the remote Pyro object denoted by the uri
|
PyroProxy(java.lang.String hostname,
int port,
java.lang.String objectid)
Create a proxy for the remote Pyro object on the given host and port, with the given objectid/name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
__setstate__(java.lang.Object[] args)
called by the Unpickler to restore state
args: pyroUri, pyroOneway(hashset), pyroSerializer, pyroTimeout
|
void |
call_oneway(java.lang.String method,
java.lang.Object... arguments)
Call a method on the remote Pyro object this proxy is for, using Oneway call semantics (return immediately).
|
java.lang.Object |
call(java.lang.String method,
java.lang.Object... arguments)
Call a method on the remote Pyro object this proxy is for.
|
void |
close()
Close the network connection of this Proxy.
|
protected void |
connect()
(re)connect the proxy to the remote Pyro daemon.
|
void |
finalize() |
protected void |
handshake()
Perform the Pyro protocol connection handshake with the Pyro daemon.
|
public java.lang.String hostname
public int port
public java.lang.String objectid
public PyroProxy()
public PyroProxy(PyroURI uri) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostExceptionjava.io.IOExceptionpublic PyroProxy(java.lang.String hostname,
int port,
java.lang.String objectid)
throws java.net.UnknownHostException,
java.io.IOException
java.net.UnknownHostExceptionjava.io.IOExceptionprotected void connect()
throws java.net.UnknownHostException,
java.io.IOException
java.net.UnknownHostExceptionjava.io.IOExceptionpublic java.lang.Object call(java.lang.String method,
java.lang.Object... arguments)
throws PickleException,
PyroException,
java.io.IOException
method - the name of the method you want to callarguments - zero or more arguments for the remote methodPickleExceptionPyroExceptionjava.io.IOExceptionpublic void call_oneway(java.lang.String method,
java.lang.Object... arguments)
throws PickleException,
PyroException,
java.io.IOException
method - the name of the method you want to callarguments - zero or more arguments for the remote methodPickleExceptionPyroExceptionjava.io.IOExceptionpublic void close()
public void finalize()
finalize in class java.lang.Objectprotected void handshake()
throws java.io.IOException
java.io.IOExceptionpublic void __setstate__(java.lang.Object[] args)
throws java.io.IOException
java.io.IOException