net.openwings.container
Interface ContainerListener
- All Superinterfaces:
- ContainerProcessListener
- All Known Subinterfaces:
- ContainerManagerListener
- public interface ContainerListener
- extends ContainerProcessListener
This interface describes a callback that can be used to register
interest in receiving status updates from a
Container or ContainerManager.
This interface extends the ContainerProcessListener interface
and adds a callback method for reporting Container
performance asynchronously.
reportPerformance
public void reportPerformance(UniqueID containerID,
PerformanceReport[] performanceReports)
throws java.rmi.RemoteException
- This method should be called when a
Container
updates its performance report data.
- Parameters:
containerID - the Container (or ContainerManager) to which this
set of reports applies.performanceReports - the set of performance reports.
The first PerformanceReport in the array must
be the process (CPU) loading of the container, and subsequent
reports are implementation-defined.
- Throws:
java.rmi.RemoteException - if there is an error communicating with
the ContainerListener.