/** * */ public void publishToolPlanEvent(String evtype) { if(getInterpreter().hasEventTargets(PublishTarget.TOSUBSCRIBERS, PublishEventLevel.FINE)) { long time = System.currentTimeMillis();//getClockService().getTime(); MonitoringEvent mev = new MonitoringEvent(); mev.setSourceIdentifier(getInterpreter().getComponentIdentifier()); mev.setTime(time); PlanInfo info = PlanInfo.createPlanInfo(this); mev.setType(evtype+"."+IMonitoringEvent.SOURCE_CATEGORY_PLAN); // mev.setProperty("sourcename", element.toString()); mev.setProperty("sourcetype", info.getType()); mev.setProperty("details", info); mev.setLevel(PublishEventLevel.FINE); getInterpreter().publishEvent(mev, PublishTarget.TOSUBSCRIBERS); } }
if(checkCapa(pi.getType())) plans.add(pi); PlanInfo oldinfo = (PlanInfo)allplans.remove(index); plans.remove(newinfo); newinfo.setType(oldinfo.getType()); // Hack!!! Keep capability information which is unavailable for modified events. allplans.add(newinfo); if(checkCapa(newinfo.getType())) plans.add(newinfo);
PlanInfo info = PlanInfo.createPlanInfo(plan); MonitoringEvent ev = new MonitoringEvent(getComponentIdentifier(), getComponentDescription().getCreationTime(), IMonitoringEvent.EVENT_TYPE_CREATION+"."+IMonitoringEvent.SOURCE_CATEGORY_PLAN, System.currentTimeMillis(), PublishEventLevel.FINE); ev.setSourceDescription(plan.toString());
return new PlanInfo(id, type, plan.getLifecycleState().toString());
/** * Publish a tool event. */ public void publishToolPlanEvent(String evtype) { if(getAgent().getComponentFeature0(IMonitoringComponentFeature.class)!=null && getAgent().getComponentFeature(IMonitoringComponentFeature.class).hasEventTargets(PublishTarget.TOSUBSCRIBERS, PublishEventLevel.FINE)) { long time = System.currentTimeMillis();//getClockService().getTime(); MonitoringEvent mev = new MonitoringEvent(); mev.setSourceIdentifier(getAgent().getComponentIdentifier()); mev.setTime(time); PlanInfo info = PlanInfo.createPlanInfo(this); mev.setType(evtype+"."+IMonitoringEvent.SOURCE_CATEGORY_PLAN); // mev.setProperty("sourcename", element.toString()); mev.setProperty("sourcetype", info.getType()); mev.setProperty("details", info); mev.setLevel(PublishEventLevel.FINE); getAgent().getComponentFeature(IMonitoringComponentFeature.class).publishEvent(mev, PublishTarget.TOSUBSCRIBERS); } }
if(checkCapa(pi.getType())) plans.add(pi); PlanInfo oldinfo = (PlanInfo)allplans.remove(index); plans.remove(newinfo); newinfo.setType(oldinfo.getType()); // Hack!!! Keep capability information which is unavailable for modified events. allplans.add(newinfo); if(checkCapa(newinfo.getType())) plans.add(newinfo);
PlanInfo info = PlanInfo.createPlanInfo(plan); MonitoringEvent ev = new MonitoringEvent(getComponent().getComponentIdentifier(), getComponent().getComponentDescription().getCreationTime(), IMonitoringEvent.EVENT_TYPE_CREATION+"."+IMonitoringEvent.SOURCE_CATEGORY_PLAN, System.currentTimeMillis(), PublishEventLevel.FINE); ev.setSourceDescription(plan.toString());
return new PlanInfo(id, type, plan.getLifecycleState().toString());
PlanInfo info = PlanInfo.createPlanInfo(plan); MonitoringEvent ev = new MonitoringEvent(getComponent().getComponentIdentifier(), getComponent().getComponentDescription().getCreationTime(), IMonitoringEvent.EVENT_TYPE_CREATION+"."+IMonitoringEvent.SOURCE_CATEGORY_PLAN, System.currentTimeMillis(), PublishEventLevel.FINE); ev.setSourceDescription(plan.toString());
PlanInfo info = PlanInfo.createPlanInfo(plan); MonitoringEvent ev = new MonitoringEvent(getComponent().getComponentIdentifier(), getComponent().getComponentDescription().getCreationTime(), IMonitoringEvent.EVENT_TYPE_CREATION+"."+IMonitoringEvent.SOURCE_CATEGORY_PLAN, System.currentTimeMillis(), PublishEventLevel.FINE); ev.setSourceDescription(plan.toString());