|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceManager
The ServiceManager interface serves as an access point
for kernel-level service management. From a service manager object
one can add and remove a service, or perform service management
activities such as service suspension, resumption or parameter
tuning.
Service| Method Summary | |
|---|---|
void |
activateService(ServiceDescriptor desc)
Activates a new service on the local agent container. |
void |
addAddress(java.lang.String addr)
Adds an address to the address list of this Service Manager. |
void |
addNode(NodeDescriptor desc,
ServiceDescriptor[] services)
Adds a new node to the distributed platform. |
void |
deactivateService(java.lang.String name)
Deactivates a service on the local container. |
java.lang.String |
getLocalAddress()
Access the address exported by this copy of the Service Manager. |
java.util.Vector |
getLocalServices()
Retrieve the list of locally installed services as a Vector of ServiceDescriptor objects |
java.lang.String |
getPlatformName()
Retrieves the platform name from the platform Service Manager. |
void |
removeAddress(java.lang.String addr)
Removes an address to the address list of this Service Manager. |
void |
removeNode(NodeDescriptor desc)
Removes a node from the distributed platform. |
| Method Detail |
|---|
java.lang.String getPlatformName()
throws IMTPException
IMTPException - If an underlying network error forbids to
fetch the name from the remote end.
void addAddress(java.lang.String addr)
throws IMTPException
addr - The address to add, as a stringified URL.
IMTPException - If an underlying network error occurs.
void removeAddress(java.lang.String addr)
throws IMTPException
addr - The address to remove, as a stringified URL.
IMTPException - If an underlying network error occurs.
java.lang.String getLocalAddress()
throws IMTPException
IMTPException - If an underlying network error occurs.
void addNode(NodeDescriptor desc,
ServiceDescriptor[] services)
throws IMTPException,
ServiceException,
jade.security.JADESecurityException
desc - The description of the new node to add, containing
the node identifier and other node properties.services - An array of ServiceDescriptor
objects, describing the various kernel-level services that are
to be activated on the newly created node.
IMTPException - If an underlying network error forbids to
tell whether the requested operation was possible. In that
case, the operation is not executed.
ServiceException - If the requested operation couldn't be
executed (or an execution attempt failed) due to some condition
on the remote end.
jade.security.JADESecurityException
void removeNode(NodeDescriptor desc)
throws IMTPException,
ServiceException
desc - The description of the node to remove. At the very
least, the description must contain a node identifier used as a
key in node findng operations.
IMTPException - If an underlying network error forbids to
tell whether the requested operation was possible. In that
case, the operation is not executed.
ServiceException - If the requested operation couldn't be
executed (or an execution attempt failed) due to some condition
on the remote end.
void activateService(ServiceDescriptor desc)
throws IMTPException,
ServiceException
desc - The ServiceDescriptor object
specifying the Service object implementing the
service, along with the name and properties of the service.
IMTPException - If an underlying network error forbids to
tell whether the requested operation was possible. In that
case, the operation is not executed.
ServiceException - If the requested operation couldn't be
executed (or an execution attempt failed) due to some condition
on the remote end.ServiceFinder
void deactivateService(java.lang.String name)
throws IMTPException,
ServiceException
name - The name of the service to be deactivated.
IMTPException - If an underlying network error forbids to
tell whether the requested operation was possible. In that
case, the operation is not executed.
ServiceException - If the requested operation couldn't be
executed (or an execution attempt failed) due to some condition
on the remote end.ServiceFinderjava.util.Vector getLocalServices()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||