41 lines
787 B
Java
41 lines
787 B
Java
package info.FrostFS.sdk.jdo;
|
|
|
|
public class MetaHeader {
|
|
public Version version;
|
|
public int epoch;
|
|
public int ttl;
|
|
|
|
public MetaHeader(Version version, int epoch, int ttl) {
|
|
this.version = version;
|
|
this.epoch = epoch;
|
|
this.ttl = ttl;
|
|
}
|
|
|
|
public static MetaHeader getDefault() {
|
|
return new MetaHeader(new Version(2, 13), 0, 2);
|
|
}
|
|
|
|
public Version getVersion() {
|
|
return version;
|
|
}
|
|
|
|
public void setVersion(Version version) {
|
|
this.version = version;
|
|
}
|
|
|
|
public int getEpoch() {
|
|
return epoch;
|
|
}
|
|
|
|
public void setEpoch(int epoch) {
|
|
this.epoch = epoch;
|
|
}
|
|
|
|
public int getTtl() {
|
|
return ttl;
|
|
}
|
|
|
|
public void setTtl(int ttl) {
|
|
this.ttl = ttl;
|
|
}
|
|
}
|