|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbe.eve.net.NetworkManagerImpl
public class NetworkManagerImpl
Field Summary | |
---|---|
org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
NetworkManagerImpl(HabitatService habitat)
|
Method Summary | |
---|---|
void |
configureNetwork(java.lang.String homeDir)
|
HabitatService |
connect(java.lang.String nodeId)
|
void |
findNewHabitats()
|
ConnectionPool |
getConnectionPool()
Returns the connectionPool of this habitat |
ServicePool |
getImportedPool()
|
int |
getNumberOfConnections()
|
SMHandler |
getSMHandler()
|
void |
importEvEServicePool(java.lang.String smid)
This method is to import the while ServicePool of a given HabitatService |
ServicePool |
importServicesFromSR(java.lang.String srAdress)
|
void |
init()
|
void |
migrate(EvEService service,
java.lang.String targetHabitatId)
Method for targeted migration. |
java.lang.String |
readFile(java.lang.String filename)
|
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. |
void |
setImportedPool(ServicePool importedPool)
|
void |
writeFile(java.lang.String filename,
java.lang.String data)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public org.apache.log4j.Logger logger
Constructor Detail |
---|
public NetworkManagerImpl(HabitatService habitat)
Method Detail |
---|
public void init()
public HabitatService connect(java.lang.String nodeId)
public void send(EvEService service)
NetworkManager
send
in interface NetworkManager
service
- The service to migrate to connect habitatspublic void receive(EvEService service)
NetworkManager
HabitatService
. Here, a "gatekeeper"
function to "test" a service before it is added to the service pool can be envisioned.
receive
in interface NetworkManager
service
- The service to be added to the poolpublic void findNewHabitats()
public void importEvEServicePool(java.lang.String smid)
smid
- ID of the habitat to import the pool frompublic ServicePool importServicesFromSR(java.lang.String srAdress)
public void configureNetwork(java.lang.String homeDir)
public java.lang.String readFile(java.lang.String filename)
public void writeFile(java.lang.String filename, java.lang.String data)
public int getNumberOfConnections()
public ConnectionPool getConnectionPool()
NetworkManager
getConnectionPool
in interface NetworkManager
public SMHandler getSMHandler()
public ServicePool getImportedPool()
public void setImportedPool(ServicePool importedPool)
public void migrate(EvEService service, java.lang.String targetHabitatId)
NetworkManager
ConnectionPool
). However, after a successful
migration the target habitat is added to the ConnectionPool
.
migrate
in interface NetworkManager
service
- The Service to be migratedtargetHabitatId
- The habitat where it goes to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |