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

All Known Implementing Classes:
InstanceOperationsImpl, MockInstanceOperations

public interface InstanceOperations


Method Summary
 List<ActiveScan> getActiveScans(String tserver)
          List the active scans on tablet server.
 Map<String,String> getSiteConfiguration()
           
 Map<String,String> getSystemConfiguration()
           
 List<String> getTabletServers()
          List the currently active tablet servers participating in the accumulo instance
 void removeProperty(String property)
          Removes a instance property from zookeeper
 void setProperty(String property, String value)
          Sets an instance property in zookeeper.
 boolean testClassLoad(String className, String asTypeName)
          Test to see if the instance can load the given class as the given type.
 

Method Detail

setProperty

void setProperty(String property,
                 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

void removeProperty(String property)
                    throws AccumuloException,
                           AccumuloSecurityException
Removes a instance property from zookeeper

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

getSystemConfiguration

Map<String,String> getSystemConfiguration()
                                          throws AccumuloException,
                                                 AccumuloSecurityException
Throws:
AccumuloException
AccumuloSecurityException

getSiteConfiguration

Map<String,String> getSiteConfiguration()
                                        throws AccumuloException,
                                               AccumuloSecurityException
Throws:
AccumuloException
AccumuloSecurityException

getTabletServers

List<String> getTabletServers()
List the currently active tablet servers participating in the accumulo instance

Returns:
A list of currently active tablet servers.

getActiveScans

List<ActiveScan> getActiveScans(String tserver)
                                throws AccumuloException,
                                       AccumuloSecurityException
List the active scans on tablet server.

Parameters:
tserver - The tablet server address should be of the form :
Returns:
A list of active scans on tablet server.
Throws:
AccumuloException
AccumuloSecurityException

testClassLoad

boolean testClassLoad(String className,
                      String asTypeName)
                      throws AccumuloException,
                             AccumuloSecurityException
Test to see if the instance can load the given class as the given type.

Parameters:
className -
asTypeName -
Returns:
true if the instance can load the given class as the given type, false otherwise
Throws:
AccumuloException
AccumuloSecurityException


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