Class MetricsStub
- java.lang.Object
-
- com.vmware.vapi.internal.bindings.Stub
-
- com.vmware.nsx_policy.infra.sites.agents.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 theMetrics
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
-
Fields inherited from interface com.vmware.nsx_policy.infra.sites.agents.MetricsTypes
_VAPI_SERVICE_ID
-
-
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 configvoid
get(com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
Fetch current Metric agent configvoid
get(com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Fetch current Metric agent configMetricsAgent
get(com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Fetch current Metric agent configMetricsAgent
update(MetricsAgent metricsAgent)
Create Metrics agent intent resourcevoid
update(MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
Create Metrics agent intent resourcevoid
update(MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create Metrics agent intent resourceMetricsAgent
update(MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create Metrics agent intent resource
-
-
-
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 configSynchronous method overload. Result of the invocation will be reported as a method return value.
-
get
public MetricsAgent get(com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Metrics
Fetch current Metric agent configSynchronous method overload. Result of the invocation will be reported as a method return value. Use
invocationConfig
to specify configuration for this particular invocation.
-
get
public void get(com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
Description copied from interface:Metrics
Fetch current Metric agent configAsynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
.Invocation Result:
com.vmware.nsx_policy.model.MetricsAgentOperation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
-
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 configAsynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
. UseinvocationConfig
to specify configuration for this particular invocation.Invocation Result:
com.vmware.nsx_policy.model.MetricsAgentOperation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
-
update
public MetricsAgent update(MetricsAgent metricsAgent)
Description copied from interface:Metrics
Create Metrics agent intent resourceSynchronous method overload. Result of the invocation will be reported as a method return value.
-
update
public MetricsAgent update(MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Description copied from interface:Metrics
Create Metrics agent intent resourceSynchronous method overload. Result of the invocation will be reported as a method return value. Use
invocationConfig
to specify configuration for this particular invocation.
-
update
public void update(MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
Description copied from interface:Metrics
Create Metrics agent intent resourceAsynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
.Invocation Result:
com.vmware.nsx_policy.model.MetricsAgentOperation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
-
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 resourceAsynchronous method overload. Result of the invocation will be reported via the specified
asyncCallback
. UseinvocationConfig
to specify configuration for this particular invocation.Invocation Result:
com.vmware.nsx_policy.model.MetricsAgentOperation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
-
-