|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uva.vlet.vrs.VNode
nl.uva.vlet.vrs.Cluster
public abstract class Cluster
Cluster resource VNode interface to the Registry.
Nested Class Summary | |
---|---|
class |
Cluster.ClusterElement
|
Field Summary | |
---|---|
static java.lang.String |
CLUSTER_TYPE
|
static java.lang.String |
SERVICE_TYPE
|
Fields inherited from class nl.uva.vlet.vrs.VNode |
---|
ATTR_CHARSET, ATTR_HOSTNAME, ATTR_ICON, ATTR_ISVLINK, ATTR_LOCATION, ATTR_MIMETYPE, ATTR_NAME, ATTR_PATH, ATTR_PORT, ATTR_SCHEME, ATTR_TYPE, location, vrsContext |
Constructor Summary | |
---|---|
protected |
Cluster(VRSContext vrs,
java.lang.String name,
java.lang.String root_host)
|
Method Summary | |
---|---|
VNode |
addNode(VNode node)
Adds (Sub) Cluster to the registry. |
VNode |
addNode(VNode node,
boolean isMove)
Add a node to the underlaying Resource. |
VNode[] |
addNodes(VNode[] nodes,
boolean isMove)
Add specified nodes to the Resource. |
VNode |
createChild(java.lang.String type)
|
VNode |
createChild(java.lang.String type,
boolean force)
|
VNode |
createChild(java.lang.String type,
java.lang.String name)
|
VNode |
createChild(java.lang.String type,
java.lang.String name,
boolean force)
VNode method to create new Child. |
static Cluster |
createDas2()
Default das2 Cluster Factory |
boolean |
delete()
|
boolean |
delete(boolean recurse)
Recursive delete. |
boolean |
delNode(VNode node)
Removes (Sub) Cluster/Service to the registry. |
boolean |
delNodes(VNode[] nodes)
Removes (Sub) Clusters/Services from the registry. |
VAttribute |
getAttribute(java.lang.String name)
This is the single method a Node has to implement so that attributes can be fetched. |
java.lang.String[] |
getAttributeNames()
Get the names of the attributes this resource has |
VNode[] |
getChilds()
Returns Child Nodes. |
long |
getNrOfChilds()
Returns number of child nodes. |
java.lang.String[] |
getResourceTypes()
Returns allowed resource types which this node can have as child and/or create. |
java.lang.String |
getType()
Returns resource type, if it has one |
boolean |
isComposite()
Highlevel method to check whether the node has the VComposite interface |
boolean |
setAttribute(VAttribute attr)
|
Methods inherited from class nl.uva.vlet.vrs.VNode |
---|
compareTo, exists, getAttributes, getAttributes, getAttributeSet, getBasename, getCharSet, getHelp, getHostname, getIconURL, getID, getLocation, getMimeType, getName, getParent, getParents, getPath, getPort, getScheme, getServerAttributes, getURI, getVRL, getVRSContext, isVirtual, isVLink, mergedGetAttributes, setLocation, setVRL, toLinkNode, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface nl.uva.vlet.vrs.VComposite |
---|
addNode, getChild, getChildAttributes, getChildAttributes, hasChild, isAccessable, isDeletable |
Field Detail |
---|
public static final java.lang.String CLUSTER_TYPE
public static final java.lang.String SERVICE_TYPE
Constructor Detail |
---|
protected Cluster(VRSContext vrs, java.lang.String name, java.lang.String root_host)
Method Detail |
---|
public java.lang.String getType()
VNode
getType
in class VNode
public static Cluster createDas2() throws VlException
VlException
public java.lang.String[] getResourceTypes()
VComposite
getResourceTypes
in interface VComposite
public long getNrOfChilds()
VComposite
getNrOfChilds
in interface VComposite
public VNode[] getChilds()
VComposite
getChilds
in interface VComposite
public boolean isComposite()
VNode
isComposite
in class VNode
public java.lang.String[] getAttributeNames()
VNode
getAttributeNames
in class VNode
public VAttribute getAttribute(java.lang.String name)
VNode
getAttribute
in class VNode
public boolean setAttribute(VAttribute attr) throws NotImplementedException
NotImplementedException
public VNode addNode(VNode node) throws VlException
VlException
public boolean delNode(VNode node) throws VlException
delNode
in interface VComposite
VlException
public boolean delNodes(VNode[] nodes) throws VlException
delNodes
in interface VComposite
VlException
public boolean delete(boolean recurse) throws VlException
VComposite
delete
in interface VComposite
recurse
- whether to delete its children also.
VlException
public boolean delete() throws VlException
VlException
public VNode createChild(java.lang.String type) throws VlException
VlException
public VNode createChild(java.lang.String type, java.lang.String name) throws VlException
VlException
public VNode addNode(VNode node, boolean isMove) throws VlException
VComposite
For optimization the isMove determines if it is a move, so the implementation can optimize local movements for example on the same filesystems or on the same SRB Server.
addNode
in interface VComposite
VlException
public VNode[] addNodes(VNode[] nodes, boolean isMove) throws VlException
VComposite
For optimization the isMove determines if it is a move, so the implementation can optimize local movements for example on the same filesystems.
addNodes
in interface VComposite
VlException
public VNode createChild(java.lang.String type, boolean force) throws VlException
VlException
public VNode createChild(java.lang.String type, java.lang.String name, boolean force) throws VlException
VComposite
createChild
in interface VComposite
type
- must be on of the types getResourceTypes() returns.name
- may be null. The implementation might choose a default name
or prompt the user.force
- means to create the child even if it already exists.
VlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |