With previous change to AbstractPCMMServer, instantiation of the CMTS class now requi...
[packetcable.git] / packetcable-driver / src / test / java / org / pcmm / test / Main.java
1 /**
2  *
3  */
4 package org.pcmm.test;
5
6 import org.pcmm.PCMMConstants;
7 import org.pcmm.PCMMProperties;
8 import org.pcmm.rcd.ICMTS;
9 import org.pcmm.rcd.impl.CMTS;
10
11 /**
12  *
13  */
14 public class Main {
15
16         /**
17          * @param args
18          */
19         public static void main(String[] args) {
20                 ICMTS icmts = new CMTS(PCMMProperties.get(PCMMConstants.PCMM_PORT, Integer.class));
21                 icmts.startServer();
22 //              IPCMMPolicyServer ps = new PCMMPolicyServer();
23 //              IPSCMTSClient client = ps.requestCMTSConnection("localhost");
24 //              client.gateSet();
25                 // IWorkerPool pool = new WorkerPool(2);
26                 // IWorker worker = new Worker(new Callable<String>() {
27                 // @Override
28                 // public String call() throws Exception {
29                 // System.out
30                 // .println("Main.main(...).new Callable() {...}.call()");
31                 // return null;
32                 // }
33                 // });
34                 // IWorker worker2 = new Worker(new Callable<String>() {
35                 // @Override
36                 // public String call() throws Exception {
37                 // System.out
38                 // .println("|||||||Main.main(...).new Callable() {...}.call()||||||||||||");
39                 // return null;
40                 // }
41                 // });
42                 // pool.schedule(worker2, 2000);
43                 // pool.schedule(worker, 500);
44                 // pool.recycle();
45
46
47         }
48 }