public boolean getArchivingEnabled(byte[] table) throws IOException, KeeperException {
    HFileArchiveManager manager = createHFileArchiveManager();
    try {
      return manager.isArchivingEnabled(table);
    } finally {
      manager.stop();
    }
  }
Determine if archiving is enabled (but not necessarily fully propagated) for a table
@param table name of the table to check
@return <tt>true</tt> if it is, <tt>false</tt> otherwise
@throws IOException     if a connection to ZooKeeper cannot be established
@throws KeeperException if a ZooKeeper operation fails
hbase-server/src/main/java/org/apache/hadoop/hbase/backup/example/ZKTableArchiveClient.java