public void exceptionOccurred(Exception exception) { CallAccess.setCurrentInvocation(cur); CallAccess.setNextInvocation(next); // never happens ReturnValueResultListener.super.exceptionOccurred(exception); } });
CallAccess.setCurrentInvocation(scn);
CallAccess.setCurrentInvocation(sic.getServiceCall()); // next becomes current CallAccess.setCurrentInvocation(sic.getLastServiceCall()); CallAccess.setNextInvocation(sic.getServiceCall()); CallAccess.setCurrentInvocation(sic.getLastServiceCall()); // current is last
public void resultAvailable(IMonitoringService monser) { CallAccess.setCurrentInvocation(cur); CallAccess.setNextInvocation(next); if(monser!=null) { if(getComponent().hasEventTargets(PublishTarget.TOALL, PublishEventLevel.MEDIUM)) { // todo: clock? long end = System.currentTimeMillis(); ServiceCall sc = sic.getServiceCall(); Cause cause = sc==null? null: sc.getCause(); monser.publishEvent(new MonitoringEvent(getComponent().getComponentIdentifier(), getComponent().getComponentDescription().getCreationTime(), sic.getMethod().getDeclaringClass().getName()+"."+sic.getMethod().getName(), IMonitoringEvent.TYPE_SERVICECALL_END, cause, end, PublishEventLevel.MEDIUM)); } } ReturnValueResultListener.super.customResultAvailable(null); }
CallAccess.setCurrentInvocation(sic.getNextServiceCall()); // next becomes current CallAccess.setCurrentInvocation(sic.getCurrentServiceCall()); CallAccess.setNextInvocation(sic.getNextServiceCall()); CallAccess.setCurrentInvocation(sic.getCurrentServiceCall()); // current will be old current
sc.setProperty(ServiceCall.INHERIT, Boolean.TRUE); CallAccess.setCurrentInvocation(sc);
CallAccess.setCurrentInvocation(cur); CallAccess.setNextInvocation(next);
sc.setProperty(ServiceCall.INHERIT, Boolean.TRUE); CallAccess.setCurrentInvocation(sc);
if(sc!=null && ServiceCall.getCurrentInvocation()==null) CallAccess.setCurrentInvocation(sc);
CallAccess.setCurrentInvocation(scn); sc = scn;