Search in sources :

Example 1 with ChildRelationExt

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;
}
Also used : ChildRelationExt(org.mobicents.slee.ChildRelationExt) MAPException(org.restcomm.protocols.ss7.map.api.MAPException)

Example 2 with ChildRelationExt

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;
}
Also used : ChildRelationExt(org.mobicents.slee.ChildRelationExt) MAPException(org.restcomm.protocols.ss7.map.api.MAPException)

Example 3 with ChildRelationExt

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;
}
Also used : CDRGenerator(org.mobicents.charging.server.cdr.CDRGenerator) ChildRelationExt(org.mobicents.slee.ChildRelationExt) SbbLocalObjectExt(org.mobicents.slee.SbbLocalObjectExt)

Example 4 with ChildRelationExt

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;
}
Also used : AccountBalanceManagement(org.mobicents.charging.server.account.AccountBalanceManagement) ChildRelationExt(org.mobicents.slee.ChildRelationExt) SbbLocalObjectExt(org.mobicents.slee.SbbLocalObjectExt)

Example 5 with ChildRelationExt

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;
}
Also used : ChildRelationExt(org.mobicents.slee.ChildRelationExt) SbbLocalObjectExt(org.mobicents.slee.SbbLocalObjectExt) DataSource(org.mobicents.charging.server.data.DataSource)

Aggregations

ChildRelationExt (org.mobicents.slee.ChildRelationExt)10 SbbLocalObjectExt (org.mobicents.slee.SbbLocalObjectExt)5 MAPException (org.restcomm.protocols.ss7.map.api.MAPException)3 DataSource (org.mobicents.charging.server.data.DataSource)2 SmscProcessingException (org.mobicents.smsc.library.SmscProcessingException)2 RecoverablePduException (com.cloudhopper.smpp.type.RecoverablePduException)1 CharacterCodingException (java.nio.charset.CharacterCodingException)1 CreateException (javax.slee.CreateException)1 AccountBalanceManagement (org.mobicents.charging.server.account.AccountBalanceManagement)1 CDRGenerator (org.mobicents.charging.server.cdr.CDRGenerator)1 RatingEngineClient (org.mobicents.charging.server.ratingengine.RatingEngineClient)1 PersistenceException (org.mobicents.smsc.cassandra.PersistenceException)1 ChargingSbbLocalObject (org.mobicents.smsc.slee.services.charging.ChargingSbbLocalObject)1