Interface Nodes
-
- All Superinterfaces:
ConfigBeanProxy
public interface Nodes extends ConfigBeanProxy
Nodes configuration. Maintain a list ofNode
active configurations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Nodes.Duck
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Node
getDefaultLocalNode()
Return the default local node, localhost-<domain_name>, or null if no such node exists.String
getFreeze()
Check if nodes list is frozen.List<Node>
getNode()
Return the list of nodes currently configuredNode
getNode(String name)
Return the node with the given name, or null if no such node exists.boolean
nodeCreationAllowed()
Can we create a node?void
setFreeze(String value)
Sets the value of the freeze attribute on the nodes list.-
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
-
-
-
-
Method Detail
-
setFreeze
void setFreeze(String value) throws PropertyVetoException
Sets the value of the freeze attribute on the nodes list. If the nodes list is frozen then no new nodes are allowed to be created.- Parameters:
value
- allowed object isString
- Throws:
PropertyVetoException
- if a listener vetoes the change
-
getFreeze
String getFreeze()
Check if nodes list is frozen. That is prevent creation of new nodes.- Returns:
- value of freeze
-
getDefaultLocalNode
@DuckTyped Node getDefaultLocalNode()
Return the default local node, localhost-<domain_name>, or null if no such node exists.- Returns:
- the Node object, or null if no such node
-
getNode
@DuckTyped Node getNode(String name)
Return the node with the given name, or null if no such node exists.- Parameters:
name
- the name of the node- Returns:
- the Node object, or null if no such node
-
nodeCreationAllowed
@DuckTyped boolean nodeCreationAllowed()
Can we create a node?- Returns:
- true if node creation is allowed, else false
-
-