public class CountersStub extends com.vmware.vapi.internal.bindings.Stub implements Counters
Counters
API service.
WARNING: Internal class, subject to change in future versions.
CountersTypes.FilterSpec, CountersTypes.Info
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
CountersStub(ApiProvider apiProvider,
StubConfigurationBase config) |
CountersStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
CountersTypes.Info |
get(java.lang.String cid)
Returns information about a specific Counter.
|
void |
get(java.lang.String cid,
AsyncCallback<CountersTypes.Info> asyncCallback)
Returns information about a specific Counter.
|
void |
get(java.lang.String cid,
AsyncCallback<CountersTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a specific Counter.
|
CountersTypes.Info |
get(java.lang.String cid,
InvocationConfig invocationConfig)
Returns information about a specific Counter.
|
java.util.List<CountersTypes.Info> |
list(CountersTypes.FilterSpec filter)
Returns information about all counters matching the filter parameters.
|
void |
list(CountersTypes.FilterSpec filter,
AsyncCallback<java.util.List<CountersTypes.Info>> asyncCallback)
Returns information about all counters matching the filter parameters.
|
void |
list(CountersTypes.FilterSpec filter,
AsyncCallback<java.util.List<CountersTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about all counters matching the filter parameters.
|
java.util.List<CountersTypes.Info> |
list(CountersTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about all counters matching the filter parameters.
|
public CountersStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public CountersStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<CountersTypes.Info> list(CountersTypes.FilterSpec filter)
Counters
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<CountersTypes.Info> list(CountersTypes.FilterSpec filter, InvocationConfig invocationConfig)
Counters
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void list(CountersTypes.FilterSpec filter, AsyncCallback<java.util.List<CountersTypes.Info>> asyncCallback)
Counters
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of Counters.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
public void list(CountersTypes.FilterSpec filter, AsyncCallback<java.util.List<CountersTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
Counters
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:
List of Counters.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
public CountersTypes.Info get(java.lang.String cid)
Counters
Synchronous method overload. Result of the invocation will be reported as a method return value.
public CountersTypes.Info get(java.lang.String cid, InvocationConfig invocationConfig)
Counters
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void get(java.lang.String cid, AsyncCallback<CountersTypes.Info> asyncCallback)
Counters
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the requested counter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if cid
is invalid.
NotFound
- if Counter could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
public void get(java.lang.String cid, AsyncCallback<CountersTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Counters
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:
Information about the requested counter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if cid
is invalid.
NotFound
- if Counter could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
get
in interface Counters
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.