Revision: 14889
Author: brainslog
Date: Tue Oct 26 03:58:12 2010
Log: Updating Diameter Charging Server to latest Diameter stack
http://code.google.com/p/mobicents/source/detail?r=14889
Modified:
/trunk/servers/diameter/examples/charging-server-simulator/src/main/java/org/mobicents/servers/diameter/charging/factories/CreditControlSessionFactory.java
=======================================
---
/trunk/servers/diameter/examples/charging-server-simulator/src/main/java/org/mobicents/servers/diameter/charging/factories/CreditControlSessionFactory.java
Tue Jun 22 10:58:36 2010
+++
/trunk/servers/diameter/examples/charging-server-simulator/src/main/java/org/mobicents/servers/diameter/charging/factories/CreditControlSessionFactory.java
Tue Oct 26 03:58:12 2010
@@ -73,10 +73,10 @@
ClientCCASessionImpl clientSession = null;
if(args != null && args.length>1 && args[0] instanceof Request) {
Request request = (Request) args[0];
- clientSession = new
ClientCCASessionImpl(request.getSessionId(),this,sessionFactory,this);
+ clientSession = new ClientCCASessionImpl(request.getSessionId(),
this,sessionFactory, this, this, this);
}
else {
- clientSession = new
ClientCCASessionImpl(sessionId,this,sessionFactory,this);
+ clientSession = new ClientCCASessionImpl(sessionId, this,
sessionFactory, this, this, this);
}
clientSession.addStateChangeNotification(this);
@@ -87,10 +87,10 @@
if (args != null && args.length > 1 && args[0] instanceof
Request) {
// This shouldn't happen but just in case
Request request = (Request) args[0];
- serverSession = new ServerCCASessionImpl(request.getSessionId(),
this, sessionFactory, this);
+ serverSession = new ServerCCASessionImpl(request.getSessionId(),
this, sessionFactory, this, this, this);
}
else {
- serverSession = new ServerCCASessionImpl(sessionId, this,
sessionFactory, this);
+ serverSession = new ServerCCASessionImpl(sessionId, this,
sessionFactory, this, this, this);
}
serverSession.addStateChangeNotification(this);
@@ -112,6 +112,10 @@
logger.info("Diameter CCA SessionFactory :: stateChanged ::
oldState[" + oldState + "], newState[" + newState + "]");
}
}
+
+ public void stateChanged(Object source, Enum oldState, Enum newState) {
+ stateChanged(oldState, newState);
+ }
public long[] getApplicationIds() {
//FIXME: ???