org.apache.accumulo.core.client.admin
Class InstanceOperations

java.lang.Object
  extended by org.apache.accumulo.core.client.admin.InstanceOperations

public class InstanceOperations
extends java.lang.Object

Provides a class for administering the accumulo instance


Constructor Summary
InstanceOperations(Instance instance, AuthInfo credentials)
           
 
Method Summary
 java.util.List<ActiveScan> getActiveScans(java.lang.String tserver)
          List the active scans on tablet server.
 java.util.List<java.lang.String> getTabletServers()
          List the currently active tablet servers participating in the accumulo instance
 void removeProperty(java.lang.String property)
          Removes a instance property from zookeeper
 void setProperty(java.lang.String property, java.lang.String value)
          Sets an instance property in zookeeper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceOperations

public InstanceOperations(Instance instance,
                          AuthInfo credentials)
Parameters:
instance - the connection information for this instance
credentials - the username/password for this connection
Method Detail

setProperty

public void setProperty(java.lang.String property,
                        java.lang.String value)
                 throws AccumuloException,
                        AccumuloSecurityException
Sets an instance property in zookeeper. Tablet servers will pull this setting and override the equivalent setting in accumulo-site.xml

Parameters:
property - the name of a per-table property
value - the value to set a per-table property to
Throws:
AccumuloException - if a general error occurs
AccumuloSecurityException - if the user does not have permission

removeProperty

public void removeProperty(java.lang.String property)
                    throws AccumuloException,
                           AccumuloSecurityException
Removes a instance property from zookeeper

Parameters:
tableName - the name of the table
property - the name of a per-table property
Throws:
AccumuloException - if a general error occurs
AccumuloSecurityException - if the user does not have permission

getTabletServers

public java.util.List<java.lang.String> getTabletServers()
List the currently active tablet servers participating in the accumulo instance

Returns:

getActiveScans

public java.util.List<ActiveScan> getActiveScans(java.lang.String tserver)
                                          throws AccumuloException,
                                                 AccumuloSecurityException
List the active scans on tablet server. The tablet server address should be of the form :

Parameters:
tserver -
Returns:
Throws:
AccumuloException
AccumuloSecurityException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.