org.infinispan.cli.connection.Connection Maven / Gradle / Ivy
package org.infinispan.cli.connection;
import java.io.Closeable;
import java.io.IOException;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.CompletionStage;
import java.util.function.BiFunction;
import org.infinispan.cli.resources.Resource;
import org.infinispan.client.rest.RestClient;
import org.infinispan.client.rest.RestResponse;
import org.infinispan.commons.dataconversion.MediaType;
public interface Connection extends Closeable {
void connect() throws IOException;
void connect(String username, String password) throws IOException;
String getURI();
String execute(BiFunction> op, ResponseMode responseMode) throws IOException;
Resource getActiveResource();
void setActiveResource(Resource resource);
Resource getActiveContainer();
Collection getAvailableCaches(String container);
Collection getAvailableContainers();
Collection getAvailableCounters(String container) throws IOException;
Collection getAvailableCacheConfigurations(String container);
Collection getAvailableSchemas(String container) throws IOException;
Collection getAvailableServers(String container) throws IOException;
Collection getAvailableSites(String container, String cache) throws IOException;
Collection getAvailableTasks(String container) throws IOException;
Iterable