/** * Get the component description. * @return The component description. */ public IComponentDescription getComponentDescription() { return interpreter.getComponentDescription(); }
public void run() { addStep(new StepInfo(step, ret, null, getComponentDescription().getCause().createNext()));//step.toString()))); }
/** * Add a new step. */ protected StepInfo removeStep() { assert steps!=null && !steps.isEmpty(); StepInfo ret = steps.remove(0); if(steps.isEmpty()) steps = null; // if(componentlisteners!=null) // { // notifyListeners(new ComponentChangeEvent(IComponentChangeEvent.EVENT_TYPE_DISPOSAL, TYPE_STEP, ret.getFirstEntity().getClass().getName(), // ret.getFirstEntity().toString(), microagent.getComponentIdentifier(), getComponentDescription().getCreationTime(), getStepDetails((IComponentStep)ret.getFirstEntity()))); // } // notifyListeners(new ChangeEvent(this, "removeStep", Integer.valueOf(0))); if(hasEventTargets(PublishTarget.TOALL, PublishEventLevel.FINE)) { MonitoringEvent event = new MonitoringEvent(getComponentIdentifier(), getComponentDescription().getCreationTime(), ret.getStep().toString(), IMonitoringEvent.EVENT_TYPE_DISPOSAL+"."+TYPE_STEP, ret.getCause(), System.currentTimeMillis(), PublishEventLevel.FINE); event.setProperty("sourcename", ret.getStep().getClass().getName()); event.setProperty("details", getStepDetails(ret.getStep())); publishEvent(event, PublishTarget.TOALL); } return ret; }
MonitoringEvent event = new MonitoringEvent(getComponentIdentifier(), getComponentDescription().getCreationTime(), step.getStep().toString(), IMonitoringEvent.EVENT_TYPE_CREATION+"."+TYPE_STEP, step.getCause(), System.currentTimeMillis(), PublishEventLevel.FINE); event.setProperty("sourcename", step.getStep().getClass().getName()); event.setProperty("details", getStepDetails(step.getStep()));
publishEvent(new MonitoringEvent(getComponentIdentifier(), getComponentDescription().getCreationTime(), step.getStep().toString(), IMonitoringEvent.EVENT_TYPE_CREATION+"." +IMonitoringEvent.SOURCE_CATEGORY_EXECUTION, step.getCause(), System.currentTimeMillis(), PublishEventLevel.FINE), PublishTarget.TOALL); publishEvent(new MonitoringEvent(getComponentIdentifier(), getComponentDescription().getCreationTime(), step.getStep().toString(), IMonitoringEvent.EVENT_TYPE_DISPOSAL+"." +IMonitoringEvent.SOURCE_CATEGORY_EXECUTION, step.getCause(), System.currentTimeMillis(), PublishEventLevel.FINE), PublishTarget.TOALL);
getComponentDescription().getCause()!=null? getComponentDescription().getCause().createNext()/*step.toString())*/: null; addStep(new StepInfo(step, ret, sc, cause));