@Override public void setResourceAdaptorContext(ResourceAdaptorContext raContext) { this.tracer = raContext.getTracer(getClass().getSimpleName()); this.raContext = raContext; this.eventIdCache = new EventIDCache(this.raContext, EVENT_VENDOR, EVENT_VERSION); this.sleeTransactionManager = this.raContext.getSleeTransactionManager(); this.sleeEndpoint = this.raContext.getSleeEndpoint(); this.usageParameters = (SchedulerRaUsageParameters) this.raContext.getDefaultUsageParameterSet(); }
if(raContext.getSleeTransactionManager().getTransaction() != null) { suspended = raContext.getSleeTransactionManager().suspend(); if(suspended != null) { try { raContext.getSleeTransactionManager().resume(suspended);
Object o = getActivity(handle); if(o == null) { Transaction t = raContext.getSleeTransactionManager().getTransaction(); throw new IllegalStateException("TX[ "+t+" ] No activity for handle: "+handle);
private void initActivitiesMgmt() { final DiameterRAInterface lst = this; if (this.ftRAContext.isLocal()) { // local mgmt; if (tracer.isInfoEnabled()) { tracer.info(raContext.getEntityName() + " -- running in LOCAL mode."); } this.activities = new LocalDiameterActivityManagement(this.raContext, activityRemoveDelay); } else { if (tracer.isInfoEnabled()) { tracer.info(raContext.getEntityName() + " -- running in CLUSTER mode."); } final org.mobicents.slee.resource.cluster.ReplicatedData<String, DiameterActivity> clusteredData = this.ftRAContext.getReplicateData(true); // get special one this.activities = new ClusteredDiameterActivityManagementImpl(this.ftRAContext, activityRemoveDelay,this.raContext.getTracer(""), stack, this.raContext.getSleeTransactionManager(), clusteredData, lst); } }
private void initActivitiesMgmt() { final DiameterRAInterface lst = this; if (this.ftRAContext.isLocal()) { // local mgmt; if (tracer.isInfoEnabled()) { tracer.info(raContext.getEntityName() + " -- running in LOCAL mode."); } this.activities = new LocalDiameterActivityManagement(this.raContext, activityRemoveDelay); } else { if (tracer.isInfoEnabled()) { tracer.info(raContext.getEntityName() + " -- running in CLUSTER mode."); } final org.mobicents.slee.resource.cluster.ReplicatedData<String, DiameterActivity> clusteredData = this.ftRAContext.getReplicateData(true); // get special one this.activities = new ClusteredDiameterActivityManagementImpl(this.ftRAContext, activityRemoveDelay,this.raContext.getTracer(""), stack, this.raContext.getSleeTransactionManager(), clusteredData, lst); } }
Transaction t = raContext.getSleeTransactionManager().getTransaction(); throw new IllegalStateException("TX[ "+t+" ] No activity for handle: "+handle);
final org.mobicents.slee.resource.cluster.ReplicatedData<String, DiameterActivity> clusteredData = this.ftRAContext.getReplicateData(true); this.activities = new AbstractClusteredDiameterActivityManagement(this.ftRAContext, activityRemoveDelay,this.raContext.getTracer(""), stack, this.raContext.getSleeTransactionManager(), clusteredData) {
this.activities = new AbstractClusteredDiameterActivityManagement(this.ftRAContext, activityRemoveDelay,this.raContext.getTracer(""), stack, this.raContext.getSleeTransactionManager(), clusteredData) {
this.activities = new AbstractClusteredDiameterActivityManagement(this.ftRAContext, activityRemoveDelay,this.raContext.getTracer(""), stack, this.raContext.getSleeTransactionManager(), clusteredData) {
this.activities = new AbstractClusteredDiameterActivityManagement(this.ftRAContext, activityRemoveDelay,this.raContext.getTracer(""), stack, this.raContext.getSleeTransactionManager(), clusteredData) {
final org.mobicents.slee.resource.cluster.ReplicatedData<String, DiameterActivity> clusteredData = this.ftRAContext.getReplicateData(true); this.activities = new AbstractClusteredDiameterActivityManagement(this.ftRAContext, activityRemoveDelay,this.raContext.getTracer(""), stack, this.raContext.getSleeTransactionManager(), clusteredData) {
.getReplicateData(true); this.activities = new AbstractClusteredDiameterActivityManagement(this.ftRAContext, activityRemoveDelay,this.raContext.getTracer(""), stack, this.raContext.getSleeTransactionManager(), clusteredData) {
this.activities = new AbstractClusteredDiameterActivityManagement(this.ftRAContext, activityRemoveDelay,this.raContext.getTracer(""), stack, this.raContext.getSleeTransactionManager(), clusteredData) {
this.activities = new AbstractClusteredDiameterActivityManagement(this.ftRAContext, activityRemoveDelay,this.raContext.getTracer(""), stack, this.raContext.getSleeTransactionManager(), clusteredData) {