public interface SwitchClient
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.
|
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.
|
Switch getSwitch(RestParams params, String resourceId)
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.SwitchCollection getAllSwitches(RestParams params)
params
- The RestParams
is a structure containing the connection details.SwitchCollection
containing the collection of switch details.TaskResourceV2 createSwitch(RestParams params, Switch switchObj, boolean aSync)
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.TaskResourceV2 updateSwitch(RestParams params, String resourceId, Switch switchDto, boolean aSync)
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.TaskResourceV2 deleteSwitch(RestParams params, String resourceId, boolean aSync)
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.TaskResourceV2 refreshSwitch(RestParams params, String resourceId, boolean aSync)
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.EnvironmentalConfiguration getSwitchEnvironmentalConfiguration(RestParams params, String resourceId)
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.SwitchStatistics getSwitchStatistics(RestParams params, String resourceId)
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.SwitchPortStatistics getSwitchPortStatistics(RestParams params, String resourceId, String portName)
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.Switch getSwitchByName(RestParams params, String name)
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.String getId(RestParams params, String name)
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.