Revision: 14959
Author: oleg.kulikoff
Date: Tue Nov 2 00:20:45 2010
Log: Add toString() methods for debugging and logger output
http://code.google.com/p/mobicents/source/detail?r=14959
Modified:
/trunk/protocols/ss7/tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPProviderImpl.java
/trunk/protocols/ss7/tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPStackImpl.java
=======================================
---
/trunk/protocols/ss7/tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPProviderImpl.java
Thu Oct 7 03:44:57 2010
+++
/trunk/protocols/ss7/tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPProviderImpl.java
Tue Nov 2 00:20:45 2010
@@ -420,9 +420,10 @@
}
void start() {
+ logger.info("Starting TCAP Provider");
this._EXECUTOR = Executors.newSingleThreadScheduledExecutor();
this.sccpProvider.registerSccpListener(address, this);
-
+ logger.info("Registered SCCP listener with address " + address);
}
void stop() {
=======================================
---
/trunk/protocols/ss7/tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPStackImpl.java
Thu Oct 7 08:08:23 2010
+++
/trunk/protocols/ss7/tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPStackImpl.java
Tue Nov 2 00:20:45 2010
@@ -40,20 +40,10 @@
public void start() throws IllegalStateException, StartFailedException
{
logger.info("Starting ...");
- if (state != State.CONFIGURED) {
- throw new IllegalStateException("Stack has not been configured
or is already running!");
- }
- this.tcapProvider.start();
-
- this.state = State.RUNNING;
-
-
+ tcapProvider.start();
}
public void stop() {
- if (state != State.RUNNING) {
- throw new IllegalStateException("Stack is not
running!");
- }
this.tcapProvider.stop();
this.state = State.CONFIGURED;
}