blob: 9081cb9d489cb01c23d0f189298542c6791ae8d1 [file] [log] [blame]
package org.apache.cassandra.sidecar.cluster.instance;
import java.util.List;
import org.apache.cassandra.sidecar.common.CQLSession;
import org.apache.cassandra.sidecar.common.CassandraAdapterDelegate;
import org.apache.cassandra.sidecar.utils.FilePathBuilder;
/**
* Metadata of an instance
*/
public interface InstanceMetadata
{
/**
* Instance id.
*/
int id();
/**
* Host address of cassandra instance.
*/
String host();
/**
* Port number of cassandra instance.
*/
int port();
/**
* List of data directories of cassandra instance.
*/
List<String> dataDirs();
/**
* CQLSession for connecting with instance.
*/
CQLSession session();
/**
* Delegate specific for the instance.
*/
CassandraAdapterDelegate delegate();
/**
* Maintain one path builder for one instance.
*/
FilePathBuilder pathBuilder();
}