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 boolean
containsPort()
boolean
containsUserName()
java.lang.String
extractHostname()
java.lang.String
extractPort()
java.lang.String
extractUserName()
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.String
getDescription()
java.lang.String
getFrameworkProject()
java.lang.String
getNodename()
java.lang.String
getOsArch()
java.lang.String
getOsFamily()
java.lang.String
getOsName()
java.lang.String
getOsVersion()
java.util.Set
getTags()
java.lang.String
getUsername()
-
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:
getNodename
in interfaceINodeBase
- Specified by:
getNodename
in 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
-
-