public class FcSansDeviceManagerClientImpl extends Object implements FcSansDeviceManagerClient
Modifier | Constructor and Description |
---|---|
protected |
FcSansDeviceManagerClientImpl(DeviceManagerAdaptor adaptor,
TaskAdaptor taskAdaptor,
TaskMonitorManager taskMonitor,
HttpRestClient restClient) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createDeviceManager(RestParams params,
String providerUrl,
DeviceManagerResponse addDeviceManagerResponseDto,
boolean aSync)
The module aids in creating a device manager under the specified provider.
|
TaskResourceV2 |
deleteDeviceManager(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting a device manager for the specified device manager
resource identifier.
|
DeviceManagerResponseCollection |
getAllDeviceManager(RestParams params)
The module aids in fetching all the device managers registered under the
current HPE OneView.
|
static FcSansDeviceManagerClient |
getClient() |
DeviceManagerResponse |
getDeviceManager(RestParams params,
String resourceId)
The module aids in fetching the device manager registered under current HPE OneView.
|
DeviceManagerResponse |
getDeviceManagerByName(RestParams params,
String name)
The module aids in fetching the device manager registered under the current HPE OneView.
|
String |
getId(RestParams params,
String name)
The module aids in fetching the device manager resource identifier for the device
manager name as specified in HPE OneView.
|
TaskResourceV2 |
updateDeviceManager(RestParams params,
String resourceId,
DeviceManagerResponse updateDeviceManagerResponseDto,
boolean useJsonRequest,
boolean aSync)
The module takes in an DeviceManagerResponse object or JsonRequest and updates the
existing device manager based on the resource identifier.
|
protected FcSansDeviceManagerClientImpl(DeviceManagerAdaptor adaptor, TaskAdaptor taskAdaptor, TaskMonitorManager taskMonitor, HttpRestClient restClient)
public static FcSansDeviceManagerClient getClient()
public TaskResourceV2 createDeviceManager(RestParams params, String providerUrl, DeviceManagerResponse addDeviceManagerResponseDto, boolean aSync)
FcSansDeviceManagerClient
createDeviceManager
in interface FcSansDeviceManagerClient
params
- The RestParams
is a structure containing the connection details.providerUrl
- The provider URL based on the switch provider obtained from HPE OneView.addDeviceManagerResponseDto
- The DeviceManagerResponse
object
containing the device manager details.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public DeviceManagerResponseCollection getAllDeviceManager(RestParams params)
FcSansDeviceManagerClient
getAllDeviceManager
in interface FcSansDeviceManagerClient
params
- The RestParams
is a structure containing the connection details.DeviceManagerResponseCollection
containing the device managers details.public DeviceManagerResponse getDeviceManager(RestParams params, String resourceId)
FcSansDeviceManagerClient
getDeviceManager
in interface FcSansDeviceManagerClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for device manager as seen in HPE OneView.DeviceManagerResponse
containing the device manager details.public TaskResourceV2 deleteDeviceManager(RestParams params, String resourceId, boolean aSync)
FcSansDeviceManagerClient
deleteDeviceManager
in interface FcSansDeviceManagerClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for device manager as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateDeviceManager(RestParams params, String resourceId, DeviceManagerResponse updateDeviceManagerResponseDto, boolean useJsonRequest, boolean aSync)
FcSansDeviceManagerClient
updateDeviceManager
in interface FcSansDeviceManagerClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for device manager as seen in HPE OneView.updateDeviceManagerResponseDto
- object containing the device manager details.useJsonRequest
- The JsonRequest body is part of DeviceManagerResponse object which
takes in a String containing the device manager details, which
is converted to DeviceManagerResponse object using adaptor and
processed.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public DeviceManagerResponse getDeviceManagerByName(RestParams params, String name)
FcSansDeviceManagerClient
getDeviceManagerByName
in interface FcSansDeviceManagerClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the device manager name as seen in HPEDeviceManagerResponse
containing the device manager details.public String getId(RestParams params, String name)
FcSansDeviceManagerClient
getId
in interface FcSansDeviceManagerClient
params
- The RestParams
is a structure containing the connection details.name
- The resourceName is the device manager name as seen in HPE OneView.Copyright © 2016. All rights reserved.