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 system property from zookeeper.
 void setProperty(String property, String value)
          Sets an system 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 system property in zookeeper. Tablet servers will pull this setting and override the equivalent setting in accumulo-site.xml. Changes can be seen using getSystemConfiguration()

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 system property from zookeeper. Changes can be seen using getSystemConfiguration()

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
Returns:
A map of system properties set in zookeeper. If a property is not set in zookeeper, then it will return the value set in accumulo-site.xml on some server. If nothing is set in an accumulo-site.xml file it will return the default value for each property.
Throws:
AccumuloException
AccumuloSecurityException

getSiteConfiguration

Map<String,String> getSiteConfiguration()
                                        throws AccumuloException,
                                               AccumuloSecurityException
Returns:
A map of system properties set in accumulo-site.xml on some server. If nothing is set in an accumulo-site.xml file it will return the default value for each property.
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 © 2014 The Apache Software Foundation. All Rights Reserved.