Package net.sodacan.core.host
Class DefaultHost
java.lang.Object
net.sodacan.core.host.AbstractHost
net.sodacan.core.host.DefaultHost
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Host
Contains ordinary host behavior. Coordinator is more likely to change
based in needs.
-
Field Summary
Fields inherited from class net.sodacan.core.host.AbstractHost
activeActorGroups
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.sodacan.core.host.AbstractHost
close, forwardToHost, getActorGroup, getActorGroups, getActorGroupStatistics, getConfig, getCoordinator, getHostEntries, getHostNumber, getStatisticsFor, isInitialized, replicate, send, sendNormalMessage, setInitialized, update, waitForMessagesToFinish
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.sodacan.core.Host
close, getActorGroup, getActorGroups, getActorGroupStatistics, getConfig, getCoordinator, getHostEntries, getHostNumber, getStatisticsFor, send, update, waitForMessagesToFinish
-
Constructor Details
-
DefaultHost
-
-
Method Details
-
initialize
public void initialize()Get things started in a host.
- Create Coordinator
- Create actorGroups
- Set initialized to true
-
start
public void start()Description copied from interface:Host
Start this Host. Must occur before any messages accepted -
toString
-