1 17 18 package org.objectweb.jac.core.dist.rmi; 19 20 import org.objectweb.jac.core.dist.RemoteContainer; 21 import org.objectweb.jac.core.dist.RemoteRef; 22 23 import java.rmi.RemoteException ; 24 import java.rmi.server.UnicastRemoteObject ; 25 26 35 36 public class RMIRemoteContainer 37 extends UnicastRemoteObject implements RMIRemoteContainerInterf { 38 39 40 protected RemoteContainer delegate; 41 42 43 44 45 public RMIRemoteContainer() throws RemoteException { 46 super(); 47 } 48 49 50 55 56 public RMIRemoteContainer(boolean verbose) throws RemoteException { 57 this(); 58 delegate = new RemoteContainer(verbose); 59 } 60 61 62 68 69 public RMIRemoteContainer(String className, boolean verbose) 70 throws RemoteException 71 { 72 this(); 73 delegate = new RemoteContainer(className,verbose); 74 } 75 76 77 82 83 public RemoteContainer getDelegate() { 84 return delegate; 85 } 86 87 88 101 102 public int instantiates(String name, String className, Object [] args, 103 String [] fields, byte[] state, 104 byte[] collaboration) 105 throws RemoteException 106 { 107 return delegate.instantiates(name, 108 className, 109 args, 110 fields, 111 state, 112 collaboration); 113 } 114 115 116 125 126 public void copy(String name, int index, String [] fields, byte[] state, 127 byte[] collaboration) 128 throws RemoteException { 129 delegate.copy(name, index, fields, state, collaboration); 130 } 131 132 143 144 public byte[] invoke(int index, String methodName, 145 byte[] methodArgs, byte[] collaboration) 146 throws RemoteException { 147 148 return delegate.invoke(index, methodName, methodArgs, collaboration); 149 } 150 151 public byte[] invokeRoleMethod(int index, String methodName, 152 byte[] methodArgs, 153 byte[] collaboration) 154 throws RemoteException { 155 156 return delegate.invokeRoleMethod( 157 index, methodName, methodArgs, collaboration ); 158 } 159 160 public byte[] getByteCodeFor(String className) throws RemoteException { 161 return delegate.getByteCodeFor(className); 162 } 163 164 165 168 169 public RemoteRef bindTo (String name) throws RemoteException { 170 return delegate.bindTo(name); 171 } 172 173 174 193 } 194 | Popular Tags |