Login:
Votes - 0, Average rating: 0 ( )

User manual HP, model HP Matrix Operating Environment w/Insight Control 24x7 Supp Flexible Lic

Manafacture: HP
File size: 7.2 mb
File name:
Language of manual:ende
Free link for this manual available at the bottom of the page



Other manuals for this model:

manual abstract



Funktionen

Abfragen

Regeln
Die Reihenfolge, in der die Elemente aufgeführt werden, ist abgesehen vom Paketnamen nicht von
Bedeutung. Wenn der Paketname angegeben wird, muss er das erste Element in der Regeldatei
sein.
Beispiel: Regel zur Überprüfung der Serverspeicherkriterien
package com.hp.hpio.controller.policy;
import java.util.List;
import java.lang.Integer;
import com.hp._2007.ess.sw.model.infrastructureutilityschema.LogicalServer;
import com.hp._2007.ess.sw.model.infrastructureutilityschema.ComputeServer;
import com.hp.hpio.controller.wrapper.LogicalServerWrapper;
import com.hp.hpio.common.messages.HPIOBundleKey;
import com.hp.hpio.common.messages.HPIOMessage;
dialect "java" // Since we are using Java syntax with drools
/*
* INIT should be the first rule in a drl file which inserts service
* entity, resource list and result map into working memory by reading
* from PolicyExecutionVO passed to rule engine.
*
*/
/* DO NOT MODIFY */
rule "INIT"
salience 1000
when
pVO : PolicyExecutionVO();
then
insert(pVO.getAllocationEntry().getServiceEntity());
insert(pVO.getResultMap());
insert(pVO.getResourceList());
end
/*
* Rule to check memory criteria for a given service entity
* (LogicalServer) compared to list of physical resources available
* (ComputeServer)
*
*/
rule "MemorySizeCriteria"
when
$pVO : PolicyExecutionVO( );
$resLst : List();
$logicalServer : LogicalServer();
$computeServer : ComputeServer() from $resLst;
eval(memorySizeCriteria($logicalServer, $computeServer, $pVO));
then
$pVO.match($computeServer, HPIOMessage.get(HPIOBundleKey.ALLOCATION_CRITERIA_MEMORY));
end
function boolean memorySizeCriteria(
LogicalServer logicalServer,
ComputeServer computeServer,
PolicyExecutionVO pVO) {
pVO.doesNotMatch(computeServer,HPIOMessage.get(HPIOBundleKey.ALLOCATION_CRITERIA_MEMORY));
/* -------------- CUSTOM LOGIC ----------------------*/
Integer logicalMemorySizeMB = LogicalServerWrapper.getMemorySizeMi(logicalServer);
if (computeServer.getMemoryConsumedMB() == null) {
computeServer.setMemoryConsumedMB(0);
}
Integer resourceMemorySizeMB = computeServer.getMemorySizeMB() - computeServer.getMemoryConsumedMB();
if(logicalMemorySizeMB.doubleValue() <= resourceMemorySizeMB.doubleValue()){
return true;
}else{
return false;
216
Anpassbarer Zuordnungsvorgang


...

Other models in this manual:
Software - HP Matrix Operating Environment w/Insight Control BL 24x7 Supp 1 Server Lic (7.2 mb)
Software - HP Matrix Operating Environment w/Insight Control 24x7 Supp 1 Server Lic (7.2 mb)
Software - HP Matrix Operating Environment w/Insight Control 24x7 Supp E-LTU (7.2 mb)
Software - HP Matrix Operating Environment w/Insight Control 24x7 Supp Tracking Lic (7.2 mb)

Reviews



Your review
Your name:
Please, enter two numbers from picture:
capcha





Category