|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.accumulo.core.client.admin.InstanceOperationsImpl
public class InstanceOperationsImpl
Provides a class for administering the accumulo instance
| Constructor Summary | |
|---|---|
InstanceOperationsImpl(Instance instance,
AuthInfo credentials)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstanceOperationsImpl(Instance instance,
AuthInfo credentials)
instance - the connection information for this instancecredentials - the username/password for this connection| Method Detail |
|---|
public void setProperty(String property,
String value)
throws AccumuloException,
AccumuloSecurityException
InstanceOperations
setProperty in interface InstanceOperationsproperty - the name of a per-table propertyvalue - the value to set a per-table property to
AccumuloException - if a general error occurs
AccumuloSecurityException - if the user does not have permission
public void removeProperty(String property)
throws AccumuloException,
AccumuloSecurityException
InstanceOperations
removeProperty in interface InstanceOperationsproperty - the name of a per-table property
AccumuloException - if a general error occurs
AccumuloSecurityException - if the user does not have permission
public Map<String,String> getSystemConfiguration()
throws AccumuloException,
AccumuloSecurityException
getSystemConfiguration in interface InstanceOperationsAccumuloException
AccumuloSecurityException
public Map<String,String> getSiteConfiguration()
throws AccumuloException,
AccumuloSecurityException
getSiteConfiguration in interface InstanceOperationsAccumuloException
AccumuloSecurityExceptionpublic List<String> getTabletServers()
InstanceOperations
getTabletServers in interface InstanceOperations
public List<ActiveScan> getActiveScans(String tserver)
throws AccumuloException,
AccumuloSecurityException
InstanceOperations
getActiveScans in interface InstanceOperationstserver - The tablet server address should be of the form AccumuloException
AccumuloSecurityException
public boolean testClassLoad(String className,
String asTypeName)
throws AccumuloException,
AccumuloSecurityException
InstanceOperations
testClassLoad in interface InstanceOperationsAccumuloException
AccumuloSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||