本文整理汇总了Java中eu.qualimaster.observables.IObservable.isInternal方法的典型用法代码示例。如果您正苦于以下问题:Java IObservable.isInternal方法的具体用法?Java IObservable.isInternal怎么用?Java IObservable.isInternal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eu.qualimaster.observables.IObservable
的用法示例。
在下文中一共展示了IObservable.isInternal方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handle
import eu.qualimaster.observables.IObservable; //导入方法依赖的package包/类
/**
* Handles an event of the supported event type.
*
* @param event the event to be handled
* @param state the actual system state to be modified
* @param forMainPipeline handle for main pipeline (<code>true</code>) or try handling for a
* sub-pipeline (<code>false</code>)
* @return <code>true</code> if the event was handled, <code>false</code> else
*/
private boolean handle(PipelineElementMultiObservationMonitoringEvent event, SystemState state,
boolean forMainPipeline) {
boolean done = false;
SystemPart target = determineAggregationPart(event, state, forMainPipeline);
if (null != target && !target.useThrift()) {
Object key = event.getKey();
boolean updateCapacity = false;
for (Map.Entry<IObservable, Double> ent : event.getObservations().entrySet()) {
IObservable observable = ent.getKey();
if (!observable.isInternal()) {
StateUtils.setValue(target, observable, ent.getValue(), key);
updateCapacity |= StateUtils.changesLatency(observable);
}
}
if (updateCapacity) {
StateUtils.updateCapacity(target, key, false);
}
StateUtils.checkTaskAndExecutors(target, key);
done = true;
}
return done;
}
开发者ID:QualiMaster,项目名称:Infrastructure,代码行数:32,代码来源:PipelineElementMultiObservationMonitoringEventHandler.java
示例2: handle
import eu.qualimaster.observables.IObservable; //导入方法依赖的package包/类
/**
* Handles an event of the supported event type.
*
* @param event the event to be handled
* @param state the actual system state to be modified
* @param forMainPipeline handle for main pipeline (<code>true</code>) or try handling for a
* sub-pipeline (<code>false</code>)
* @return <code>true</code> if the event was handled, <code>false</code> else
*/
private boolean handle(PipelineElementObservationMonitoringEvent event, SystemState state,
boolean forMainPipeline) {
boolean done = false;
SystemPart target = determineAggregationPart(event, state, forMainPipeline);
if (null != target && !target.useThrift()) {
Object key = event.getKey();
IObservable observable = event.getObservable();
if (!observable.isInternal()) {
StateUtils.setValue(target, observable, event.getObservation(), key);
if (StateUtils.changesLatency(observable)) {
StateUtils.updateCapacity(target, key, false);
}
}
StateUtils.checkTaskAndExecutors(target, key);
done = true;
}
return done;
}
开发者ID:QualiMaster,项目名称:Infrastructure,代码行数:28,代码来源:PipelineElementObservationMonitoringEventHandler.java
示例3: doHandle
import eu.qualimaster.observables.IObservable; //导入方法依赖的package包/类
/**
* Handles the given <code>event</code>.
*
* @param event the event
* @param state the system state
* @param pipelineName the pipeline name (may be a sub-pipeline name)
* @return the internal cause code in case that the event cannot be handled, negative or null in case error
*/
private int doHandle(AlgorithmMonitoringEvent event, SystemState state, String pipelineName) {
int cause = CAUSE_UNKNOWN;
INameMapping mapping = null;
if (null != pipelineName) { // just to be on the safe side
mapping = MonitoringManager.getNameMapping(pipelineName);
if (null != mapping) {
IObservable obs = event.getObservable();
if (!obs.isInternal()) {
cause = handle(mapping, event, state, obs);
}
} else {
cause = CAUSE_NO_MAPPING;
}
} else {
cause = CAUSE_NO_PIPELINE_NAME;
}
return cause;
}
示例4: copyObservables
import eu.qualimaster.observables.IObservable; //导入方法依赖的package包/类
/**
* Copies the observables supported by the part.
*
* @param assignedOnly whether only assigned values or all values shall be returned
* @return the observables
*/
public Map<String, Double> copyObservables(boolean assignedOnly) {
Map<String, Double> copy = new HashMap<String, Double>();
synchronized (parameterValues) {
for (IObservable observable : parameterValues.keySet()) {
if (!observable.isInternal()) {
if (!assignedOnly || (assignedOnly && hasValue(observable))) { // reduce data load
copy.put(observable.name(), getObservedValue(observable));
}
}
}
}
return copy;
}
示例5: isLinkEnabled
import eu.qualimaster.observables.IObservable; //导入方法依赖的package包/类
@Override
protected boolean isLinkEnabled(IObservable observable) {
return !EXCLUDE.contains(observable) && !observable.isInternal();
}
示例6: enablePropagation
import eu.qualimaster.observables.IObservable; //导入方法依赖的package包/类
/**
* Returns whether the given <code>observable</code> enables (explicit) propagation of values.
*
* @param observable the observable
* @return <code>true</code> for propagation, <code>false</code> else
*/
public static boolean enablePropagation(IObservable observable) {
return !observable.isInternal();
}