com.aliyun.openservices.log.request.MergeShardsRequest Maven / Gradle / Ivy
package com.aliyun.openservices.log.request;
import com.aliyun.openservices.log.common.Consts;
import com.aliyun.openservices.log.common.Consts.CursorMode;
public class MergeShardsRequest extends Request {
/**
*
*/
private static final long serialVersionUID = -181884038613668465L;
protected String mLogStore = "";
protected int mShardId = -1;
/**
* Construct a get cursor request
* @param project
* project name
* @param logStore
* log stream name
* @param shardId
* shard id
*/
public MergeShardsRequest(String project, String logStore, int shardId) {
super(project);
this.mLogStore = logStore;
this.mShardId = shardId;
SetParam(Consts.CONST_ACTION, Consts.CONST_ACTION_MERGE);
}
public MergeShardsRequest(String project, String logStore, int shardId, CursorMode mode) {
super(project);
this.mLogStore = logStore;
this.mShardId = shardId;
SetParam(Consts.CONST_ACTION, Consts.CONST_ACTION_MERGE);
}
/**
* @return the logStore
*/
public String GetLogStore() {
return mLogStore;
}
/**
* @param logStore the logStore to set
*/
public void SetLogStore(String logStore) {
this.mLogStore = logStore;
}
/**
* @return the shardId
*/
public int GetShardId() {
return mShardId;
}
/**
* @param shardId the shardId to set
*/
public void SetShardId(int shardId) {
this.mShardId = shardId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy