All Packages Class Hierarchy This Package Previous Next Index
Class ninja.rmi.NinjaRemoteObject
java.lang.Object
|
+----ninja.rmi.NinjaRemoteObject
- public class NinjaRemoteObject
- extends Object
NinjaRemoteObject is the class which all remotely-accessible objects
using NinjaRMI must extend. By subclassing NinjaRemoteObject, the
object is automatically "exported" for remote access. Clients wishing
to access the remote object must obtain a stub - this is generally
done only through the registry.
Various methods of NinjaRemoteObject are provided to allow the
server-side object to obtain information on the clients accessing it.
- See Also:
- NinjaRegistryImpl
-
NinjaRemoteObject()
- The constructor for a NinjaRemoteObject, when called with
no arguments, exports the object for remote access using the default
settings.
-
NinjaRemoteObject(NinjaExportData)
- When a NinjaExportData is passed into the NinjaRemoteObject
constructor, the behavior of the remote object can be modified
(for example, the TCP port on which the object is exported can
be specified).
-
exportObject(NinjaExportData)
- exportObject exports the NinjaRemoteObject for remote access.
-
getStub()
-
-
unexportObject()
- Calling 'unexportObject' on a NinjaRemoteObject will cause the
object to be unexported for future incoming calls.
NinjaRemoteObject
protected NinjaRemoteObject() throws RemoteException
- The constructor for a NinjaRemoteObject, when called with
no arguments, exports the object for remote access using the default
settings.
NinjaRemoteObject
protected NinjaRemoteObject(NinjaExportData exportData) throws RemoteException
- When a NinjaExportData is passed into the NinjaRemoteObject
constructor, the behavior of the remote object can be modified
(for example, the TCP port on which the object is exported can
be specified). If null is passed in, then the NinjaRemoteObject
will not be exported; the user must call exportObject() directly.
- See Also:
- NinjaExportData
exportObject
public void exportObject(NinjaExportData exportData) throws RemoteException
- exportObject exports the NinjaRemoteObject for remote access.
Only call this function if you call the NinjaRemoteObject constructor
with an argument of null. The intent here is that the
user can construct a NinjaExportData structure before calling
exportObject - because superclass constructors must be the first
thing called in a constructor.
- Parameters:
- exportData - The NinjaExportData structure specifying how the
object should be exported.
unexportObject
public void unexportObject() throws RemoteException
- Calling 'unexportObject' on a NinjaRemoteObject will cause the
object to be unexported for future incoming calls. Currently,
any calls in progress (i.e., any existing client sockets connecting
to the remote object) are not destroyed; only future calls are
made impossible.
getStub
protected NinjaRemoteStub getStub()
All Packages Class Hierarchy This Package Previous Next Index