Java Code Examples for org.apache.ratis.server.impl.RaftServerImpl#getStateMachine()
The following examples show how to use
org.apache.ratis.server.impl.RaftServerImpl#getStateMachine() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestStateMachine.java From incubator-ratis with Apache License 2.0 | 4 votes |
public static SMTransactionContext get(RaftServerImpl s) { return (SMTransactionContext)s.getStateMachine(); }
Example 2
Source File: TestRaftLogMetrics.java From incubator-ratis with Apache License 2.0 | 4 votes |
static MetricsStateMachine get(RaftServerImpl s) { return (MetricsStateMachine)s.getStateMachine(); }
Example 3
Source File: SegmentedRaftLog.java From incubator-ratis with Apache License 2.0 | 4 votes |
public SegmentedRaftLog(RaftGroupMemberId memberId, RaftServerImpl server, RaftStorage storage, long lastIndexInSnapshot, RaftProperties properties) { this(memberId, server, server != null? server.getStateMachine(): null, server != null? server::submitUpdateCommitEvent: null, storage, lastIndexInSnapshot, properties); }
Example 4
Source File: SimpleStateMachine4Testing.java From incubator-ratis with Apache License 2.0 | 4 votes |
public static SimpleStateMachine4Testing get(RaftServerImpl s) { return (SimpleStateMachine4Testing)s.getStateMachine(); }
Example 5
Source File: TestStateMachine.java From ratis with Apache License 2.0 | 4 votes |
public static SMTransactionContext get(RaftServerImpl s) { return (SMTransactionContext)s.getStateMachine(); }
Example 6
Source File: TestRaftLogMetrics.java From ratis with Apache License 2.0 | 4 votes |
static MetricsStateMachine get(RaftServerImpl s) { return (MetricsStateMachine)s.getStateMachine(); }
Example 7
Source File: SegmentedRaftLog.java From ratis with Apache License 2.0 | 4 votes |
public SegmentedRaftLog(RaftPeerId selfId, RaftServerImpl server, RaftStorage storage, long lastIndexInSnapshot, RaftProperties properties) { this(selfId, server, server != null? server.getStateMachine(): null, server != null? server::submitUpdateCommitEvent: null, storage, lastIndexInSnapshot, properties); }
Example 8
Source File: SimpleStateMachine4Testing.java From ratis with Apache License 2.0 | 4 votes |
public static SimpleStateMachine4Testing get(RaftServerImpl s) { return (SimpleStateMachine4Testing)s.getStateMachine(); }