com.ibm.able.platform
Interface AblePlatformServiceEventGenerator
- All Known Subinterfaces:
- AblePlatformService, AgentLifeCycleService, VerifiableAgentDirectoryService, VerifiableAgentNamingService
- public interface AblePlatformServiceEventGenerator
This interface is implemented by platform services that generate
service events that can be listened for by the general public;
methods are provided to allow listeners of service events to
register and deregister with the implementing service.
- See Also:
RmiAblePlatformServiceEventGenerator
addAblePlatformServiceEventListener
public void addAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
throws AbleException
- Adds a service event listener to this service.
- Parameters:
theListener
- Any object interested in listening for service events
generated by this service.
- Throws:
AbleException
- On any error.
removeAblePlatformServiceEventListener
public void removeAblePlatformServiceEventListener(AblePlatformServiceEventListener theListener)
throws AbleException
- Removes a service event listener from this service.
- Parameters:
theListener
- A previously registered object that is no longer
interested in listening for service events generated
by this service.
- Throws:
AbleException
- On any error.
getAblePlatformServiceEventListeners
public java.util.Vector getAblePlatformServiceEventListeners()
throws AbleException
- Gets a collection of all service event listeners registered with
this service event generator.
- Returns:
- All registered AblePlatformServiceEventListener objects.
- Throws:
AbleException
- On any error.
(C) Copyright IBM Corporation 1999, 2003