Package com.teracloud.streams.rest
Class ProcessingElement
java.lang.Object
com.teracloud.streams.rest.Element
com.teracloud.streams.rest.ProcessingElement
An object describing an Streams Processing Element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the current working path of the processing elementGets the health indicator for this processing elementgetId()
Gets the id of this processing elementlong
Gets the index of this processing element within theJob
Gets a list ofprocessing element input ports
for this processing elementint
Gets the number of times this processing element was started manually or automatically because of failuresGets a list ofmetrics
for this processing elementGets a list ofoperators
for this processing elementGets the status of optional connections for this processing element.Gets a list of the operating system capabilitiesGets a list ofprocessing element output ports
for this processing elementDescribes a pending change to the granularity of the trace information that is stored for this processing element.Gets the operating system process ID for this processing elementboolean
Indicates whether or not this processing element can be relocated to a different resourceStatus of the required connections for this processing element.Gets theresource allocation
for this processing element.Gets a list of resource tags for this processing elementIdentifies the REST resource typeboolean
Indicates whether or not this processing element can be restartedGets the status of this processing elementGets additional status for this processing elementGets the granularity of the tracing level for this processing elementMethods inherited from class com.teracloud.streams.rest.Element
getStreamsConnection, refresh, toString
-
Constructor Details
-
ProcessingElement
public ProcessingElement()
-
-
Method Details
-
getMetrics
Gets a list ofmetrics
for this processing element- Returns:
- List of
Streams Metrics
- Throws:
IOException
-
getInputPorts
Gets a list ofprocessing element input ports
for this processing element- Returns:
- List of
Processing Element Input Ports
- Throws:
IOException
-
getOperators
Gets a list ofoperators
for this processing element- Returns:
- List of
Streams Operators
- Throws:
IOException
-
getOutputPorts
Gets a list ofprocessing element output ports
for this processing element- Returns:
- List of
Processing Element Output Ports
- Throws:
IOException
-
getCurrentWorkingPath
Gets the current working path of the processing element- Returns:
- the current working path
-
getHealth
Gets the health indicator for this processing element- Returns:
- the health indicator that contains one of the following values:
- healthy
- partiallyHealthy
- partiallyUnhealthy
- unhealthy
- unknown
-
getId
Gets the id of this processing element- Returns:
- the processing element id
-
getIndexWithinJob
public long getIndexWithinJob()Gets the index of this processing element within theJob
- Returns:
- processing element index as a long
-
getLaunchCount
public int getLaunchCount()Gets the number of times this processing element was started manually or automatically because of failures- Returns:
- number of times the processing element was started as an int
-
getOptionalConnections
Gets the status of optional connections for this processing element.- Returns:
- the optional connection status that contains one of the following
values:
- connected
- disconnected
- partiallyConnected
- unknown
-
getOsCapabilities
Gets a list of the operating system capabilities- Returns:
- List of the operating system capabilities
-
getPendingTracingLevel
Describes a pending change to the granularity of the trace information that is stored for this processing element.- Returns:
- the pending trace level change that contains one of the following
values:
- off
- debug
- error
- trace
-
getProcessId
Gets the operating system process ID for this processing element- Returns:
- the operating sytem process ID
-
getRelocatable
public boolean getRelocatable()Indicates whether or not this processing element can be relocated to a different resource- Returns:
- boolean indicating whether or not relocation is possible
-
getRequiredConnections
Status of the required connections for this processing element.- Returns:
- required connection status that contains one of the following
values:
- connected
- disconnected
- partiallyConnected
- unknown
-
getResourceTags
Gets a list of resource tags for this processing element- Returns:
- List of resource tags
-
getResourceType
Identifies the REST resource type- Returns:
- "pe"
-
getRestartable
public boolean getRestartable()Indicates whether or not this processing element can be restarted- Returns:
- the restart indicator as a boolean
-
getStatus
Gets the status of this processing element- Returns:
- the processing element status
-
getStatusReason
Gets additional status for this processing element- Returns:
- any addition status for this processing element
-
getTracingLevel
Gets the granularity of the tracing level for this processing element- Returns:
- the current tracing level that contains one of the following
values:
- off
- debug
- error
- trace
-
getResourceAllocation
Gets theresource allocation
for this processing element.- Returns:
resource allocation
- Throws:
IOException
- Since:
- 1.9
-