Package com.dtolabs.rundeck.core.common
Interface INodeEntry
-
- All Known Subinterfaces:
IModifiableNodeEntry
- All Known Implementing Classes:
NodeEntryImpl
public interface INodeEntry extends INodeBase, INodeDesc
INodeEntry describes a node definition
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsPort()booleancontainsUserName()java.lang.StringextractHostname()java.lang.StringextractPort()java.lang.StringextractUserName()java.util.Map<java.lang.String,java.lang.String>getAttributes()Get the map of attributes for the node, which includes all of the attributes for these accessors as well:
osFamily, osArch, osVersion, osName, name*, username, description, tags*.java.lang.StringgetDescription()java.lang.StringgetFrameworkProject()java.lang.StringgetNodename()java.lang.StringgetOsArch()java.lang.StringgetOsFamily()java.lang.StringgetOsName()java.lang.StringgetOsVersion()java.util.SetgetTags()java.lang.StringgetUsername()-
Methods inherited from interface com.dtolabs.rundeck.core.common.INodeDesc
equals, getHostname
-
-
-
-
Method Detail
-
getOsFamily
java.lang.String getOsFamily()
- Returns:
- the OS family
-
getOsArch
java.lang.String getOsArch()
- Returns:
- the OS architecture
-
getOsVersion
java.lang.String getOsVersion()
- Returns:
- the OS version
-
getOsName
java.lang.String getOsName()
- Returns:
- the OS name
-
getNodename
java.lang.String getNodename()
- Specified by:
getNodenamein interfaceINodeBase- Specified by:
getNodenamein interfaceINodeDesc- Returns:
- the name of the node
-
getUsername
java.lang.String getUsername()
- Returns:
- the username
-
containsUserName
boolean containsUserName()
- Returns:
- true if the hostname string includes embedded username in the "username@hostname" pattern
-
containsPort
boolean containsPort()
- Returns:
- true if the hostname string includes embedded port in the "hostname:port" pattern
-
extractUserName
java.lang.String extractUserName()
- Returns:
- the username extracted from the hostname
-
extractHostname
java.lang.String extractHostname()
- Returns:
- the standalone hostname value extracted from the hostname string
-
extractPort
java.lang.String extractPort()
- Returns:
- the port string extracted from the hostname
-
getFrameworkProject
java.lang.String getFrameworkProject()
- Returns:
- the project name if it is set
-
getDescription
java.lang.String getDescription()
- Returns:
- the description
-
getTags
java.util.Set getTags()
- Returns:
- the set of tag strings
-
getAttributes
java.util.Map<java.lang.String,java.lang.String> getAttributes()
Get the map of attributes for the node, which includes all of the attributes for these accessors as well:
osFamily, osArch, osVersion, osName, name*, username, description, tags*.
The Node name is returned as under the key "name".
The tags are returned as a String under the key "tags".- Returns:
- attributes
-
-