public class ServerHardwareClientImpl extends Object implements ServerHardwareClient
Modifier | Constructor and Description |
---|---|
protected |
ServerHardwareClientImpl(HttpRestClient restClient,
ResourceAdaptor adaptor,
TaskMonitorManager taskMonitor) |
Modifier and Type | Method and Description |
---|---|
TaskResourceV2 |
createServerHardware(RestParams params,
AddServer addServerDto,
boolean aSync)
This module aids in adding a rack-mount server for management by the appliance.
|
TaskResourceV2 |
deleteServerHardware(RestParams params,
String resourceId,
boolean aSync)
The module aids in deleting a server hardware for the specified server hardware
resource identifier.
|
ServerHardwareCollection |
getAllServerHardware(RestParams params)
The module aids in fetching the server hardware details for all the
server hardware found under the current HPE OneView.
|
static ServerHardwareClient |
getClient() |
String |
getId(RestParams params,
String name)
The module aids in fetching the server hardware resource identifier for the
server hardware name as specified in HPE OneView.
|
ServerHardware |
getServerHardware(RestParams params,
String resourceId)
The module aids in fetching the server hardware details for the specified
server hardware resource identifier.
|
BiosSettings |
getServerHardwareBios(RestParams params,
String resourceId)
This module aids in fetching the list of BIOS/UEFI values currently set
on the physical server.
|
ServerHardware |
getServerHardwareByName(RestParams params,
String destinationBay)
The module aids in fetching the server hardware details for the
server hardware name as specified in HPE OneView.
|
EnvironmentalConfiguration |
getServerHardwareEnvironmentConfiguration(RestParams params,
String resourceId)
This module aids in fetching the settings that describe the environmental
configuration (supported feature set, calibrated minimum and maximum power,
location and dimensions, ...) of the server hardware resource.
|
IloSsoUrlResult |
getServerHardwareIloSsoUrl(RestParams params,
String resourceId)
This module fetches the URL to launch a Single Sign-On (SSO) session for
the iLO web interface
|
JavaRemoteConsoleUrlResult |
getServerHardwareJavaRemoteConsoleUrl(RestParams params,
String resourceId)
This module aids in generating a Single Sign-On (SSO) session for the iLO
Java Applet console and returns the URL to launch it.
|
RemoteConsoleUrlResult |
getServerHardwareRemoteConsoleUrl(RestParams params,
String resourceId)
Generates a Single Sign-On (SSO) session for the iLO Integrated Remote
Console Application (IRC) and returns the URL to launch it.
|
UtilizationData |
getServerHardwareUtilization(RestParams params,
String resourceId)
This module aids in retrieving historical utilization data for the
specified resource, metrics, and time span.
|
EnvironmentalConfiguration |
updateServerHardwareEnvironmentConfiguration(RestParams params,
String resourceId,
EnvironmentalConfigurationUpdate environmentalConfigurationUpdate)
This module aids in updating/setting the calibrated max power of an
unmanaged or unsupported server hardware resource.
|
TaskResourceV2 |
updateServerHardwareMpFirmwareVersion(RestParams params,
String resourceId,
boolean aSync)
Updates the iLO firmware on a physical server to a minimum iLO
firmware version required by HPE OneView to manage the server.
|
TaskResourceV2 |
updateServerHardwarePowerState(RestParams params,
String resourceId,
ServerPowerControlRequest serverPowerControlRequestDto,
boolean aSync)
Requests a power operation to change the power state of the physical server.
|
TaskResourceV2 |
updateServerHardwareRefreshState(RestParams params,
String resourceId,
RefreshStateRequest refreshStateRequest,
boolean aSync)
Refreshes the server hardware to fix configuration issues.
|
protected ServerHardwareClientImpl(HttpRestClient restClient, ResourceAdaptor adaptor, TaskMonitorManager taskMonitor)
public static ServerHardwareClient getClient()
public ServerHardware getServerHardware(RestParams params, String resourceId)
ServerHardwareClient
getServerHardware
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.ServerHardware
containing the server hardware details.public ServerHardware getServerHardwareByName(RestParams params, String destinationBay)
ServerHardwareClient
getServerHardwareByName
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.destinationBay
- The destinationBay is the server hardware name as seen in HPE OneView.ServerHardware
containing the server hardware details.public ServerHardwareCollection getAllServerHardware(RestParams params)
ServerHardwareClient
getAllServerHardware
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.ServerHardwareCollection
containing a collection of server hardware details.public TaskResourceV2 createServerHardware(RestParams params, AddServer addServerDto, boolean aSync)
ServerHardwareClient
createServerHardware
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.addServerDto
- Details of the server hardware.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.public TaskResourceV2 deleteServerHardware(RestParams params, String resourceId, boolean aSync)
ServerHardwareClient
deleteServerHardware
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.public BiosSettings getServerHardwareBios(RestParams params, String resourceId)
ServerHardwareClient
getServerHardwareBios
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.BiosSettings
containing the collection of bios settings state details.public EnvironmentalConfiguration getServerHardwareEnvironmentConfiguration(RestParams params, String resourceId)
ServerHardwareClient
getServerHardwareEnvironmentConfiguration
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.EnvironmentalConfiguration
containing the environmental configuration details.public EnvironmentalConfiguration updateServerHardwareEnvironmentConfiguration(RestParams params, String resourceId, EnvironmentalConfigurationUpdate environmentalConfigurationUpdate)
ServerHardwareClient
updateServerHardwareEnvironmentConfiguration
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.environmentalConfigurationUpdate
- Details of the environmental configuration.EnvironmentalConfiguration
containing the environmental configuration details.public IloSsoUrlResult getServerHardwareIloSsoUrl(RestParams params, String resourceId)
ServerHardwareClient
getServerHardwareIloSsoUrl
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.IloSsoUrlResult
containing the iLO SSO URL details.public JavaRemoteConsoleUrlResult getServerHardwareJavaRemoteConsoleUrl(RestParams params, String resourceId)
ServerHardwareClient
Note: this is not supported on G7/iLO3 or earlier servers.
getServerHardwareJavaRemoteConsoleUrl
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.JavaRemoteConsoleUrlResult
containing the Java remote console URL details.public TaskResourceV2 updateServerHardwareMpFirmwareVersion(RestParams params, String resourceId, boolean aSync)
ServerHardwareClient
updateServerHardwareMpFirmwareVersion
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.public TaskResourceV2 updateServerHardwarePowerState(RestParams params, String resourceId, ServerPowerControlRequest serverPowerControlRequestDto, boolean aSync)
ServerHardwareClient
updateServerHardwarePowerState
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.serverPowerControlRequestDto
- This is a object containing the ServerPowerControlRequest details.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.public TaskResourceV2 updateServerHardwareRefreshState(RestParams params, String resourceId, RefreshStateRequest refreshStateRequest, boolean aSync)
ServerHardwareClient
updateServerHardwareRefreshState
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.refreshStateRequest
- This is a object containing the refresh state request details.aSync
- Flag input to process request asynchronously or synchronously.TaskResourceV2
which returns the task status for the process.public RemoteConsoleUrlResult getServerHardwareRemoteConsoleUrl(RestParams params, String resourceId)
ServerHardwareClient
getServerHardwareRemoteConsoleUrl
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.RemoteConsoleUrlResult
containing the remote console URL details.public UtilizationData getServerHardwareUtilization(RestParams params, String resourceId)
ServerHardwareClient
getServerHardwareUtilization
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.resourceId
- The resource identifier for server hardware as seen in HPE OneView.UtilizationData
containing the utilization data details.public String getId(RestParams params, String name)
ServerHardwareClient
getId
in interface ServerHardwareClient
params
- The RestParams
is a structure containing the connection details.name
- The resourceName is the server hardware name as seen in HPE OneView.Copyright © 2016. All rights reserved.