Class Resource

java.lang.Object
com.teracloud.streams.rest.Element
com.teracloud.streams.rest.Resource

public class Resource extends Element
Domain resource information. A resource that is available for running Streams services and applications.
Since:
1.9
  • Constructor Details

    • Resource

      public Resource()
  • Method Details

    • getId

      public String getId()
      Get the unique Streams identifier for this resource. The identifier is unique within a domain.
      Returns:
      Streams identifier for this resource.
    • getIpAddress

      public String getIpAddress()
      Get the IP address for this resource.
      Returns:
      IP address for this resource.
    • getDisplayName

      public String getDisplayName()
      Get the display name for this resource.
      Returns:
      Display name for this resource.
    • getStatus

      public String getStatus()
      Status of the resource. Some possible values for this property include failed, partiallyFailed, partiallyRunning, quiesced, quiescing, running, restarting, resuming, starting, stopped, and unknown.
      Returns:
      Status of the resource.
    • getMetrics

      public List<Metric> getMetrics() throws IOException
      Gets the metrics for this resource.
      Returns:
      List of Streams Metrics
      Throws:
      IOException
    • getResourceType

      public String getResourceType()
      Identifies the REST resource type
      Returns:
      "resource"