Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.splout.db.dnode;
  * #%L
  * Splout SQL Server
  * %%
  * Copyright (C) 2012 Datasalt Systems S.L.
  * %%
  * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * GNU General Public License for more details.
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <>.
 * #L%
Use this interface for implementing the business logic of the DNode service. One may want to do this for implementing unit tests and validating that the DNode receives requests.
public interface IDNodeHandler {
	public void init(SploutConfiguration configthrows Exception;

Method called when init(com.splout.db.common.SploutConfiguration) has been performed and the service is ready to accept request. Typically, this method will register the service as ready in the cluster.
	public void giveGreenLigth();
	public String sqlQuery(String tablespacelong versionint partitionString query)
	    throws DNodeException;
	public String deploy(final List<DeployActiondeployActionsfinal long versionthrows DNodeException;
	public String rollback(List<RollbackActionrollbackActionsString ignoreMethrows DNodeException;
	public String status() throws DNodeException;
	public String abortDeploy(long versionthrows DNodeException;
	public String testCommand(String commandthrows DNodeException;
	public void stop() throws Exception;
New to GrepCode? Check out our FAQ X