public class RemoteProxy
extends java.lang.Object
This class is used in conjuction with the Builder JA "Generate Remote Interface" build-time option to provide remote access to component instances via Java RMI.
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.rmi.Remote> |
newProxyFor(java.lang.Object impl,
java.lang.Class<T> remoteInterface,
boolean marshalOutputs)
Generates and exports a new remote proxy object that delegates all method calls to impl.
|
static <T extends java.rmi.Remote> |
newProxyFor(java.lang.Object impl,
java.lang.Class<T> remoteInterface,
boolean marshalOutputs,
DisposeListener disposeListener)
Generates and exports a new remote proxy object that delegates all method calls to impl.
|
static <T extends java.rmi.Remote> |
newProxyFor(java.lang.Object impl,
java.lang.Class<T> remoteInterface,
boolean marshalOutputs,
DisposeListener disposeListener,
int graceTimeout,
java.util.concurrent.TimeUnit graceTimeoutUnit)
Generates and exports a new remote proxy object that delegates all method calls to impl.
|
public static <T extends java.rmi.Remote> T newProxyFor(java.lang.Object impl,
java.lang.Class<T> remoteInterface,
boolean marshalOutputs)
throws java.rmi.RemoteException
impl - the local object that handles remote method invocationsremoteInterface - remote interface for the proxy objectmarshalOutputs - if true, then the proxy object will automatically attempt to marshal
any MWArray-derived method outputs to their corresponding Java typesjava.rmi.RemoteException - if an error occurred while trying to export the proxy object.public static <T extends java.rmi.Remote> T newProxyFor(java.lang.Object impl,
java.lang.Class<T> remoteInterface,
boolean marshalOutputs,
DisposeListener disposeListener)
throws java.rmi.RemoteException
impl - The local object that handles remote method invocations.remoteInterface - remote interface for the proxy objectmarshalOutputs - if true, then the proxy object will automatically attempt to marshal
any MWArray-derived method outputs to their corresponding Java typesdisposeListener - Object to be notified when the proxy object is disposed ofjava.rmi.RemoteException - if an error occurred while trying to export the proxy object.public static <T extends java.rmi.Remote> T newProxyFor(java.lang.Object impl,
java.lang.Class<T> remoteInterface,
boolean marshalOutputs,
DisposeListener disposeListener,
int graceTimeout,
java.util.concurrent.TimeUnit graceTimeoutUnit)
throws java.rmi.RemoteException
impl - The local object that handles remote method invocations.remoteInterface - remote interface for the proxy objectmarshalOutputs - if true, then the proxy object will automatically attempt to marshal
any MWArray-derived method outputs to their corresponding Java typesdisposeListener - Object to be notified when the proxy object is disposed ofgraceTimeout - Period of time to hold on to a reference to the proxy so it won't be
prematurely garbage collected.graceTimeoutUnit - The unit of graceTimeout (TimeUnit.SECONDS, etc.)java.rmi.RemoteException - if an error occurred while trying to export the proxy object.© 1994-2008 The MathWorks, Inc. Terms of Use Patents Trademarks