Openwings API Documentation (v1.0)

net.openwings.context
Interface PlatformListener


public interface PlatformListener

This interface describes a callback that can be registered with a Context to be notified when platforms are added to the Context or deleted from the Context.


Method Summary
 void platformAdded(UniqueID platform, java.lang.String name, boolean clustered)
          This method is invoked when a new platform is added to the context.
 void platformRemoved(UniqueID platform, java.lang.String name, boolean clustered)
          This method is invoked when a platform is removed from the context.
 

Method Detail

platformAdded

public void platformAdded(UniqueID platform,
                          java.lang.String name,
                          boolean clustered)
                   throws java.rmi.RemoteException
This method is invoked when a new platform is added to the context.

Parameters:
platform - Id of the platform added.
name - Host name of the platform being added.
clustered - Returns true if the platform was part of the container manager cluster.
Throws:
java.rmi.RemoteException - if there is an error communicating with the listener.

platformRemoved

public void platformRemoved(UniqueID platform,
                            java.lang.String name,
                            boolean clustered)
                     throws java.rmi.RemoteException
This method is invoked when a platform is removed from the context.

Parameters:
platform - Id of the platform removed from the context.
name - Host name of the platform being removed.
clustered - Returns true if the platform was part of the container manager cluster.
Throws:
java.rmi.RemoteException - if there is an error communicating with the listener.

Openwings API Documentation (v1.0)