Element (Java Application API for IBM Streams)
Date: 2020-08-07

com.ibm.streamsx.rest

## Class Element

- java.lang.Object
- - com.ibm.streamsx.rest.Element

- Direct Known Subclasses:
    ApplicationBundle, Domain, InputPort, Instance, Job, Metric, Operator, OutputPort, PEInputPort, PEOutputPort, ProcessingElement, Resource, ResourceAllocation

      public abstract class Element
      extends java.lang.Object

  IBM Streams element. Super-class for elements returned from the IBM Streams REST API.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Element()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `StreamsConnection` | `getStreamsConnection()`
    `void` | `refresh()` Refresh this element.
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Element

          public Element()

  - ### Method Detail

    - #### getStreamsConnection

          public StreamsConnection getStreamsConnection()

    - #### toString

          public final java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### refresh

          public void refresh()
                       throws java.io.IOException

      Refresh this element. Attributes of this object are updated from current state though the Streams REST API.
      Throws:
        `java.io.IOException` - Error communicating with Streams.