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

com.googlecode.openbox.server.ServerGroup Maven / Gradle / Ivy

The newest version!
package com.googlecode.openbox.server;

import java.util.Map;


public interface ServerGroup {
	
	void addServer(Server server);
	
	void addServers(ServerGroup serverGroup);
	
	int getNum();
	
	boolean isEmpty();
	
	Server getServer(String host);
	
	void removeServer(String host);
	
	void clearAll();
	
	Server[] listServers();
	
	String[] listServerHosts();

	Map  executeShell(String shell);

	Map  executeCommands(String commands);

	Map executeSingleCommandGetResponse(String command);

	public interface ServerAction {
		T access(Server server);
	}

	 Map visit(ServerAction action) ;

	public interface ServerHandler {
		void execute(Server server);
	}

	void visit(ServerHandler serverHandler) ;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy