|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.ServiceDescriptor
public class ServiceDescriptor
The ServiceDescriptor class serves as a meta-level
description of a kernel-level service.
Instances of this class contain a Service object,
along with its name and properties, and are used in service
management operations, as well as in agent-level introspection of
platform-level entities.
Service,
Serialized Form| Constructor Summary | |
|---|---|
ServiceDescriptor()
Builds an uninitialized service descriptor. |
|
ServiceDescriptor(java.lang.String sn,
Service svc)
Builds a new service descriptor, describing the given service with the given name and properties. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Retrieve the name (if any) of the described service. |
Service |
getService()
Retrieve the described service. |
boolean |
isMandatory()
|
void |
setMandatory(boolean isMandatory)
|
void |
setName(java.lang.String sn)
Change the name (if any) of the described service. |
void |
setService(Service svc)
Change the described service (if any). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceDescriptor(java.lang.String sn,
Service svc)
sn - The name of the described service.svc - The described Service object.public ServiceDescriptor()
setName(String sn),
setService(Service svc)| Method Detail |
|---|
public void setName(java.lang.String sn)
sn - The name to assign to the described service.public java.lang.String getName()
null
if no name was set.public void setService(Service svc)
svc - The Service object that is to be
described by this service descriptor.public Service getService()
Service object described by this
service descriptor, or null if no service was set.public void setMandatory(boolean isMandatory)
public boolean isMandatory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||