@Override public void setSbbContext(SbbContext sbbContext) { this.sbbContext = (SbbContextExt) sbbContext; this.tracer = this.sbbContext.getTracer(this.className); }
public void setSbbContext(SbbContext context) { this.sbbContext = (SbbContextExt) context; this.tracer = sbbContext.getTracer("CS-RF-SMPL"); }
public void setSbbContext(SbbContext context) { this.sbbContextExt = (SbbContextExt) context; this.tracer = sbbContextExt.getTracer("CS-CDRG"); }
private Tracer getTracer() { if (tracer == null) { tracer = sbbContext.getTracer(getClass().getSimpleName()); } return tracer; }
public void setSbbContext(SbbContext context) { this.sbbContext = (SbbContextExt) context; this.tracer = sbbContext.getTracer("CS-RF-HTTP"); try { Context ctx = (Context) new InitialContext().lookup("java:comp/env"); httpClientAci = (HttpClientActivityContextInterfaceFactory) ctx.lookup("slee/resources/http-client/acifactory"); raSbbInterface = (HttpClientResourceAdaptorSbbInterface) ctx.lookup("slee/resources/http-client/sbbinterface"); httpURLString = (String) ctx.lookup("HTTPURL"); } catch (NamingException ne) { tracer.severe("Could not set SBB context:", ne); } }
@Override public void setSbbContext(SbbContext arg0) { sbbContextExt = (SbbContextExt) arg0; if (tracer == null) tracer = sbbContextExt.getTracer(getClass().getSimpleName()); jdbcRA = (JdbcResourceAdaptorSbbInterface) this.sbbContextExt .getResourceAdaptorInterface(jdbcRATypeID, jdbcRALink); jdbcACIF = (JdbcActivityContextInterfaceFactory) this.sbbContextExt .getActivityContextInterfaceFactory(jdbcRATypeID); }
public void setSbbContext(SbbContext context) { sbbContext = (SbbContextExt) context; if (tracer == null) { tracer = this.sbbContext.getTracer("RESTClientEnabler"); } this.httpClientActivityContextInterfaceFactory = (HttpClientActivityContextInterfaceFactory) sbbContext .getActivityContextInterfaceFactory(HttpClientActivityContextInterfaceFactory.RESOURCE_ADAPTOR_TYPE_ID); this.httpProvider = (HttpClientResourceAdaptorSbbInterface) sbbContext .getResourceAdaptorInterface( HttpClientResourceAdaptorSbbInterface.RESOURCE_ADAPTOR_TYPE_ID, "HttpClientResourceAdaptor"); }
public void setSbbContext(SbbContext context) { sbbContext = (SbbContextExt) context; if (tracer == null) { tracer = this.sbbContext.getTracer("RESTClientEnabler"); } this.httpClientActivityContextInterfaceFactory = (HttpClientActivityContextInterfaceFactory) sbbContext .getActivityContextInterfaceFactory(HttpClientActivityContextInterfaceFactory.RESOURCE_ADAPTOR_TYPE_ID); this.httpProvider = (HttpClientResourceAdaptorSbbInterface) sbbContext .getResourceAdaptorInterface( HttpClientResourceAdaptorSbbInterface.RESOURCE_ADAPTOR_TYPE_ID, "HttpClientResourceAdaptor"); }
@Override public void setSbbContext(SbbContext context) { sbbContextExt = (SbbContextExt) context; if (tracer == null) { tracer = sbbContextExt.getTracer("CS-JDBC"); } jdbcRA = (JdbcResourceAdaptorSbbInterface) this.sbbContextExt.getResourceAdaptorInterface(jdbcRATypeID, jdbcRALink); jdbcACIF = (JdbcActivityContextInterfaceFactory) this.sbbContextExt.getActivityContextInterfaceFactory(jdbcRATypeID); }
@Override public void setSbbContext(SbbContext sbbContext) { this.sbbContext = (SbbContextExt) sbbContext; try { Context ctx = (Context) new InitialContext().lookup("java:comp/env"); this.mapAcif = (MAPContextInterfaceFactory) ctx.lookup("slee/resources/map/2.0/acifactory"); this.mapProvider = (MAPProvider) ctx.lookup("slee/resources/map/2.0/provider"); this.mapParameterFactory = this.mapProvider.getMAPParameterFactory(); this.logger = this.sbbContext.getTracer(AlertSbb.class.getSimpleName()); this.persistence = (PersistenceRAInterface) this.sbbContext.getResourceAdaptorInterface(PERSISTENCE_ID, PERSISTENCE_LINK); this.scheduler = (SchedulerRaSbbInterface) this.sbbContext.getResourceAdaptorInterface(SCHEDULER_ID, SCHEDULER_LINK); } catch (Exception ne) { logger.severe("Could not set SBB context:", ne); } }
public void setSbbContext(SbbContext context) { this.sbbContextExt = (SbbContextExt) context; this.tracer = sbbContextExt.getTracer("CS-Core"); this.timerFacility = this.sbbContextExt.getTimerFacility(); ResourceAdaptorTypeID raTypeID = new ResourceAdaptorTypeID("Diameter Ro", "java.net", "0.8.1"); this.roProvider = (RoProvider) sbbContextExt.getResourceAdaptorInterface(raTypeID, "DiameterRo"); //this.roAcif = (RoActivityContextInterfaceFactory) sbbContextExt.getActivityContextInterfaceFactory(raTypeID); this.avpFactory = this.roProvider.getRoAvpFactory(); }
@Override public void setSbbContext(SbbContext sbbContext) { this.sbbContext = (SbbContextExt) sbbContext; try { Context ctx = (Context) new InitialContext() .lookup("java:comp/env"); this.mapAcif = (MAPContextInterfaceFactory) ctx .lookup("slee/resources/map/2.0/acifactory"); this.mapProvider = (MAPProvider) ctx .lookup("slee/resources/map/2.0/provider"); this.mapParameterFactory = this.mapProvider.getMAPParameterFactory(); this.mapErrorMessageFactory = this.mapProvider.getMAPErrorMessageFactory(); this.sccpParameterFact = new ParameterFactoryImpl(); // this.smppServerSessions = (SmppSessions) ctx // .lookup("slee/resources/smpp/server/1.0/provider"); this.persistence = (PersistenceRAInterface) this.sbbContext.getResourceAdaptorInterface(PERSISTENCE_ID, PERSISTENCE_LINK); this.logger = this.sbbContext.getTracer(this.className); itsMProcRa = (MProcRuleRaProvider) this.sbbContext.getResourceAdaptorInterface(MPROC_RATYPE_ID, MPROC_RA_LINK); } catch (Exception ne) { logger.severe("Could not set SBB context:", ne); } // TODO : Handle proper error }