Produttore : HP
File Size : 7.2 mb
File Nome :
|
da questo dispositivo ha anche altre istruzioni :
Facilità d'uso
•
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
... Questo manuale è adatto anche per i modelli :
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)