public class ResourceAllocation extends Element
Constructor and Description |
---|
ResourceAllocation() |
Modifier and Type | Method and Description |
---|---|
Instance |
getInstance()
Obtain the
Instance this resource is allocated to. |
java.util.List<Job> |
getJobs()
Gets a list of jobs running on this resource in this instance.
|
java.util.List<ProcessingElement> |
getPes()
Gets a list of processing elements running on this resource in this instance.
|
Resource |
getResource()
Obtain the
Resource object for detailed information
on the resource. |
java.lang.String |
getResourceType()
Identifies the REST resource type
|
java.lang.String |
getSchedulerStatus()
Status of the resource.
|
java.lang.String |
getStatus()
Scheduler status of the resource.
|
boolean |
isApplicationResource()
Indicates whether the resource is an application resource.
|
getStreamsConnection, refresh, toString
public java.lang.String getResourceType()
public boolean isApplicationResource()
true
if this is an application resource otherwise false
.public java.lang.String getSchedulerStatus()
failed
, partiallyFailed
, partiallyRunning
,
quiesced
, quiescing
, running
,
restarting
, resuming
, starting
,
stopped
, and unknown
.public java.lang.String getStatus()
public Resource getResource() throws java.io.IOException
Resource
object for detailed information
on the resource.java.io.IOException
- Exception communicating with Streams instance.public Instance getInstance() throws java.io.IOException
Instance
this resource is allocated to.java.io.IOException
- Exception communicating with Streams instance.public java.util.List<Job> getJobs() throws java.io.IOException
IBM Streams Jobs
java.io.IOException
- Exception communicating with Streams instance.public java.util.List<ProcessingElement> getPes() throws java.io.IOException
Processing Elements
java.io.IOException
- Exception communicating with Streams instance.