|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.atlas.core.ProxyInfo
Encapsulates the functionality needed to discover a Location
Service Proxy (LSProxy) in local LAN.
The location service defines the LSProxy as optional
component which can be installed within the local LAN. Several
potential proxys may be installed, but only one of them may be
active in the same moment. This is achieved by using the
Vicinity service based on a multicast protocol,
which elects one LSProxy out of several potential ones.
Vicinity,
LSProxy,
LSClientService,
LSPRequest| Field Summary | |
protected Principal |
localDN_
The distinguished name of a local proxy. |
private static Logger |
log_
The Logger instance for this class |
protected Vicinity |
vicinity_
The reference to the Vicinity service. |
static String |
VICINITY_TOPIC
The topic for the Vicinity service,
used to elect a LSProxy in the local LAN. |
| Constructor Summary | |
ProxyInfo()
Creates an instance of this class. |
|
| Method Summary | |
LSProxyService |
getLocalProxy()
Tries to locate a local LSProxyService interface |
Principal |
getProxyDN()
Returns the proxy DN of the elected LSProxy. |
URL |
getProxyURL()
Returns the proxy URL of the elected LSProxy. |
boolean |
isExistent()
Checks if a LSProxy could have been elected successfully. |
boolean |
isLocal()
Checks if the elected LSProxy is local. |
protected void |
registerVicinityTopic(boolean active)
Registers the proxy specific topic VICINITY_TOPIC with Vicinity. |
String |
toString()
Returns the string representation of this instance. |
void |
updateLocalProxyState()
Checks if a local LSProxy has successfully
bound to a port and is running. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static Logger log_
Logger instance for this class
public static final String VICINITY_TOPIC
Vicinity service,
used to elect a LSProxy in the local LAN.
protected Vicinity vicinity_
Vicinity service.
protected Principal localDN_
| Constructor Detail |
public ProxyInfo()
true, local server
is registered as potential LSProxy.
| Method Detail |
protected void registerVicinityTopic(boolean active)
VICINITY_TOPIC with Vicinity.
active - The flag to determine if the local
server is a potential LSProxy.public void updateLocalProxyState()
LSProxy has successfully
bound to a port and is running.
In this case it is registered with Vicinity, otherwise
the local server as potential LSProxy is
deleted from Vicinity election.
In any case the Vicinity election is triggered with
the according topic.
public Principal getProxyDN()
LSProxy.
null
if the DN cannot be determined.public URL getProxyURL()
LSProxy.
null
if the DN cannot be determined.public boolean isExistent()
LSProxy could have been elected successfully.
true if a LSProxy has been elected;
false otherwise.public boolean isLocal()
LSProxy is local.
true if the LSProxy is local;
false otherwise.public LSProxyService getLocalProxy()
LSProxyService interface
LSProxyService interface if found;
null otherwise.public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||