public class UcsSelectServer
extends java.lang.Object
Selects UCS Server from a Server Pool or a List of Servers according to conditions specified.
This task allows user to decide whether Server will be selected from the selected Server pools or List of Servers. Once a list of Servers is picked, it will check for the conditions specified. These conditions include checking for number of CPUs on the Server, Total Memory on the Server. User can also specify if only UnAssociated Servers should be included.
Once a list of Servers which satisfies all the user conditions is created, first server from the list will be picked. That Server Dn will be set as an output for the task.
Modifier | Constructor and Description |
---|---|
protected |
UcsSelectServer() |
|
UcsSelectServer(CuicServer server) |
Modifier and Type | Method and Description |
---|---|
UcsSelectServerResponse |
execute() |
java.lang.String |
getAccountName() |
java.lang.String |
getCoresEnabled() |
CuicServer |
getCuicServer() |
java.lang.String |
getServerList() |
java.lang.String |
getServerPoolList() |
java.lang.String |
getServerScope() |
java.lang.String |
getTotCPUsCount() |
java.lang.String |
getTotMemoryCount() |
boolean |
isBladeAssocStatus() |
boolean |
isUseForSanBoot() |
void |
setAccountName(java.lang.String accountName)
Select UCSM Account Name
|
void |
setBladeAssocStatus(boolean bladeAssocStatus)
Check this option to include only unassociated servers in the server selection(if required)
|
void |
setCoresEnabled(java.lang.String coresEnabled)
Specify minimum enabled cores the server should contain(if required)
|
void |
setCuicServer(CuicServer api) |
void |
setServerList(java.lang.String serverList)
Select one or more servers from the list
Set this value only when serverScope equals to Include ServersAccepts value from list type ucsServerListByAcc
|
void |
setServerPoolList(java.lang.String serverPoolList)
Select one or more server pools from the list
Set this value only when serverScope equals to Include Server PoolsAccepts value from list type ucsServerPoolListByAcc
|
void |
setServerScope(java.lang.String serverScope)
Select Server/Server-Pool for server selection scope
|
void |
setTotCPUsCount(java.lang.String totCPUsCount)
Specify minimum number of CPUs the server should contain(if required)
|
void |
setTotMemoryCount(java.lang.String totMemoryCount)
Specify minimum memory the server should contain(if required)
|
void |
setUseForSanBoot(boolean useForSanBoot)
Check this option to include only servers which contain atleast one FCoE capable interface card(if required)
|
protected UcsSelectServer()
public UcsSelectServer(CuicServer server)
public void setCuicServer(CuicServer api)
public CuicServer getCuicServer()
public java.lang.String getAccountName()
public java.lang.String getServerScope()
public java.lang.String getServerPoolList()
public java.lang.String getServerList()
public boolean isBladeAssocStatus()
public boolean isUseForSanBoot()
public java.lang.String getTotCPUsCount()
public java.lang.String getTotMemoryCount()
public java.lang.String getCoresEnabled()
public void setAccountName(java.lang.String accountName)
public void setServerScope(java.lang.String serverScope)
public void setServerPoolList(java.lang.String serverPoolList)
public void setServerList(java.lang.String serverList)
public void setBladeAssocStatus(boolean bladeAssocStatus)
public void setUseForSanBoot(boolean useForSanBoot)
public void setTotCPUsCount(java.lang.String totCPUsCount)
public void setTotMemoryCount(java.lang.String totMemoryCount)
public void setCoresEnabled(java.lang.String coresEnabled)
public UcsSelectServerResponse execute() throws java.lang.Exception
java.lang.Exception