Class StreamAssetsImpl

java.lang.Object
com.eqixiac.equinix.fabric.client.implementation.StreamAssetsImpl
All Implemented Interfaces:
StreamAssets

public class StreamAssetsImpl extends Object implements StreamAssets
  • Constructor Details

    • StreamAssetsImpl

      public StreamAssetsImpl()
  • Method Details

    • get

      public StreamAsset get(String streamId, String asset, String assetId)
      Description copied from interface: StreamAssets
      Retrieves a single asset attached to a stream.
      Specified by:
      get in interface StreamAssets
      Parameters:
      streamId - the unique identifier of the stream
      asset - the asset type segment (for example connections, ports, routers)
      assetId - the unique identifier of the asset
      Returns:
      the stream asset
    • attach

      public StreamAsset attach(String streamId, String asset, String assetId, Boolean metricsEnabled)
      Description copied from interface: StreamAssets
      Attaches an asset to a stream (enabling telemetry).
      Specified by:
      attach in interface StreamAssets
      Parameters:
      streamId - the unique identifier of the stream
      asset - the asset type segment (for example connections, ports, routers)
      assetId - the unique identifier of the asset
      metricsEnabled - whether metrics are enabled for the attached asset
      Returns:
      the attached stream asset
    • detach

      public Boolean detach(String streamId, String asset, String assetId)
      Description copied from interface: StreamAssets
      Detaches an asset from a stream.
      Specified by:
      detach in interface StreamAssets
      Parameters:
      streamId - the unique identifier of the stream
      asset - the asset type segment (for example connections, ports, routers)
      assetId - the unique identifier of the asset
      Returns:
      true if the detach was accepted
    • search

      Description copied from interface: StreamAssets
      Searches stream assets (POST /fabric/v4/streamAssets/search), for example by /uuid, /streamUuid or /attachmentStatus.
      Specified by:
      search in interface StreamAssets
      Parameters:
      filter - the filter, or null
      sort - the sort, or null
      Returns:
      a paginated, filtered list of stream assets
    • getDevice

      public StreamAsset getDevice(String streamId, String deviceId)
      Description copied from interface: StreamAssets
      Retrieves a Network Edge device attached to a stream (GET /fabric/v4/streams/{streamId}/devices/{deviceId}).
      Specified by:
      getDevice in interface StreamAssets
      Parameters:
      streamId - the stream uuid
      deviceId - the Network Edge device uuid
      Returns:
      the device asset with its streamed interfaces
    • attachDevice

      public StreamAsset attachDevice(String streamId, String deviceId, List<Integer> interfaceIds)
      Description copied from interface: StreamAssets
      Streams a Network Edge device (PUT /fabric/v4/streams/{streamId}/devices/{deviceId}). The interface ids are the complete desired set: interfaces not listed are detached.
      Specified by:
      attachDevice in interface StreamAssets
      Parameters:
      streamId - the stream uuid
      deviceId - the Network Edge device uuid
      interfaceIds - the device interface ids to stream (non-empty)
      Returns:
      the device asset (typically ATTACHING)
    • detachDevice

      public StreamAsset detachDevice(String streamId, String deviceId)
      Description copied from interface: StreamAssets
      Stops streaming a Network Edge device (DELETE /fabric/v4/streams/{streamId}/devices/{deviceId}).
      Specified by:
      detachDevice in interface StreamAssets
      Parameters:
      streamId - the stream uuid
      deviceId - the Network Edge device uuid
      Returns:
      the device asset (typically DETACHING), or null on an empty response