Package com.teracloud.streams.rest
Class Resource
java.lang.Object
com.teracloud.streams.rest.Element
com.teracloud.streams.rest.Resource
Domain resource information.
A resource that is available for running Streams services and applications.
- Since:
- 1.9
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.teracloud.streams.rest.Element
getStreamsConnection, refresh, toString
-
Constructor Details
-
Resource
public Resource()
-
-
Method Details
-
getId
Get the unique Streams identifier for this resource. The identifier is unique within a domain.- Returns:
- Streams identifier for this resource.
-
getIpAddress
Get the IP address for this resource.- Returns:
- IP address for this resource.
-
getDisplayName
Get the display name for this resource.- Returns:
- Display name for this resource.
-
getStatus
Status of the resource. Some possible values for this property includefailed
,partiallyFailed
,partiallyRunning
,quiesced
,quiescing
,running
,restarting
,resuming
,starting
,stopped
, andunknown
.- Returns:
- Status of the resource.
-
getMetrics
Gets themetrics
for this resource.- Returns:
- List of
Streams Metrics
- Throws:
IOException
-
getResourceType
Identifies the REST resource type- Returns:
- "resource"
-