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

org.lumongo.client.command.GetIndexes Maven / Gradle / Ivy

There is a newer version: 0.52
Show newest version
package org.lumongo.client.command;

import com.google.protobuf.RpcController;
import com.google.protobuf.ServiceException;
import org.lumongo.client.command.base.SimpleCommand;
import org.lumongo.client.pool.LumongoConnection;
import org.lumongo.client.result.GetIndexesResult;
import org.lumongo.cluster.message.Lumongo.ExternalService;
import org.lumongo.cluster.message.Lumongo.GetIndexesRequest;
import org.lumongo.cluster.message.Lumongo.GetIndexesResponse;

public class GetIndexes extends SimpleCommand {

	public GetIndexes() {

	}

	@Override
	public GetIndexesRequest getRequest() {
		return GetIndexesRequest.newBuilder().build();
	}

	@Override
	public GetIndexesResult execute(LumongoConnection lumongoConnection) throws ServiceException {
		ExternalService.BlockingInterface service = lumongoConnection.getService();

		RpcController controller = lumongoConnection.getController();

		GetIndexesResponse getIndexesResponse = service.getIndexes(controller, getRequest());

		return new GetIndexesResult(getIndexesResponse);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy