com.taobao.drc.clusterclient.clustermanager.LocalPartitionStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consumer-core Show documentation
Show all versions of consumer-core Show documentation
The java consumer core component for Data Transmission Service
package com.taobao.drc.clusterclient.clustermanager;
/**
* @author yangyang
* @since 17/6/20
*/
public class LocalPartitionStatus {
private final String partition;
private final long generation;
private final String offset;
private final String state;
private final String message;
public LocalPartitionStatus(String partition, long generation, String offset, String state, String message) {
this.partition = partition;
this.generation = generation;
this.offset = offset;
this.state = state;
this.message = message;
}
public String getPartition() {
return partition;
}
public long getGeneration() {
return generation;
}
public String getOffset() {
return offset;
}
public String getState() {
return state;
}
public String getMessage() {
return message;
}
public String toString(){
return "LocalPartitionStatus:["+
"partition:"+partition+
",generation:"+generation+
",offset:"+offset+
",state"+state+
",message:"+message+
"]";
}
}