Class CounterServiceDemo

java.lang.Object
org.jgroups.raft.demos.CounterServiceDemo

public class CounterServiceDemo extends Object
Demo of CounterService. When integrating with JGroups, this class should be removed and the original demo in JGroups should be modified to accept different CounterService implementations.
  • Field Details

    • ch

      protected org.jgroups.JChannel ch
    • counter_service

      protected CounterService counter_service
  • Constructor Details

    • CounterServiceDemo

      public CounterServiceDemo()
  • Method Details

    • loop

      protected void loop() throws Exception
      Throws:
      Exception
    • dumpLog

      protected void dumpLog()
    • firstApplied

      protected long firstApplied()
    • logSize

      protected long logSize()
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception