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