public static void startManagers() {
   UpgradeProcessor.startManagers();
   try {
     if (gerenciadornuvem0 == null)
       gerenciadornuvem0 =
           (Gerenciadornuvem0Interface) Naming.lookup("rmi://0:1099/gerenciadornuvem0");
     if (gerenciadornuvem1 == null)
       gerenciadornuvem1 =
           (Gerenciadornuvem1Interface) Naming.lookup("rmi://1:1099/gerenciadornuvem1");
   } catch (RemoteException e) {
     e.printStackTrace();
   } catch (NotBoundException e) {
     e.printStackTrace();
   } catch (MalformedURLException e) {
     e.printStackTrace();
   }
 }
示例#2
0
 @Override
 public void write(byte[] b, int off, int len) throws IOException {
   processor.write(b, off, len);
 }
示例#3
0
 @Override
 public void write(int b) throws IOException {
   processor.write(b);
 }