Add packetcable-driver as a bundle and fix karafe depends. Merge hop-along model...
[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.rcd.ICMTS;
7 import org.pcmm.rcd.IPCMMPolicyServer;
8 import org.pcmm.rcd.IPCMMPolicyServer.IPSCMTSClient;
9 import org.pcmm.rcd.impl.CMTS;
10 import org.pcmm.rcd.impl.PCMMPolicyServer;
11
12 /**
13  *
14  */
15 public class Main {
16
17         /**
18          * @param args
19          */
20         public static void main(String[] args) {
21                 ICMTS icmts = new CMTS();
22                 icmts.startServer();
23                 IPCMMPolicyServer ps = new PCMMPolicyServer();
24                 IPSCMTSClient client = ps.requestCMTSConnection("localhost");
25                 client.gateSet();
26                 // IWorkerPool pool = new WorkerPool(2);
27                 // IWorker worker = new Worker(new Callable<String>() {
28                 // @Override
29                 // public String call() throws Exception {
30                 // System.out
31                 // .println("Main.main(...).new Callable() {...}.call()");
32                 // return null;
33                 // }
34                 // });
35                 // IWorker worker2 = new Worker(new Callable<String>() {
36                 // @Override
37                 // public String call() throws Exception {
38                 // System.out
39                 // .println("|||||||Main.main(...).new Callable() {...}.call()||||||||||||");
40                 // return null;
41                 // }
42                 // });
43                 // pool.schedule(worker2, 2000);
44                 // pool.schedule(worker, 500);
45                 // pool.recycle();
46
47
48         }
49 }