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

io.zulia.server.connection.server.handler.DeleteIndexServerRequest Maven / Gradle / Ivy

There is a newer version: 1.6.4
Show newest version
package io.zulia.server.connection.server.handler;

import io.zulia.message.ZuliaServiceOuterClass.DeleteIndexRequest;
import io.zulia.message.ZuliaServiceOuterClass.DeleteIndexResponse;
import io.zulia.server.index.ZuliaIndexManager;

import java.util.logging.Level;
import java.util.logging.Logger;

public class DeleteIndexServerRequest extends ServerRequestHandler {

	private final static Logger LOG = Logger.getLogger(DeleteIndexServerRequest.class.getSimpleName());

	public DeleteIndexServerRequest(ZuliaIndexManager indexManager) {
		super(indexManager);
	}

	@Override
	protected DeleteIndexResponse handleCall(ZuliaIndexManager indexManager, DeleteIndexRequest request) throws Exception {
		return indexManager.deleteIndex(request);
	}

	@Override
	protected void onError(Throwable e) {
		LOG.log(Level.SEVERE, "Failed to handle delete index", e);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy