Class ProgrammaticRSM

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

public class ProgrammaticRSM extends Object
Demos ReplicatedStateMachine. Option -members defines the set of members (supposed to be static across all nodes). Option -name needs to name one of the members.
Since:
1.0.0
Author:
Bela Ban
  • Field Details

    • ch

      protected static final org.jgroups.JChannel ch
    • rsm

      protected static final ReplicatedStateMachine<String,Object> rsm
    • h

      protected static final org.jgroups.stack.NonReflectiveProbeHandler h
  • Constructor Details

    • ProgrammaticRSM

      public ProgrammaticRSM()
  • Method Details

    • main

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

      protected static org.jgroups.JChannel create(boolean udp) throws Exception
      Throws:
      Exception
    • loop

      protected static void loop()
    • put

      protected static void put(String key, String value)
    • get

      protected static void get(String key)
    • remove

      protected static void remove(String key)
    • read

      protected static String read(String name)
    • firstApplied

      protected static long firstApplied()
    • logSize

      protected static long logSize()
    • dumpLog

      protected static void dumpLog()