Class HostEntry

java.lang.Object
net.sodacan.core.coordinator.HostEntry

public final class HostEntry extends Object

Contains a combination of host number, actorgroup number, and actorGroup state. The coordinator sends this information to a host to indicate how the host should be configured.

In a single=host configuration, the host gets one entry from the coordinator: Host #1, ActorGroup #1, State=live.

Note: Host number is configured at startup per instance and is used to fetch the intended ActorGroups for that one host.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Active state means that this actorGroup is able to process messages. Replica state means that this actorGroup is only receiving actor state messages and storing them locally in anticipation of possibly becoming active. The Host mode allows the specified ActorGroup to remain bound to the host; It can't move like an ordinary ActorrGroup.
  • Constructor Summary

    Constructors
    Constructor
    Description
    HostEntry(int host, int actorGroup, HostEntry.Mode mode)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    int
     
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • HostEntry

      public HostEntry(int host, int actorGroup, HostEntry.Mode mode)
  • Method Details

    • getHost

      public int getHost()
    • getActorGroup

      public int getActorGroup()
    • getMode

      public HostEntry.Mode getMode()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object