com.ibm.streamsx.rest

Class ProcessingElement



  • public class ProcessingElement
    extends Element
    An object describing an IBM Streams Processing Element
    • Constructor Detail

      • ProcessingElement

        public ProcessingElement()
    • Method Detail

      • getMetrics

        public java.util.List<Metric> getMetrics()
                                          throws java.io.IOException
        Gets a list of metrics for this processing element
        Returns:
        List of IBM Streams Metrics
        Throws:
        java.io.IOException
      • getOperators

        public java.util.List<Operator> getOperators()
                                              throws java.io.IOException
        Gets a list of operators for this processing element
        Returns:
        List of IBM Streams Operators
        Throws:
        java.io.IOException
      • getCurrentWorkingPath

        public java.lang.String getCurrentWorkingPath()
        Gets the current working path of the processing element
        Returns:
        the current working path
      • getHealth

        public java.lang.String 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

        public java.lang.String 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 the Job
        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

        public java.lang.String 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

        public java.util.List<java.lang.String> getOsCapabilities()
        Gets a list of the operating system capabilities
        Returns:
        List of the operating system capabilities
      • getPendingTracingLevel

        public java.lang.String 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
        a null value indicates no pending change to the trace level
      • getProcessId

        public java.lang.String 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

        public java.lang.String 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

        public java.util.List<java.lang.String> getResourceTags()
        Gets a list of resource tags for this processing element
        Returns:
        List of resource tags
      • getResourceType

        public java.lang.String 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

        public java.lang.String getStatus()
        Gets the status of this processing element
        Returns:
        the processing element status
      • getStatusReason

        public java.lang.String getStatusReason()
        Gets additional status for this processing element
        Returns:
        any addition status for this processing element
      • getTracingLevel

        public java.lang.String 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
streamsx.topology 2.1 @ IBMStreams GitHub