Войти:
Оценок - 0, средний балл: 0 ( )

Инструкция по эксплуатации HP, модель HP Matrix Operating Environment w/Insight Control 24x7 Supp Flexible Lic

Производитель: HP
Размер: 7.2 mb
Название файла:
Язык инструкции:ende
Перейти к скачиванию



К этому устройству также есть другие инструкции:

Фрагмент инструкции



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


...

Эта инструкция также подходит к моделям:
Программное обеспечение - HP Matrix Operating Environment w/Insight Control BL 24x7 Supp 1 Server Lic (7.2 mb)
Программное обеспечение - HP Matrix Operating Environment w/Insight Control 24x7 Supp 1 Server Lic (7.2 mb)
Программное обеспечение - HP Matrix Operating Environment w/Insight Control 24x7 Supp E-LTU (7.2 mb)
Программное обеспечение - HP Matrix Operating Environment w/Insight Control 24x7 Supp Tracking Lic (7.2 mb)

Напишите ваш отзыв об устройстве



Текст отзыва
Ваше имя:
Введите две цифры:
capcha





Категории