|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetworkManager
The Networkmanager handles the connections between the nodes of the Habitat
Network, and cares about the migration and distribution of services.
Also, the Networkmanager acts as the "Gatekeeper" to the service pool. A
service is only added to a habitat by using the Networkmanager's receive
method.
Method Summary | |
---|---|
ConnectionPool |
getConnectionPool()
Returns the connectionPool of this habitat |
void |
migrate(EvEService service,
java.lang.String targetHabitatId)
Method for targeted migration. |
void |
receive(EvEService service)
This method is usually called by the HabitatService . |
void |
send(EvEService service)
Triggers the random migration of the provided service to all connected habitats. |
Method Detail |
---|
void send(EvEService service)
service
- The service to migrate to connect habitatsvoid receive(EvEService service)
HabitatService
. Here, a "gatekeeper"
function to "test" a service before it is added to the service pool can be envisioned.
service
- The service to be added to the poolvoid migrate(EvEService service, java.lang.String targetHabitatId)
ConnectionPool
). However, after a successful
migration the target habitat is added to the ConnectionPool
.
service
- The Service to be migratedtargetHabitatId
- The habitat where it goes to.ConnectionPool getConnectionPool()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |