All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.voovan.docker.message.swarm.atom.Raft Maven / Gradle / Ivy

Go to download

By encapsulating the Docker API enables developers to use Java can quickly developed the control and operation of the Docker application, using streaming operation, simple and clear.

The newest version!
package org.voovan.docker.message.swarm.atom;

/**
 *
 * @author helyho
 * 

* DockerFly Framework. * WebSite: https://git.oschina.net/helyho/JDocker * Licence: Apache v2 License */ public class Raft { private Integer snapshotIntegererval; private Integer logEntriesForSlowFollowers; private Integer heartbeatTick; private Integer electionTick; public Raft() { snapshotIntegererval = 10000; logEntriesForSlowFollowers = 500; heartbeatTick = 1; electionTick = 10; } public Raft(Integer snapshotIntegererval, Integer logEntriesForSlowFollowers, Integer heartbeatTick, Integer electionTick) { this.snapshotIntegererval = snapshotIntegererval; this.logEntriesForSlowFollowers = logEntriesForSlowFollowers; this.heartbeatTick = heartbeatTick; this.electionTick = electionTick; } public Integer getSnapshotIntegererval() { return snapshotIntegererval; } public void setSnapshotIntegererval(Integer snapshotIntegererval) { this.snapshotIntegererval = snapshotIntegererval; } public Integer getLogEntriesForSlowFollowers() { return logEntriesForSlowFollowers; } public void setLogEntriesForSlowFollowers(Integer logEntriesForSlowFollowers) { this.logEntriesForSlowFollowers = logEntriesForSlowFollowers; } public Integer getHeartbeatTick() { return heartbeatTick; } public void setHeartbeatTick(Integer heartbeatTick) { this.heartbeatTick = heartbeatTick; } public Integer getElectionTick() { return electionTick; } public void setElectionTick(Integer electionTick) { this.electionTick = electionTick; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy