
com.alachisoft.ncache.client.internal.command.GetCompressionSettings Maven / Gradle / Ivy
/*
* GetCompressionSettings.java
*
* Created on August 1, 2007, 4:54 PM
*
* Copyright 2005 Alachisoft, Inc. All rights reserved.
* ALACHISOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.alachisoft.ncache.client.internal.command;
import com.alachisoft.ncache.common.protobuf.CommandProtocol;
import com.alachisoft.ncache.common.protobuf.GetThresholdSizeCommandProtocol;
import com.alachisoft.ncache.runtime.exceptions.CommandException;
import java.io.IOException;
/**
* @author Administrator
*/
public class GetCompressionSettings extends Command {
/**
* Creates a new instance of GetCompressionSettings
*/
public GetCompressionSettings(boolean isAsync) {
this.name = "GETTHRESHOLDSIZE";
this.isAsync = isAsync;
}
/**
* @return
*/
protected boolean parseCommand() {
return true;
}
protected void createCommand() throws CommandException {
try {
commandBytes = super.constructCommand(CommandProtocol.Command.newBuilder()
.setGetThresholdSizeCommand(GetThresholdSizeCommandProtocol.GetThresholdSizeCommand
.newBuilder().setRequestId(this.getRequestId()))
.setRequestID(this.getRequestId())
.setType(CommandProtocol.Command.Type.GET_THRESHOLD_SIZE).build().toByteArray());
} catch (IOException ex) {
throw new CommandException(ex.getMessage());
}
}
public CommandType getCommandType() {
return CommandType.GET_THRESHOLD_SIZE;
}
@Override
public RequestType getCommandRequestType() {
return RequestType.InternalCommand;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy