Class MetricsStub

  • All Implemented Interfaces:
    Metrics, MetricsTypes, com.vmware.vapi.bindings.Service

    public class MetricsStub
    extends com.vmware.vapi.internal.bindings.Stub
    implements Metrics
    Remote stub implementation of the Metrics API service.

    WARNING: Internal class, subject to change in future versions.

    • Field Summary

      • Fields inherited from class com.vmware.vapi.internal.bindings.Stub

        apiProvider, converter, ifaceId, retryPolicy, securityContext
    • Constructor Summary

      Constructors 
      Constructor Description
      MetricsStub​(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)  
      MetricsStub​(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MetricsAgent get()
      Fetch current Metric agent config
      void get​(com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
      Fetch current Metric agent config
      void get​(com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Fetch current Metric agent config
      MetricsAgent get​(com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Fetch current Metric agent config
      MetricsAgent update​(MetricsAgent metricsAgent)
      Create Metrics agent intent resource
      void update​(MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
      Create Metrics agent intent resource
      void update​(MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create Metrics agent intent resource
      MetricsAgent update​(MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create Metrics agent intent resource
      • Methods inherited from class com.vmware.vapi.internal.bindings.Stub

        invokeMethod, invokeMethodAsync, invokeStreamMethod, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MetricsStub

        public MetricsStub​(com.vmware.vapi.core.ApiProvider apiProvider,
                           com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
                           com.vmware.vapi.bindings.StubConfigurationBase config)
      • MetricsStub

        public MetricsStub​(com.vmware.vapi.core.ApiProvider apiProvider,
                           com.vmware.vapi.bindings.StubConfigurationBase config)
    • Method Detail

      • get

        public MetricsAgent get()
        Description copied from interface: Metrics
        Fetch current Metric agent config

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        get in interface Metrics
        Returns:
        com.vmware.nsx_policy.model.MetricsAgent
      • get

        public MetricsAgent get​(com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Metrics
        Fetch current Metric agent config

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        get in interface Metrics
        Parameters:
        invocationConfig - Configuration for the method invocation.
        Returns:
        com.vmware.nsx_policy.model.MetricsAgent
      • get

        public void get​(com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
        Description copied from interface: Metrics
        Fetch current Metric agent config

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Invocation Result:
        com.vmware.nsx_policy.model.MetricsAgent

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        get in interface Metrics
        Parameters:
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • get

        public void get​(com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback,
                        com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Metrics
        Fetch current Metric agent config

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Invocation Result:
        com.vmware.nsx_policy.model.MetricsAgent

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        get in interface Metrics
        Parameters:
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • update

        public MetricsAgent update​(MetricsAgent metricsAgent)
        Description copied from interface: Metrics
        Create Metrics agent intent resource

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        update in interface Metrics
        Parameters:
        metricsAgent - (required)
        Returns:
        com.vmware.nsx_policy.model.MetricsAgent
      • update

        public MetricsAgent update​(MetricsAgent metricsAgent,
                                   com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Metrics
        Create Metrics agent intent resource

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        update in interface Metrics
        Parameters:
        metricsAgent - (required)
        invocationConfig - Configuration for the method invocation.
        Returns:
        com.vmware.nsx_policy.model.MetricsAgent
      • update

        public void update​(MetricsAgent metricsAgent,
                           com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
        Description copied from interface: Metrics
        Create Metrics agent intent resource

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Invocation Result:
        com.vmware.nsx_policy.model.MetricsAgent

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        update in interface Metrics
        Parameters:
        metricsAgent - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • update

        public void update​(MetricsAgent metricsAgent,
                           com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback,
                           com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Metrics
        Create Metrics agent intent resource

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Invocation Result:
        com.vmware.nsx_policy.model.MetricsAgent

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        update in interface Metrics
        Parameters:
        metricsAgent - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.