public class SwitchClientImpl extends Object implements SwitchClient
Modifier | Constructor and Description |
---|---|
protected |
SwitchClientImpl(HttpRestClient restClient,
ResourceAdaptor adaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createSwitch(RestParams params,
Switch switchObj,
boolean aSync)
This method aids in the creation of a switch.
|
TaskResourceV2 |
deleteSwitch(RestParams params,
String resourceId,
boolean aSync)
This method aids in deletion of a switch.
|
SwitchCollection |
getAllSwitches(RestParams params)
This method aids in fetching the top of rack switches.
|
static SwitchClient |
getClient() |
String |
getId(RestParams params,
String name)
The module aids in fetching the switch resource identifier for the switch name as
specified in HPE OneView.
|
Switch |
getSwitch(RestParams params,
String resourceId)
This method aids in fetching the switch for the given resource identifier.
|
Switch |
getSwitchByName(RestParams params,
String name)
The module aids in fetching the switch details for the switch name as
specified in HPE OneView.
|
EnvironmentalConfiguration |
getSwitchEnvironmentalConfiguration(RestParams params,
String resourceId)
This method aids in fetching the environmental configuration for a switch.
|
SwitchPortStatistics |
getSwitchPortStatistics(RestParams params,
String resourceId,
String portName)
This method aids in fetching the statistics for the switch.
|
SwitchStatistics |
getSwitchStatistics(RestParams params,
String resourceId)
This method aids in fetching the statistics for a switch.
|
TaskResourceV2 |
refreshSwitch(RestParams params,
String resourceId,
boolean aSync)
This method aids in refreshing a switch.
|
TaskResourceV2 |
updateSwitch(RestParams params,
String resourceId,
Switch switchDto,
boolean aSync)
This method aids in updating a switch.
|
protected SwitchClientImpl(HttpRestClient restClient, ResourceAdaptor adaptor, TaskMonitorManager taskMonitor)
public static SwitchClient getClient()
public Switch getSwitch(RestParams params, String resourceId)
SwitchClient
getSwitch
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for switch as seen in HPE OneView.Switch
containing the switch details.public SwitchCollection getAllSwitches(RestParams params)
SwitchClient
getAllSwitches
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.SwitchCollection
containing the collection of switch details.public TaskResourceV2 createSwitch(RestParams params, Switch switchObj, boolean aSync)
SwitchClient
createSwitch
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.switchObj
- Object containing the switch details.aSync
- flag to indicate whether the request should be processed
asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateSwitch(RestParams params, String resourceId, Switch switchDto, boolean aSync)
SwitchClient
updateSwitch
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for switch as seen in HPE OneView.switchDto
- Object containing the switch details.aSync
- flag to indicate whether the request should be processed
asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 deleteSwitch(RestParams params, String resourceId, boolean aSync)
SwitchClient
deleteSwitch
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for switch as seen in HPE OneView.aSync
- flag to indicate whether the request should be processed
asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 refreshSwitch(RestParams params, String resourceId, boolean aSync)
SwitchClient
refreshSwitch
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for switch as seen in HPE OneView.aSync
- flag to indicate whether the request should be processed
asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public EnvironmentalConfiguration getSwitchEnvironmentalConfiguration(RestParams params, String resourceId)
SwitchClient
getSwitchEnvironmentalConfiguration
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for switch as seen in HPE OneView.EnvironmentalConfiguration
containing the environment configuration
for the switch.public SwitchStatistics getSwitchStatistics(RestParams params, String resourceId)
SwitchClient
getSwitchStatistics
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for switch as seen in HPE OneView.SwitchStatistics
containing the statistics for the switch.public SwitchPortStatistics getSwitchPortStatistics(RestParams params, String resourceId, String portName)
SwitchClient
getSwitchPortStatistics
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for switch as seen in HPE OneView.portName
- The port name as seen in HPE OneView for which the statistics
data should be retrieved.SwitchPortStatistics
containing the statistics for a specific switch port.public Switch getSwitchByName(RestParams params, String name)
SwitchClient
getSwitchByName
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the switch name as seen in HPE OneView.Switch
containing the switch details.public String getId(RestParams params, String name)
SwitchClient
getId
in interface SwitchClient
params
- The RestParams
is a structure containing the connection details.name
- The resourceName is the switch name as seen in HPE OneView.Copyright © 2016. All rights reserved.