use of org.mobicents.slee.ChildRelationExt in project charging-server by RestComm.
the class DiameterChargingServerSbb method getDatasource.
protected DataSource getDatasource() throws IllegalArgumentException, NullPointerException, SLEEException, CreateException {
ChildRelationExt cre = (ChildRelationExt) getDatasourceChildRelation();
SbbLocalObjectExt sbbLocalObject = cre.get(DATASOURCE_CHILD_NAME);
if (sbbLocalObject == null) {
sbbLocalObject = cre.create(DATASOURCE_CHILD_NAME);
}
return (DataSource) sbbLocalObject;
}
use of org.mobicents.slee.ChildRelationExt in project charging-server by RestComm.
the class DiameterChargingServerSbb method getRatingEngineManager.
protected RatingEngineClient getRatingEngineManager() throws IllegalArgumentException, NullPointerException, SLEEException, CreateException {
ChildRelationExt cre = (ChildRelationExt) getRatingEngineChildRelation();
SbbLocalObjectExt sbbLocalObject = cre.get(RATING_CHILD_NAME);
if (sbbLocalObject == null) {
sbbLocalObject = cre.create(RATING_CHILD_NAME);
}
return (RatingEngineClient) sbbLocalObject;
}
use of org.mobicents.slee.ChildRelationExt in project smscgateway by RestComm.
the class SubmitCommonSbb method getChargingSbbObject.
protected ChargingSbbLocalObject getChargingSbbObject() {
ChildRelationExt relation = getChargingSbb();
ChargingSbbLocalObject ret = (ChargingSbbLocalObject) relation.get(ChildRelationExt.DEFAULT_CHILD_NAME);
if (ret == null) {
try {
ret = (ChargingSbbLocalObject) relation.create(ChildRelationExt.DEFAULT_CHILD_NAME);
} catch (Exception e) {
if (this.logger.isSevereEnabled()) {
this.logger.severe("Exception while trying to creat ChargingSbb child", e);
}
}
}
return ret;
}
use of org.mobicents.slee.ChildRelationExt in project smscgateway by RestComm.
the class RxSmppServerSbb method getRxSmppServerChildSbbObject.
private RxSmppServerChildLocalObject getRxSmppServerChildSbbObject() {
ChildRelationExt relation = getRxSmppServerChildSbb();
RxSmppServerChildLocalObject ret = (RxSmppServerChildLocalObject) relation.get(ChildRelationExt.DEFAULT_CHILD_NAME);
if (ret == null) {
try {
ret = (RxSmppServerChildLocalObject) relation.create(ChildRelationExt.DEFAULT_CHILD_NAME);
} catch (Exception e) {
if (this.logger.isSevereEnabled()) {
this.logger.severe("Exception while trying to creat RxSmppServerSbb child", e);
}
}
}
return ret;
}
use of org.mobicents.slee.ChildRelationExt in project smscgateway by RestComm.
the class SriSbb method getMtSbbObject.
private MtSbbLocalObject getMtSbbObject() {
ChildRelationExt relation = getMtSbb();
MtSbbLocalObject ret = (MtSbbLocalObject) relation.get(ChildRelationExt.DEFAULT_CHILD_NAME);
if (ret == null) {
try {
ret = (MtSbbLocalObject) relation.create(ChildRelationExt.DEFAULT_CHILD_NAME);
} catch (Exception e) {
if (this.logger.isSevereEnabled()) {
this.logger.severe("Exception while trying to creat MtSbb child", e);
}
}
}
return ret;
}
Aggregations