|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.root1.simon.InterfaceLookup
public class InterfaceLookup
With this class, you can make a lookup by providing a Interface.
Constructor Summary | |
---|---|
protected |
InterfaceLookup(java.net.InetAddress serverAddress,
int serverPort)
|
protected |
InterfaceLookup(java.lang.String host,
int port)
|
Method Summary | |
---|---|
void |
addClosedListener(java.lang.Object remoteObject,
ClosedListener closedListener)
Attaches a closed listener to the specified remote object |
java.lang.ClassLoader |
getClassLoader()
|
java.util.List<ClosedListener> |
getClosedListeners(java.lang.Object remoteObject)
Returns a list of attached ClosedListener s. |
SimonProxyConfig |
getProxyConfig()
|
java.net.InetAddress |
getServerAddress()
|
int |
getServerPort()
|
SslContextFactory |
getSslContextFactory()
|
java.lang.Object |
lookup(java.lang.String canonicalInterfaceName)
|
boolean |
release(java.lang.Object proxyObject)
Releases are remote object. |
protected static boolean |
releaseDispatcher(Dispatcher dispatcher)
Releases a Dispatcher . |
protected static boolean |
releaseServerDispatcherRelation(java.lang.String serverString)
Releases a reference for a Dispatcher identified by a specific
server string (see: AbstractLookup.createServerString(InetAddress, int) }. |
boolean |
removeClosedListener(java.lang.Object remoteObject,
ClosedListener closedListener)
Removes an already attached closed listener from the specified remote object |
void |
setClassLoader(java.lang.ClassLoader classLoader)
|
void |
setProxyConfig(SimonProxyConfig proxyConfig)
|
void |
setSslContextFactory(SslContextFactory sslContextFactory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected InterfaceLookup(java.lang.String host, int port) throws java.net.UnknownHostException
java.net.UnknownHostException
protected InterfaceLookup(java.net.InetAddress serverAddress, int serverPort)
Method Detail |
---|
public SslContextFactory getSslContextFactory()
public void setSslContextFactory(SslContextFactory sslContextFactory)
public SimonProxyConfig getProxyConfig()
public void setProxyConfig(SimonProxyConfig proxyConfig)
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
public java.net.InetAddress getServerAddress()
public int getServerPort()
public java.lang.Object lookup(java.lang.String canonicalInterfaceName) throws LookupFailedException, EstablishConnectionFailed
LookupFailedException
EstablishConnectionFailed
public boolean release(java.lang.Object proxyObject)
Lookup
release
in interface Lookup
public java.util.List<ClosedListener> getClosedListeners(java.lang.Object remoteObject)
Lookup
ClosedListener
s.
getClosedListeners
in interface Lookup
remoteObject
- the remote object to query for attached closed listeners
public void addClosedListener(java.lang.Object remoteObject, ClosedListener closedListener)
Lookup
addClosedListener
in interface Lookup
remoteObject
- the remote object to which the listener is attached toclosedListener
- the listener to addpublic boolean removeClosedListener(java.lang.Object remoteObject, ClosedListener closedListener)
Lookup
removeClosedListener
in interface Lookup
remoteObject
- the remote object from which the listener has to be removedclosedListener
- the listener to remove
protected static boolean releaseServerDispatcherRelation(java.lang.String serverString)
Dispatcher
identified by a specific
server string (see: AbstractLookup.createServerString(InetAddress, int)
}. If there is no more
server string referencing the Dispatcher, the Dispatcher will be
released/shutdown.
serverString
- the identifier of the Dispatcher to release
protected static boolean releaseDispatcher(Dispatcher dispatcher)
Dispatcher
. If there is no more
server string referencing the Dispatcher, the Dispatcher will be
released/shutdown.
dispatcher
- the iDispatcher to release
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |