
com.alachisoft.ncache.client.internal.command.GetEncryptionCommand Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.alachisoft.ncache.client.internal.command;
import com.alachisoft.ncache.common.protobuf.CommandProtocol;
import com.alachisoft.ncache.common.protobuf.GetEncryptionCommandProtocol;
import com.alachisoft.ncache.runtime.exceptions.CommandException;
import java.io.IOException;
/**
* @author Basit Anwer
*/
public class GetEncryptionCommand extends Command {
public GetEncryptionCommand(boolean isAsync) {
this.name = "GetEncryption";
this.isAsync = isAsync;
}
@Override
public CommandType getCommandType() {
return CommandType.GET_ENCRYPTION;
}
@Override
protected void createCommand() throws CommandException {
GetEncryptionCommandProtocol.GetEncryptionCommand.Builder builder = GetEncryptionCommandProtocol.GetEncryptionCommand.newBuilder();
builder = builder.setRequestId(this.getRequestId());
CommandProtocol.Command.Builder commandBuilder =
CommandProtocol.Command.newBuilder();
commandBuilder = commandBuilder.setGetEncryptionCommand(builder)
.setRequestID(this.getRequestId())
.setVersion(Command.VERSION)
.setType(CommandProtocol.Command.Type.GET_ENCRYPTION);
_command = commandBuilder.build();
}
@Override
public RequestType getCommandRequestType() {
return RequestType.InternalCommand;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy