1 45 package org.exolab.jms.net.orb; 46 47 import java.rmi.NoSuchObjectException ; 48 import java.rmi.RemoteException ; 49 import java.rmi.StubNotFoundException ; 50 import java.rmi.server.ExportException ; 51 import java.rmi.server.ObjID ; 52 import java.util.Map ; 53 54 import org.exolab.jms.net.connector.CallerListener; 55 import org.exolab.jms.net.connector.Caller; 56 import org.exolab.jms.net.proxy.Proxy; 57 import org.exolab.jms.net.registry.LocalRegistry; 58 import org.exolab.jms.net.registry.Registry; 59 60 61 67 public interface ORB { 68 69 73 final String PROVIDER_URI 74 = "org.exolab.jms.net.orb.provider.uri"; 75 76 81 final String SECURITY_PRINCIPAL 82 = "org.exolab.jms.net.orb.security.principal"; 83 84 89 final String SECURITY_CREDENTIALS 90 = "org.exolab.jms.net.orb.security.credentials"; 91 92 99 void addRoute(String uri, String toURI) throws RemoteException ; 100 101 107 LocalRegistry getRegistry() throws RemoteException ; 108 109 116 Registry getRegistry(Map properties) throws RemoteException ; 117 118 126 Proxy exportObject(Object object) 127 throws ExportException , StubNotFoundException ; 128 129 139 Proxy exportObject(Object object, String uri) 140 throws ExportException , StubNotFoundException ; 141 142 151 Proxy exportObject(Object object, ObjID objID) 152 throws ExportException , StubNotFoundException ; 153 154 164 Proxy exportObject(Object object, ObjID objID, String uri) 165 throws ExportException , StubNotFoundException ; 166 167 176 Proxy exportObjectTo(Object object) 177 throws ExportException , StubNotFoundException ; 178 179 190 Proxy exportObjectTo(Object object, String uri) 191 throws ExportException , StubNotFoundException ; 192 193 206 Proxy exportObjectTo(Object object, String uri, String principal, 207 String credentials) 208 throws ExportException , StubNotFoundException ; 209 210 216 void unexportObject(Object object) throws NoSuchObjectException ; 217 218 225 Caller getCaller() throws RemoteException ; 226 227 234 void addCallerListener(String uri, CallerListener listener) 235 throws RemoteException ; 236 237 244 void removeCallerListener(String uri, CallerListener listener) 245 throws RemoteException ; 246 247 252 void shutdown() throws RemoteException ; 253 254 } 255 | Popular Tags |