*
* @see org.apache.accumulo.core.client.admin.InstanceOperations#getActiveCompactions(java.lang.String)
*/
@Override
public List<ActiveCompaction> getActiveCompactions(String tserver) throws AccumuloException, AccumuloSecurityException {
Client client = null;
try {
client = ThriftUtil.getTServerClient(tserver, instance.getConfiguration());
List<ActiveCompaction> as = new ArrayList<ActiveCompaction>();
for (org.apache.accumulo.core.tabletserver.thrift.ActiveCompaction activeCompaction : client.getActiveCompactions(Tracer.traceInfo(), credentials)) {
as.add(new ActiveCompaction(instance, activeCompaction));
}
return as;
} catch (TTransportException e) {
throw new AccumuloException(e);