|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.hostmanager.negotiationmodule.resourcehandlers.ResourceHandlerManager
public class ResourceHandlerManager
| Constructor Summary | |
|---|---|
ResourceHandlerManager()
|
|
| Method Summary | |
|---|---|
void |
addResourceHandler(java.lang.String serviceName,
BasicResourceHandler handler)
Register a resource handler at this host. |
BasicResourceHandler |
deregisterHandler(java.lang.String handlerID)
Deregister a resource handler. |
void |
deregisterHandlers(AgentScapeID id)
Remove all resource handlers that were implemented by the specified AgentScapeID. |
BasicResourceHandler |
getResourceHandler(AgentScapeID providerID,
java.lang.String serviceName)
Get a resource handler on specific host. |
BasicResourceHandler |
getResourceHandler(java.lang.String handlerID)
Returns a resource handler that was registered in the manager. |
java.util.List<BasicResourceHandler> |
getResourceHandlers()
Obtain a list of all registered resource handlers. |
java.util.Vector<BasicResourceHandler> |
getResourceHandlers(java.lang.String serviceName)
Obtain all resource handlers that are registered for a given service name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceHandlerManager()
| Method Detail |
|---|
public void addResourceHandler(java.lang.String serviceName,
BasicResourceHandler handler)
throws HandlerManagementException
serviceName - The name of the service to register. Not used?handler - The handler to register. This can also be a
proxied class, in which case the agent on the
remote side of the proxy implements the
functionality of the resource handler.
HandlerManagementException
public BasicResourceHandler getResourceHandler(java.lang.String handlerID)
throws HandlerManagementException
handlerID - The ID that was used to register the handler.
HandlerManagementException - If the handler cannot be found.public java.util.List<BasicResourceHandler> getResourceHandlers()
public java.util.Vector<BasicResourceHandler> getResourceHandlers(java.lang.String serviceName)
serviceName - The name of the services to look for.
public BasicResourceHandler getResourceHandler(AgentScapeID providerID,
java.lang.String serviceName)
throws HandlerManagementException
HandlerManagementExceptionpublic void deregisterHandlers(AgentScapeID id)
public BasicResourceHandler deregisterHandler(java.lang.String handlerID)
handlerID - ID of the handler to deregister.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||