public class CounterMetadataStub extends com.vmware.vapi.internal.bindings.Stub implements CounterMetadata
CounterMetadata
API service.
WARNING: Internal class, subject to change in future versions.
CounterMetadataTypes.CounterEditionStatus, CounterMetadataTypes.FilterSpec, CounterMetadataTypes.Info, CounterMetadataTypes.MetricUnits, CounterMetadataTypes.SampleType, CounterMetadataTypes.UnitsFactor
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
CounterMetadataStub(ApiProvider apiProvider,
StubConfigurationBase config) |
CounterMetadataStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
CounterMetadataTypes.Info |
get(java.lang.String cid,
java.lang.String mid)
Returns information about a specific CounterMetadata.
|
void |
get(java.lang.String cid,
java.lang.String mid,
AsyncCallback<CounterMetadataTypes.Info> asyncCallback)
Returns information about a specific CounterMetadata.
|
void |
get(java.lang.String cid,
java.lang.String mid,
AsyncCallback<CounterMetadataTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a specific CounterMetadata.
|
CounterMetadataTypes.Info |
get(java.lang.String cid,
java.lang.String mid,
InvocationConfig invocationConfig)
Returns information about a specific CounterMetadata.
|
java.util.List<CounterMetadataTypes.Info> |
getDefault(java.lang.String cid)
This method returns the "default" CounterMetadata.
|
void |
getDefault(java.lang.String cid,
AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback)
This method returns the "default" CounterMetadata.
|
void |
getDefault(java.lang.String cid,
AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
This method returns the "default" CounterMetadata.
|
java.util.List<CounterMetadataTypes.Info> |
getDefault(java.lang.String cid,
InvocationConfig invocationConfig)
This method returns the "default" CounterMetadata.
|
java.util.List<CounterMetadataTypes.Info> |
list(java.lang.String cid,
CounterMetadataTypes.FilterSpec filter)
Returns information about all counter metadata records for a specific Counter.
|
void |
list(java.lang.String cid,
CounterMetadataTypes.FilterSpec filter,
AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback)
Returns information about all counter metadata records for a specific Counter.
|
void |
list(java.lang.String cid,
CounterMetadataTypes.FilterSpec filter,
AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about all counter metadata records for a specific Counter.
|
java.util.List<CounterMetadataTypes.Info> |
list(java.lang.String cid,
CounterMetadataTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about all counter metadata records for a specific Counter.
|
public CounterMetadataStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public CounterMetadataStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<CounterMetadataTypes.Info> list(java.lang.String cid, CounterMetadataTypes.FilterSpec filter)
CounterMetadata
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface CounterMetadata
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.filter
- Filter specification.
When null
no filtering will be performed.public java.util.List<CounterMetadataTypes.Info> list(java.lang.String cid, CounterMetadataTypes.FilterSpec filter, InvocationConfig invocationConfig)
CounterMetadata
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
list
in interface CounterMetadata
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.filter
- Filter specification.
When null
no filtering will be performed.invocationConfig
- Configuration for the method invocation.public void list(java.lang.String cid, CounterMetadataTypes.FilterSpec filter, AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback)
CounterMetadata
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of counter metadata for the specified counter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are 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.
list
in interface CounterMetadata
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.filter
- Filter specification.
When null
no filtering will be performed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String cid, CounterMetadataTypes.FilterSpec filter, AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
CounterMetadata
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 counter metadata for the specified counter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are 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.
list
in interface CounterMetadata
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.filter
- Filter specification.
When null
no filtering will be performed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<CounterMetadataTypes.Info> getDefault(java.lang.String cid)
CounterMetadata
Sometimes, when providers are in "disagreement" about the default, then the returned list would include all the possible "defaults". This potential ambiguity isn't a real issue because consumers of the vStats API rarely need to specify the "mid" of metadata. Therefore, this API is used primarily for informational purposes.
. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Synchronous method overload. Result of the invocation will be reported as a method return value.
getDefault
in interface CounterMetadata
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.public java.util.List<CounterMetadataTypes.Info> getDefault(java.lang.String cid, InvocationConfig invocationConfig)
CounterMetadata
Sometimes, when providers are in "disagreement" about the default, then the returned list would include all the possible "defaults". This potential ambiguity isn't a real issue because consumers of the vStats API rarely need to specify the "mid" of metadata. Therefore, this API is used primarily for informational purposes.
. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
getDefault
in interface CounterMetadata
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.invocationConfig
- Configuration for the method invocation.public void getDefault(java.lang.String cid, AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback)
CounterMetadata
Sometimes, when providers are in "disagreement" about the default, then the returned list would include all the possible "defaults". This potential ambiguity isn't a real issue because consumers of the vStats API rarely need to specify the "mid" of metadata. Therefore, this API is used primarily for informational purposes.
. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of counter metadata records.
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.
getDefault
in interface CounterMetadata
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.public void getDefault(java.lang.String cid, AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
CounterMetadata
Sometimes, when providers are in "disagreement" about the default, then the returned list would include all the possible "defaults". This potential ambiguity isn't a real issue because consumers of the vStats API rarely need to specify the "mid" of metadata. Therefore, this API is used primarily for informational purposes.
. Warning: This method is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.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 counter metadata records.
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.
getDefault
in interface CounterMetadata
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.public CounterMetadataTypes.Info get(java.lang.String cid, java.lang.String mid)
CounterMetadata
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface CounterMetadata
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.mid
- CounterMetadata ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterMetadata
.public CounterMetadataTypes.Info get(java.lang.String cid, java.lang.String mid, InvocationConfig invocationConfig)
CounterMetadata
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get
in interface CounterMetadata
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.mid
- CounterMetadata ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterMetadata
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String cid, java.lang.String mid, AsyncCallback<CounterMetadataTypes.Info> asyncCallback)
CounterMetadata
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the desired CounterMetadata.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
NotFound
- if Counter or CounterMetadata could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
get
in interface CounterMetadata
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.mid
- CounterMetadata ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterMetadata
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String cid, java.lang.String mid, AsyncCallback<CounterMetadataTypes.Info> asyncCallback, InvocationConfig invocationConfig)
CounterMetadata
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 desired CounterMetadata.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
NotFound
- if Counter or CounterMetadata could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
get
in interface CounterMetadata
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.mid
- CounterMetadata ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterMetadata
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.