Search in sources :

Example 6 with TCompactionQueueSummary

use of org.apache.accumulo.core.tabletserver.thrift.TCompactionQueueSummary in project accumulo by apache.

the class QueueSummariesTest method update.

private void update(QueueSummaries queueSum, String tserver, String... data) {
    TServerInstance tsi = ntsi(tserver);
    List<TCompactionQueueSummary> summaries = new ArrayList<>();
    for (int i = 0; i < data.length; i += 2) {
        summaries.add(new TCompactionQueueSummary(data[i], Short.parseShort(data[i + 1])));
    }
    queueSum.update(tsi, summaries);
}
Also used : ArrayList(java.util.ArrayList) TCompactionQueueSummary(org.apache.accumulo.core.tabletserver.thrift.TCompactionQueueSummary) TServerInstance(org.apache.accumulo.core.metadata.TServerInstance)

Aggregations

TCompactionQueueSummary (org.apache.accumulo.core.tabletserver.thrift.TCompactionQueueSummary)6 ArrayList (java.util.ArrayList)5 TServerInstance (org.apache.accumulo.core.metadata.TServerInstance)5 TreeSet (java.util.TreeSet)4 AccumuloConfiguration (org.apache.accumulo.core.conf.AccumuloConfiguration)4 ThriftUtil (org.apache.accumulo.core.rpc.ThriftUtil)4 TCredentials (org.apache.accumulo.core.securityImpl.thrift.TCredentials)4 TabletClientService (org.apache.accumulo.core.tabletserver.thrift.TabletClientService)4 Client (org.apache.accumulo.core.tabletserver.thrift.TabletClientService.Client)4 HostAndPort (org.apache.accumulo.core.util.HostAndPort)4 RunningCompaction (org.apache.accumulo.core.util.compaction.RunningCompaction)4 AbstractServer (org.apache.accumulo.server.AbstractServer)4 ServerContext (org.apache.accumulo.server.ServerContext)4 LiveTServerSet (org.apache.accumulo.server.manager.LiveTServerSet)4 ServerAddress (org.apache.accumulo.server.rpc.ServerAddress)4 AuditedSecurityOperation (org.apache.accumulo.server.security.AuditedSecurityOperation)4 Test (org.junit.Test)4 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)4 ExternalCompactionId (org.apache.accumulo.core.metadata.schema.ExternalCompactionId)2 TExternalCompactionJob (org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob)2