use of org.mobicents.slee.ChildRelationExt in project smscgateway by RestComm.
the class HrSriServerSbb method getHrSriClientSbbLocalObject.
private HrSriClientSbbLocalObject getHrSriClientSbbLocalObject() {
ChildRelationExt relation = getHrSriClientSbb();
HrSriClientSbbLocalObject ret = (HrSriClientSbbLocalObject) relation.get(ChildRelationExt.DEFAULT_CHILD_NAME);
if (ret == null) {
try {
ret = (HrSriClientSbbLocalObject) relation.create(ChildRelationExt.DEFAULT_CHILD_NAME);
} catch (Exception e) {
if (this.logger.isSevereEnabled()) {
this.logger.severe("Exception while trying to creat HrSriClientSbb child", e);
}
}
}
return ret;
}
use of org.mobicents.slee.ChildRelationExt in project smscgateway by RestComm.
the class MtCommonSbb method getRsdsSbbObject.
private RsdsSbbLocalObject getRsdsSbbObject() {
ChildRelationExt relation = getRsdsSbb();
RsdsSbbLocalObject ret = (RsdsSbbLocalObject) relation.get(ChildRelationExt.DEFAULT_CHILD_NAME);
if (ret == null) {
try {
ret = (RsdsSbbLocalObject) relation.create(ChildRelationExt.DEFAULT_CHILD_NAME);
} catch (Exception e) {
if (this.logger.isSevereEnabled()) {
this.logger.severe("Exception while trying to creat RsdsSbb child", e);
}
}
}
return ret;
}
use of org.mobicents.slee.ChildRelationExt in project charging-server by RestComm.
the class DiameterChargingServerSbb method getCDRGenerator.
protected CDRGenerator getCDRGenerator() throws IllegalArgumentException, NullPointerException, SLEEException, CreateException {
ChildRelationExt cre = (ChildRelationExt) getCDRGeneratorChildRelation();
SbbLocalObjectExt sbbLocalObject = cre.get(CDRGEN_CHILD_NAME);
if (sbbLocalObject == null) {
sbbLocalObject = cre.create(CDRGEN_CHILD_NAME);
}
return (CDRGenerator) sbbLocalObject;
}
use of org.mobicents.slee.ChildRelationExt in project charging-server by RestComm.
the class DiameterChargingServerSbb method getAccountManager.
protected AccountBalanceManagement getAccountManager() throws IllegalArgumentException, NullPointerException, SLEEException, CreateException {
ChildRelationExt cre = (ChildRelationExt) getAccountBalanceManagementChildRelation();
SbbLocalObjectExt sbbLocalObject = cre.get(ABMF_CHILD_NAME);
if (sbbLocalObject == null) {
sbbLocalObject = cre.create(ABMF_CHILD_NAME);
}
return (AccountBalanceManagement) sbbLocalObject;
}
use of org.mobicents.slee.ChildRelationExt in project charging-server by RestComm.
the class AccountBalanceManagementSbb 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;
}
Aggregations