Class ClusterConnection
- java.lang.Object
-
- com.yahoo.vespa.http.client.core.communication.ClusterConnection
-
- All Implemented Interfaces:
AutoCloseable
public class ClusterConnection extends Object implements AutoCloseable
- Author:
- Einar M R Rosenvinge
-
-
Constructor Summary
Constructors Constructor Description ClusterConnection(OperationProcessor operationProcessor, FeedParams feedParams, ConnectionParams connectionParams, Cluster cluster, int clusterId, int clientQueueSizePerCluster, ScheduledThreadPoolExecutor timeoutExecutor, Clock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(Object o)
int
getClusterId()
String
getStatsAsJSon()
int
hashCode()
List<IOThread>
ioThreads()
void
post(Document document)
-
-
-
Constructor Detail
-
ClusterConnection
public ClusterConnection(OperationProcessor operationProcessor, FeedParams feedParams, ConnectionParams connectionParams, Cluster cluster, int clusterId, int clientQueueSizePerCluster, ScheduledThreadPoolExecutor timeoutExecutor, Clock clock)
-
-
Method Detail
-
getClusterId
public int getClusterId()
-
post
public void post(Document document) throws EndpointIOException
- Throws:
EndpointIOException
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
getStatsAsJSon
public String getStatsAsJSon() throws IOException
- Throws:
IOException
-
-