Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RaftOptions.java missed several methods #30

Open
Limber0117 opened this issue Jul 11, 2020 · 1 comment
Open

RaftOptions.java missed several methods #30

Limber0117 opened this issue Jul 11, 2020 · 1 comment

Comments

@Limber0117
Copy link

Limber0117 commented Jul 11, 2020

Hi Wenweihu,

Thanks for your effort. It's really a good and interesting project. However, there are several methods missed in the RaftOptions.java in the com.github.wenweihu86.raft.aftNode.java.

I have added the following methods but it seems still not sufficient. An interesting thing is it seems that those missed methods exist in the corresponding .class file.

public void setDataDir(String dataPath) {
	dataDir = System.getProperty(dataPath);
}

public String getDataDir() {
	return dataDir;
} 

public void setSnapshotMinLogSize(int size){
	snapshotMinLogSize = size;
}
public void setSnapshotPeriodSeconds(int timer){
	snapshotPeriodSeconds = timer;
}
public void setMaxSegmentFileSize(int size){
	maxSegmentFileSize = size;
}

public int getMaxSegmentFileSize() {
	return maxSegmentFileSize;
}

public long getCatchupMargin() {
	return catchupMargin;
}

public int getSnapshotMinLogSize() {
	return snapshotMinLogSize;
}

public int getSnapshotPeriodSeconds() {
	return snapshotPeriodSeconds;
}

public int getRaftConsensusThreadNum() {
	return raftConsensusThreadNum;
}

public boolean isAsyncWrite() {
	return asyncWrite;
}

public int getMaxAwaitTimeout() {
	return maxAwaitTimeout;
}
@Tbdgithub
Copy link

Please install Lombok plugin in your IDE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants