Class NodeMetadataImpl
java.lang.Object
org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>
org.jclouds.compute.domain.internal.ComputeMetadataImpl
org.jclouds.compute.domain.internal.NodeMetadataImpl
- All Implemented Interfaces:
Comparable<ResourceMetadata<ComputeType>>,ComputeMetadata,ComputeMetadataIncludingStatus<NodeMetadata.Status>,NodeMetadata,ResourceMetadata<ComputeType>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jclouds.compute.domain.NodeMetadata
NodeMetadata.Status -
Field Summary
Fields inherited from class org.jclouds.compute.domain.internal.ComputeMetadataImpl
tags -
Constructor Summary
ConstructorsConstructorDescriptionNodeMetadataImpl(String providerId, String name, String id, Location location, URI uri, Map<String, String> userMetadata, Set<String> tags, String group, Hardware hardware, String imageId, OperatingSystem os, NodeMetadata.Status status, String backendStatus, int loginPort, Iterable<String> publicAddresses, Iterable<String> privateAddresses, LoginCredentials credentials, String hostname) -
Method Summary
Modifier and TypeMethodDescriptionstatus of the resource, as supplied literally from the backend api.If possible, these are returned upon all detail requests.getGroup()Tag used for all resources that belong to the same logical group.The hardware this node is running, if possible to determine.noteThe id of the image this node was created from, if possible to correlate.intThe operating system this node is running, if possible to determine.All private IP addresses.All public IP addresses, potentially including shared ips.portable status of the resourceprotected com.google.common.base.MoreObjects.ToStringHelperstring()Methods inherited from class org.jclouds.compute.domain.internal.ComputeMetadataImpl
addComputeToStringSuffix, compareTo, computeToStringPrefix, equals, getId, getTags, getType, hashCodeMethods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
getLocation, getName, getProviderId, getUri, getUserMetadata, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.jclouds.compute.domain.ComputeMetadata
getId, getName, getProviderId, getTags, getTypeMethods inherited from interface org.jclouds.domain.ResourceMetadata
getLocation, getUri, getUserMetadata
-
Constructor Details
-
NodeMetadataImpl
public NodeMetadataImpl(String providerId, String name, String id, Location location, URI uri, Map<String, String> userMetadata, Set<String> tags, @Nullable String group, @Nullable Hardware hardware, @Nullable String imageId, @Nullable OperatingSystem os, NodeMetadata.Status status, @Nullable String backendStatus, int loginPort, Iterable<String> publicAddresses, Iterable<String> privateAddresses, @Nullable LoginCredentials credentials, String hostname)
-
-
Method Details
-
getGroup
Tag used for all resources that belong to the same logical group. run, destroy commands are scoped to group.- Specified by:
getGroupin interfaceNodeMetadata- Returns:
- group for this node, or null, if not a part of a group
-
getHardware
The hardware this node is running, if possible to determine.- Specified by:
getHardwarein interfaceNodeMetadata
-
getCredentials
If possible, these are returned upon all detail requests. However, it is often the case that credentials are only available when a node is initially created.- Specified by:
getCredentialsin interfaceNodeMetadata- See Also:
-
getPublicAddresses
All public IP addresses, potentially including shared ips.- Specified by:
getPublicAddressesin interfaceNodeMetadata
-
getPrivateAddresses
All private IP addresses.- Specified by:
getPrivateAddressesin interfaceNodeMetadata
-
getStatus
portable status of the resource- Specified by:
getStatusin interfaceComputeMetadataIncludingStatus<NodeMetadata.Status>
-
getBackendStatus
status of the resource, as supplied literally from the backend api.- Specified by:
getBackendStatusin interfaceComputeMetadataIncludingStatus<NodeMetadata.Status>- Returns:
- status or null, if the backend api has no concept of status
-
getLoginPort
public int getLoginPort()- Specified by:
getLoginPortin interfaceNodeMetadata- Returns:
- the TCP port used for terminal connections. Generally, this is port 22 for ssh.
-
getImageId
The id of the image this node was created from, if possible to correlate.- Specified by:
getImageIdin interfaceNodeMetadata
-
getOperatingSystem
The operating system this node is running, if possible to determine.- Specified by:
getOperatingSystemin interfaceNodeMetadata
-
getHostname
note
hostname is something that is set in the operating system image, so this value, if present, cannot be guaranteed on images not directly controlled by the cloud provider.- Specified by:
getHostnamein interfaceNodeMetadata- Returns:
- hostname of the node, or null if unknown
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()- Overrides:
stringin classComputeMetadataImpl
-