|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implemented by automatic host detection services that work outside the boundaries of a LAN.
Field Summary | |
static String |
WHATIS
The WhatIs entry key for this service. |
Method Summary | |
boolean |
coordinator()
Returns whether this service is the current FarSight coordinator |
void |
discovered(Map newHosts)
Notifies FarSight that new hosts have been discovered. |
void |
discovered(URL hostURL)
Notifies FarSight that a new host has been discovered. |
Map |
getAllContacts()
Creates a collection of contacts from FarSight and Vicinity. |
Map |
getFarContacts()
Creates a copy of the known FarSight contacts. |
Map |
getVicinityContacts()
A convenience interface to Vicinity.getContactTable() . |
Methods inherited from interface de.fhg.igd.semoa.server.Service |
author, dependencies, docs, info, majorVersion, minorVersion |
Field Detail |
public static final String WHATIS
WhatIs
entry key for this service.
Method Detail |
public Map getAllContacts()
public Map getFarContacts()
public Map getVicinityContacts()
Vicinity.getContactTable()
.
public void discovered(Map newHosts)
newHosts
- Should contain the new SeMoA hosts. The values are
URL
instances pointing to the ship
port of that host. The map interface is just a Vicinity
legacy, thus the keys can be ignored.public void discovered(URL hostURL)
hostURL
- Must point to the ship port of
that SeMoA host.public boolean coordinator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |