All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface ninja.rmi.NinjaServerCallbacks

public interface NinjaServerCallbacks
NinjaServerCallbacks is an interface that the user of NinjaRMI can implement to get callbacks on certain events of the server side of an RMI connection. The idea is that one creates an implementation of NinjaServerCallbacks and places it in the NinjaExportData structure when exporting a NinjaRemoteObject. When certain events occur (such as socket creation and destruction), the callback on that object will be invoked.

See Also:
NinjaExportData, NinjaRemoteObject

Method Index

 o socket_created(String, int)
Called when a client socket to the RMI server object is created.
 o socket_destroyed(String, int)
Called when a client socket to the RMI server object is destroyed.

Methods

 o socket_created
 public abstract void socket_created(String hostname,
                                     int port)
Called when a client socket to the RMI server object is created.

Parameters:
hostname - The hostname of the connecting client.
localport - The remote port of the socket.
 o socket_destroyed
 public abstract void socket_destroyed(String hostname,
                                       int port)
Called when a client socket to the RMI server object is destroyed.

Parameters:
hostname - The hostname of the destroyed socket.
localport - The remote port of the socket.

All Packages  Class Hierarchy  This Package  Previous  Next  Index