Search in sources :

Example 6 with ChildRelationExt

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

Example 7 with ChildRelationExt

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

Example 8 with ChildRelationExt

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;
}
Also used : ChildRelationExt(org.mobicents.slee.ChildRelationExt) SmscProcessingException(org.mobicents.smsc.library.SmscProcessingException) CreateException(javax.slee.CreateException) PersistenceException(org.mobicents.smsc.cassandra.PersistenceException) ChargingSbbLocalObject(org.mobicents.smsc.slee.services.charging.ChargingSbbLocalObject)

Example 9 with ChildRelationExt

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;
}
Also used : ChildRelationExt(org.mobicents.slee.ChildRelationExt) SmscProcessingException(org.mobicents.smsc.library.SmscProcessingException) RecoverablePduException(com.cloudhopper.smpp.type.RecoverablePduException) CharacterCodingException(java.nio.charset.CharacterCodingException)

Example 10 with ChildRelationExt

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

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