|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.NodeDescriptor
public class NodeDescriptor
The NodeDescriptor class serves as a meta-level
description of a kernel-level service.
Instances of this class contain a Node 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.
Node,
Serialized Form| Constructor Summary | |
|---|---|
NodeDescriptor()
Builds an uninitialized node descriptor. |
|
NodeDescriptor(ContainerID cid,
Node node)
Builds a node descriptor for a node hosting an agent container. |
|
NodeDescriptor(Node node)
Builds a new node descriptor, describing the given node with the given name and properties. |
|
| Method Summary | |
|---|---|
ContainerID |
getContainer()
Retrieve the ID of the container (if any) hosted by the described node. |
java.lang.String |
getName()
Retrieve the name (if any) of the described node. |
Node |
getNode()
Retrieve the described node. |
jade.security.Credentials |
getOwnerCredentials()
Retrieve the credentials of the owner of this node (if any) |
jade.security.JADEPrincipal |
getOwnerPrincipal()
Retrieve the principal of the owner of this node (if any) |
Node |
getParentNode()
|
byte[] |
getPassword()
Retrieve the password of the owner of the described node |
jade.security.JADEPrincipal |
getPrincipal()
Retrieve the principal of the described node |
java.lang.String |
getUsername()
Retrieve the username of the owner of the described node |
void |
setName(java.lang.String nn)
Change the name (if any) of the described node. |
void |
setNode(Node node)
Change the described node (if any). |
void |
setOwnerCredentials(jade.security.Credentials credentials)
Set the credentials of the owner of this node |
void |
setOwnerPrincipal(jade.security.JADEPrincipal principal)
Set the principal of the owner of this node |
void |
setParentNode(Node n)
|
void |
setPassword(byte[] password)
Set the password of the owner of the described node |
void |
setPrincipal(jade.security.JADEPrincipal principal)
Set the principal of the described node |
void |
setUsername(java.lang.String username)
Set the username of the owner of the described node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeDescriptor(Node node)
nn - The name of the described node.node - The described Node object.
public NodeDescriptor(ContainerID cid,
Node node)
cid - The container ID for the hosted container.node - The described Node object.principal - The principal of the node owner.credentials - The credentials of the node owner.public NodeDescriptor()
setName(String sn),
setNode(Node node)| Method Detail |
|---|
public void setName(java.lang.String nn)
nn - The name to assign to the described node.public java.lang.String getName()
null
if no name was set.public void setNode(Node node)
node - The Node object that is to be
described by this node descriptor.public Node getNode()
Node object described by this
node descriptor, or null if no node was set.public ContainerID getContainer()
ContainerID of the hosted container,
or null if no such container was set.public void setParentNode(Node n)
public Node getParentNode()
public void setUsername(java.lang.String username)
public java.lang.String getUsername()
public void setPassword(byte[] password)
public byte[] getPassword()
public void setPrincipal(jade.security.JADEPrincipal principal)
public jade.security.JADEPrincipal getPrincipal()
public void setOwnerPrincipal(jade.security.JADEPrincipal principal)
public jade.security.JADEPrincipal getOwnerPrincipal()
null if no principal was set.public void setOwnerCredentials(jade.security.Credentials credentials)
public jade.security.Credentials getOwnerCredentials()
null if no credentials were set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||