The provider module for the Arris designed APIs.
[packetcable.git] / packetcable-driver / src / main / java / org / pcmm / rcd / impl / CMTS.java
index 927063100a6eb485fcf6058f9c8bcc1bd0ba439c..8f17553ed203c749386542da52a5bdd1ea87a794 100644 (file)
@@ -20,12 +20,24 @@ import java.util.*;
 import java.util.concurrent.Callable;
 
 /**
- *
+ * This class starts a mock CMTS that can be used for testing.
  */
 public class CMTS extends AbstractPCMMServer implements ICMTS {
 
+       /**
+        * Constructor for having the server port automatically assigned
+        * Call getPort() after startServer() is called to determine the port number of the server
+        */
        public CMTS() {
-               super();
+               this(0);
+       }
+
+       /**
+        * Constructor for starting the server to a pre-defined port number
+        * @param port - the port number on which to start the server.
+        */
+       public CMTS(final int port) {
+               super(port);
        }
 
        @Override