public class InterconnectsClientImpl extends Object implements InterconnectsClient
Modifier | Constructor and Description |
---|---|
protected |
InterconnectsClientImpl(InterconnectAdaptor adaptor,
TaskAdaptor taskAdaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
InterconnectsCollection |
getAllInterconnects(RestParams params)
The module aids in fetching the interconnects details for all the
interconnects found under the current HPE OneView.
|
static InterconnectsClient |
getClient() |
String |
getId(RestParams params,
String name)
The module aids in fetching the interconnect driver resource identifier for
the interconnect name as specified in HPE OneView.
|
Interconnects |
getInterconnectById(RestParams params,
String resourceId)
The module aids in fetching the interconnect details for the specified
interconnect resource identifier.
|
Interconnects |
getInterconnectByName(RestParams params,
String interconnectName)
The module aids in fetching the interconnect details for the interconnect name
as specified in HPE OneView.
|
List<NameServer> |
getInterconnectNamedServers(RestParams params,
String resourceId)
Gets the named servers for an interconnect.
|
PortStatistics |
getInterconnectPortStatistics(RestParams params,
String resourceId,
String portName)
Gets the port statistics from an interconnect.
|
InterconnectsStatistics |
getInterconnectStatistics(RestParams params,
String resourceId)
Gets the statistics from an interconnect.
|
SubportStatistics |
getInterconnectSubportStatistics(RestParams params,
String resourceId,
String portName,
int subportNumber)
Gets the subport statistics from an interconnect.
|
TaskResourceV2 |
patchInterconnect(RestParams params,
String resourceId,
Patch patchDto,
boolean aSync)
Performs a specific patch operation for the given interconnect.
|
TaskResourceV2 |
resetInterconnectPortProtection(RestParams params,
String resourceId,
boolean aSync)
Triggers a reset of port protection.
|
TaskResourceV2 |
updateInterconnectPort(RestParams params,
String resourceId,
Port portDto,
boolean aSync,
boolean useJsonRequest)
Updates an interconnect port.
|
TaskResourceV2 |
updateInterconnectPorts(RestParams params,
String resourceId,
List<Port> portsDto,
boolean aSync,
boolean useJsonRequest)
Updates the interconnect ports.
|
protected InterconnectsClientImpl(InterconnectAdaptor adaptor, TaskAdaptor taskAdaptor, TaskMonitorManager taskMonitor)
public static InterconnectsClient getClient()
public Interconnects getInterconnectById(RestParams params, String resourceId)
InterconnectsClient
getInterconnectById
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for interconnect as seen in HPE OneView.Interconnects
containing the interconnect details.public InterconnectsCollection getAllInterconnects(RestParams params)
InterconnectsClient
getAllInterconnects
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.InterconnectsCollection
containing a collection of interconnects details.public Interconnects getInterconnectByName(RestParams params, String interconnectName)
InterconnectsClient
getInterconnectByName
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.interconnectName
- The interconnectName is the interconnect name as seen in HPE OneView.Interconnects
containing the interconnect details.public TaskResourceV2 patchInterconnect(RestParams params, String resourceId, Patch patchDto, boolean aSync)
InterconnectsClient
patchInterconnect
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for interconnect as seen in HPE OneView.patchDto
- This is a object containing the update to be made to existing interconnect.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public TaskResourceV2 updateInterconnectPort(RestParams params, String resourceId, Port portDto, boolean aSync, boolean useJsonRequest)
InterconnectsClient
updateInterconnectPort
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for interconnect as seen in HPE OneView.portDto
- This is a object containing the update to be made to existing
interconnect pointed to by the above mentioned resource identifier.aSync
- Flag input to process request asynchronously or synchronously.useJsonRequest
- The JsonRequest body is part of Port object which takes
in a String containing the update to be made, which is
converted to Port object using adaptor and processed.TaskResourceV2
containing the task status for the process.public TaskResourceV2 resetInterconnectPortProtection(RestParams params, String resourceId, boolean aSync)
InterconnectsClient
resetInterconnectPortProtection
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for interconnect as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
containing the task status for the process.public InterconnectsStatistics getInterconnectStatistics(RestParams params, String resourceId)
InterconnectsClient
getInterconnectStatistics
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for interconnect as seen in HPE OneView.InterconnectsStatistics
containing the interconnect statistics details.public PortStatistics getInterconnectPortStatistics(RestParams params, String resourceId, String portName)
InterconnectsClient
getInterconnectPortStatistics
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for interconnect as seen in HPE OneView.portName
- The name of the port as seen in HPE OneView.PortStatistics
containing the port statistics details.public SubportStatistics getInterconnectSubportStatistics(RestParams params, String resourceId, String portName, int subportNumber)
InterconnectsClient
getInterconnectSubportStatistics
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for interconnect as seen in HPE OneView.portName
- The name of the port as seen in HPE OneView.subportNumber
- The number of the subport as seen in HPE OneView.SubportStatistics
containing the subport statistics details.public TaskResourceV2 updateInterconnectPorts(RestParams params, String resourceId, List<Port> portsDto, boolean aSync, boolean useJsonRequest)
InterconnectsClient
updateInterconnectPorts
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for interconnect as seen in HPE OneView.portsDto
- This is an array of objects containing the update to be made to existing
interconnect ports.aSync
- Flag input to process request asynchronously or synchronously..useJsonRequest
- The JsonRequest body is part of list of Port object which takes
in a String containing the update to be made, which is
converted to an array of Port object using adaptor and processed.TaskResourceV2
containing the task status for the process.public List<NameServer> getInterconnectNamedServers(RestParams params, String resourceId)
InterconnectsClient
getInterconnectNamedServers
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for interconnect as seen in HPE OneView.public String getId(RestParams params, String name)
InterconnectsClient
getId
in interface InterconnectsClient
params
- The RestParams
is a structure containing the connection details.name
- The name is the interconnect driver name as seen in HPE OneView.Copyright © 2016. All rights reserved.