public interface Stats extends com.vmware.vapi.bindings.Service, StatsTypes
_VAPI_SERVICE_ID, GET_LOCATION_ARCHIVED, GET_LOCATION_CURRENT
Modifier and Type | Method and Description |
---|---|
MigrationStatsResult |
get(java.lang.String location,
java.lang.Boolean prePromotion)
To get MP2Policy promotion stats.
|
void |
get(java.lang.String location,
java.lang.Boolean prePromotion,
com.vmware.vapi.bindings.client.AsyncCallback<MigrationStatsResult> asyncCallback)
To get MP2Policy promotion stats.
|
void |
get(java.lang.String location,
java.lang.Boolean prePromotion,
com.vmware.vapi.bindings.client.AsyncCallback<MigrationStatsResult> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
To get MP2Policy promotion stats.
|
MigrationStatsResult |
get(java.lang.String location,
java.lang.Boolean prePromotion,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
To get MP2Policy promotion stats.
|
MigrationStatsResult get(java.lang.String location, java.lang.Boolean prePromotion)
Synchronous method overload. Result of the invocation will be reported as a method return value.
location
- Location flag (optional, default to CURRENT)prePromotion
- Flag to indicate whether to get collection stats before triggering promotion
(optional, default to false)com.vmware.vapi.std.errors.InvalidRequest
- Bad Request, Precondition Failedcom.vmware.vapi.std.errors.Unauthorized
- Forbiddencom.vmware.vapi.std.errors.ServiceUnavailable
- Service Unavailablecom.vmware.vapi.std.errors.InternalServerError
- Internal Server Errorcom.vmware.vapi.std.errors.NotFound
- Not FoundMigrationStatsResult get(java.lang.String location, java.lang.Boolean prePromotion, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
location
- Location flag (optional, default to CURRENT)prePromotion
- Flag to indicate whether to get collection stats before triggering promotion
(optional, default to false)invocationConfig
- Configuration for the method invocation.com.vmware.vapi.std.errors.InvalidRequest
- Bad Request, Precondition Failedcom.vmware.vapi.std.errors.Unauthorized
- Forbiddencom.vmware.vapi.std.errors.ServiceUnavailable
- Service Unavailablecom.vmware.vapi.std.errors.InternalServerError
- Internal Server Errorcom.vmware.vapi.std.errors.NotFound
- Not Foundvoid get(java.lang.String location, java.lang.Boolean prePromotion, com.vmware.vapi.bindings.client.AsyncCallback<MigrationStatsResult> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx.model.MigrationStatsResult
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
location
- Location flag (optional, default to CURRENT)prePromotion
- Flag to indicate whether to get collection stats before triggering promotion
(optional, default to false)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String location, java.lang.Boolean prePromotion, com.vmware.vapi.bindings.client.AsyncCallback<MigrationStatsResult> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
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.model.MigrationStatsResult
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
location
- Location flag (optional, default to CURRENT)prePromotion
- Flag to indicate whether to get collection stats before triggering promotion
(optional, default to false)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.