@Override public void remApplicationId(ApplicationId applicationId) { synchronized (lock) { appIds.remove(applicationId); } if (logger.isDebugEnabled()) { logger.debug("Removing application id of auth [{}] acct [{}] vendor [{}]", new Object[]{applicationId.getAuthAppId(), applicationId.getAcctAppId(), applicationId.getVendorId()}); } }
@Override public void addApplicationId(ApplicationId applicationId) { synchronized (lock) { if (appIds.contains(applicationId)) { return; } appIds.add(applicationId); } if (logger.isDebugEnabled()) { logger.debug("Adding application id of auth [{}] acct [{}] vendor [{}]", new Object[]{applicationId.getAuthAppId(), applicationId.getAcctAppId(), applicationId.getVendorId()}); } }
public static ApplicationIdJMX fromApplicationId(ApplicationId appId) { if(appId.getAuthAppId() != 0) { return new ApplicationIdJMX(appId.getVendorId(), appId.getAuthAppId(), null); } else { return new ApplicationIdJMX(appId.getVendorId(), null, appId.getAcctAppId()); } }
public static ApplicationIdJMX fromApplicationId(ApplicationId appId) { if (appId.getAuthAppId() != 0) { return new ApplicationIdJMX(appId.getVendorId(), appId.getAuthAppId(), null); } else { return new ApplicationIdJMX(appId.getVendorId(), null, appId.getAcctAppId()); } }
public void sessionCreated(ClientS6aSession session) { S6aMessageFactoryImpl sessionMsgFactory = new S6aMessageFactoryImpl(session.getSessions().get(0), stack, new DiameterIdentity[]{}); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); sessionMsgFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); S6aClientSessionImpl clientActivity = new S6aClientSessionImpl(sessionMsgFactory, s6aAvpFactory, session, this, null, null, stack); //session.addStateChangeNotification(serverActivity); //addActivity(serverActivity); clientActivity.setSessionListener(this); }
public void sessionCreated(ServerS6aSession session) { S6aMessageFactoryImpl sessionMsgFactory = new S6aMessageFactoryImpl(session.getSessions().get(0), stack, new DiameterIdentity[]{}); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); sessionMsgFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); S6aServerSessionImpl serverActivity = new S6aServerSessionImpl(sessionMsgFactory, s6aAvpFactory, session, this, null, null, stack); //session.addStateChangeNotification(serverActivity); //addActivity(serverActivity); serverActivity.setSessionListener(this); }
private void performBeforeReturnRo(RoClientSessionActivityImpl acc, Session session) { RoMessageFactoryImpl messageFactory = new RoMessageFactoryImpl(baseMessageFactory, session.getSessionId(), stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); acc.setRoMessageFactory(messageFactory); // acc.setRoAvpFactory(roAvpFactory); }
private void performBeforeReturnRo(RoClientSessionActivityImpl acc, Session session) { RoMessageFactoryImpl messageFactory = new RoMessageFactoryImpl(baseMessageFactory, session.getSessionId(), stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); acc.setRoMessageFactory(messageFactory); // acc.setRoAvpFactory(roAvpFactory); }
private void performBeforeReturnRo(RoServerSessionActivityImpl acc, Session session) { RoMessageFactoryImpl messageFactory = new RoMessageFactoryImpl(baseMessageFactory, session.getSessionId(), stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); acc.setRoMessageFactory(messageFactory); // acc.setRoAvpFactory(roAvpFactory); }
private void performBeforeReturnGx(final GxClientSessionActivityImpl acc, Session session) { GxMessageFactoryImpl messageFactory = new GxMessageFactoryImpl(baseMessageFactory, session.getSessionId(), stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); acc.setGxMessageFactory(messageFactory); }
private void performBeforeReturnGq(GqServerSessionActivityImpl auth, Session session) { GqMessageFactoryImpl messageFactory = new GqMessageFactoryImpl(baseMessageFactory, session.getSessionId(), stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); auth.setGqMessageFactory(messageFactory); // acc.setRoAvpFactory(roAvpFactory); }
private void performBeforeReturnSh(ShClientActivityImpl sh, Session session) { ShClientMessageFactoryImpl messageFactory = new ShClientMessageFactoryImpl(session, stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); sh.setClientMessageFactory(messageFactory); sh.setClientAvpFactory(shAvpFactory); }
private void performBeforeReturnRx(final RxClientSessionActivityImpl acc, Session session) { RxMessageFactoryImpl messageFactory = new RxMessageFactoryImpl(baseMessageFactory, session.getSessionId(), stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); acc.setRxMessageFactory(messageFactory); }
private void performBeforeReturnGq(GqClientSessionActivityImpl auth, Session session) { GqMessageFactoryImpl messageFactory = new GqMessageFactoryImpl(baseMessageFactory, session.getSessionId(), stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); auth.setGqMessageFactory(messageFactory); // acc.setRoAvpFactory(roAvpFactory); }
private void performBeforeReturnSh(ShClientSubscriptionActivityImpl sh,Session session) { ShClientMessageFactoryImpl messageFactory = new ShClientMessageFactoryImpl(session, stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); sh.setClientMessageFactory(messageFactory); sh.setClientAvpFactory(shAvpFactory); }
private void performBeforeReturnRo(RoServerSessionActivityImpl acc, Session session) { RoMessageFactoryImpl messageFactory = new RoMessageFactoryImpl(baseMessageFactory, session.getSessionId(), stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); acc.setRoMessageFactory(messageFactory); // acc.setRoAvpFactory(roAvpFactory); }
private void performBeforeReturnRx(final RxServerSessionActivityImpl acc, Session session) { RxMessageFactoryImpl messageFactory = new RxMessageFactoryImpl(baseMessageFactory, session.getSessionId(), stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); acc.setRxMessageFactory(messageFactory); }
private void performBeforeReturnGx(final GxServerSessionActivityImpl acc, Session session) { GxMessageFactoryImpl messageFactory = new GxMessageFactoryImpl(baseMessageFactory, session.getSessionId(), stack); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); messageFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); acc.setGxMessageFactory(messageFactory); }
public void sessionCreated(ServerCxDxSession session) { DiameterMessageFactoryImpl baseMsgFactory = new DiameterMessageFactoryImpl(session.getSessions().get(0), stack); CxDxMessageFactoryImpl sessionMsgFactory = new CxDxMessageFactoryImpl(baseMsgFactory,session.getSessions().get(0), stack, new DiameterIdentity[]{}); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); sessionMsgFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); CxDxServerSessionImpl serverActivity = new CxDxServerSessionImpl(sessionMsgFactory, cxdxAvpFactory, session, this, null, null, stack); //session.addStateChangeNotification(serverActivity); //addActivity(serverActivity); serverActivity.setSessionListener(this); }
public void sessionCreated(ClientCxDxSession session) { DiameterMessageFactoryImpl baseMsgFactory = new DiameterMessageFactoryImpl(session.getSessions().get(0), stack); CxDxMessageFactoryImpl sessionMsgFactory = new CxDxMessageFactoryImpl(baseMsgFactory,session.getSessions().get(0), stack, new DiameterIdentity[]{}); // Set the first configured Application-Id as default for message factory ApplicationId firstAppId = authApplicationIds.get(0); sessionMsgFactory.setApplicationId(firstAppId.getVendorId(), firstAppId.getAuthAppId()); CxDxClientSessionImpl clientActivity = new CxDxClientSessionImpl(sessionMsgFactory, cxdxAvpFactory, session, this, null, null, sleeEndpoint); //session.addStateChangeNotification(clientActivity); //addActivity(clientActivity); clientActivity.setSessionListener(this); }