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)
FcSansDeviceManagerClientcreateDeviceManager in interface FcSansDeviceManagerClientparams - 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)
FcSansDeviceManagerClientgetAllDeviceManager in interface FcSansDeviceManagerClientparams - The RestParams is a structure containing the connection details.DeviceManagerResponseCollection containing the device managers details.public DeviceManagerResponse getDeviceManager(RestParams params, String resourceId)
FcSansDeviceManagerClientgetDeviceManager in interface FcSansDeviceManagerClientparams - 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)
FcSansDeviceManagerClientdeleteDeviceManager in interface FcSansDeviceManagerClientparams - 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)
FcSansDeviceManagerClientupdateDeviceManager in interface FcSansDeviceManagerClientparams - 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)
FcSansDeviceManagerClientgetDeviceManagerByName in interface FcSansDeviceManagerClientparams - 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)
FcSansDeviceManagerClientgetId in interface FcSansDeviceManagerClientparams - 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.