コード例 #1
0
 public ProxyProcess addTransfer() throws IOException {
   synchronized (processLock) {
     if (proxyProcess == null) {
       proxyProcess = new ProxyProcess(new ServerSocket(7777));
       proxyProcess.start();
     }
   }
   proxyProcess.addTransfer();
   return proxyProcess;
 }
コード例 #2
0
 public void cleanup() {
   synchronized (processLock) {
     if (proxyProcess != null) {
       proxyProcess.stop();
       proxyProcess = null;
     }
   }
 }
コード例 #3
0
 public void removeTransfer() {
   if (proxyProcess == null) {
     return;
   }
   proxyProcess.removeTransfer();
 }