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

com.taobao.drc.clusterclient.clustermanager.LocalPartitionStatus Maven / Gradle / Ivy

There is a newer version: 5.0.0.1.beta
Show newest version
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+
    	"]";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy