Package jade.core
Class ServiceDescriptor
- java.lang.Object
-
- jade.core.ServiceDescriptor
-
- All Implemented Interfaces:
Serializable,Serializable
public class ServiceDescriptor extends Object implements Serializable
TheServiceDescriptorclass serves as a meta-level description of a kernel-level service. Instances of this class contain aServiceobject, along with its name and properties, and are used in service management operations, as well as in agent-level introspection of platform-level entities.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
- See Also:
Service, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceDescriptor()Builds an uninitialized service descriptor.ServiceDescriptor(String sn, Service svc)Builds a new service descriptor, describing the given service with the given name and properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Retrieve the name (if any) of the described service.ServicegetService()Retrieve the described service.booleanisMandatory()voidsetMandatory(boolean isMandatory)voidsetName(String sn)Change the name (if any) of the described service.voidsetService(Service svc)Change the described service (if any).
-
-
-
Constructor Detail
-
ServiceDescriptor
public ServiceDescriptor(String sn, Service svc)
Builds a new service descriptor, describing the given service with the given name and properties.- Parameters:
sn- The name of the described service.svc- The describedServiceobject.
-
ServiceDescriptor
public ServiceDescriptor()
Builds an uninitialized service descriptor.- See Also:
setName(String sn),setService(Service svc)
-
-
Method Detail
-
setName
public void setName(String sn)
Change the name (if any) of the described service.- Parameters:
sn- The name to assign to the described service.
-
getName
public String getName()
Retrieve the name (if any) of the described service.- Returns:
- The name of the described service, or
nullif no name was set.
-
setService
public void setService(Service svc)
Change the described service (if any).- Parameters:
svc- TheServiceobject that is to be described by this service descriptor.
-
getService
public Service getService()
Retrieve the described service.- Returns:
- The
Serviceobject described by this service descriptor, ornullif no service was set.
-
setMandatory
public void setMandatory(boolean isMandatory)
-
isMandatory
public boolean isMandatory()
-
-