Class PrecisionTimesImpl

java.lang.Object
com.eqixiac.equinix.fabric.client.implementation.PrecisionTimesImpl
All Implemented Interfaces:
PrecisionTimes

public class PrecisionTimesImpl extends Object implements PrecisionTimes
  • Constructor Details

    • PrecisionTimesImpl

      public PrecisionTimesImpl()
  • Method Details

    • list

      public PaginatedList<PrecisionTime> list()
      Description copied from interface: PrecisionTimes
      Lists precision time services through POST /fabric/v4/timeServices/search with an empty filter. The specification documents /project/projectId as a mandatory filter property, so prefer PrecisionTimes.search(FilterPropertyList, SortPropertyList) with a project filter; the service may reject an unfiltered search.
      Specified by:
      list in interface PrecisionTimes
      Returns:
      a paginated list of precision time services
    • search

      Description copied from interface: PrecisionTimes
      Searches precision time services (POST /fabric/v4/timeServices/search). Filter properties: /project/projectId (mandatory per the spec), /name, /uuid, /type, /state, /account/accountNumber, /package/code.
      Specified by:
      search in interface PrecisionTimes
      Parameters:
      filter - the search filter
      sort - the sort criteria, may be null
      Returns:
      the matching services, paged
    • getByUuid

      public PrecisionTime getByUuid(String uuid)
      Description copied from interface: PrecisionTimes
      Retrieves a single precision time service by its unique identifier.
      Specified by:
      getByUuid in interface PrecisionTimes
      Parameters:
      uuid - the unique identifier of the precision time service
      Returns:
      the precision time service matching the given UUID
    • define

      Description copied from interface: PrecisionTimes
      Begins the fluent builder for creating a new precision time service. Call methods on the returned builder to configure the service, then call create().
      Specified by:
      define in interface PrecisionTimes
      Returns:
      a builder for configuring the new precision time service
    • packages

      public List<TimeServicePackage> packages()
      Description copied from interface: PrecisionTimes
      Lists the available precision time service packages (NTP/PTP, standard/enterprise).
      Specified by:
      packages in interface PrecisionTimes
      Returns:
      the list of time service packages
    • packageByCode

      public TimeServicePackage packageByCode(PrecisionTimePackageCode packageCode)
      Description copied from interface: PrecisionTimes
      Retrieves a single precision time service package by its package code.
      Specified by:
      packageByCode in interface PrecisionTimes
      Parameters:
      packageCode - the package code
      Returns:
      the time service package matching the given code
    • getConnections

      public List<TimeServiceConnection> getConnections(String serviceId)
      Description copied from interface: PrecisionTimes
      Lists the L2 connections associated with a precision time service instance.
      Specified by:
      getConnections in interface PrecisionTimes
      Parameters:
      serviceId - the unique identifier of the precision time service
      Returns:
      the list of connection links
    • fulfill

      public PrecisionTime fulfill(String uuid, List<String> connectionUuids)
      Description copied from interface: PrecisionTimes
      Fulfills (provisions) an existing precision time service by attaching the given Fabric connections to it.
      Specified by:
      fulfill in interface PrecisionTimes
      Parameters:
      uuid - the unique identifier of the precision time service
      connectionUuids - the Fabric connection UUIDs to attach
      Returns:
      the updated precision time service
    • fulfill

      public PrecisionTime fulfill(String uuid, TimeServiceFulfillRequest request)
      Description copied from interface: PrecisionTimes
      Fulfills (provisions) an existing precision time service with a full precisionTimeServiceRequest body, allowing the required type, name, package and ipv4 properties (and the optional NTP / PTP advanced configuration, project and order) to be supplied alongside the connections.
      Specified by:
      fulfill in interface PrecisionTimes
      Parameters:
      uuid - the unique identifier of the precision time service
      request - the fulfillment request body
      Returns:
      the updated precision time service