public interface FluoAdmin extends AutoCloseable
Modifier and Type | Interface and Description |
---|---|
static class |
FluoAdmin.AlreadyInitializedException
Exception that is thrown if Fluo application was already initialized.
|
static class |
FluoAdmin.InitializationOptions
Specifies destructive Fluo initialization options that can not be set using
FluoConfiguration . |
static class |
FluoAdmin.TableExistsException
Exception that is thrown if Accumulo table (set by fluo.admin.accumulo.table) exists during
initialization.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
SimpleConfiguration |
getApplicationConfig() |
SimpleConfiguration |
getConnectionConfig() |
void |
initialize(FluoAdmin.InitializationOptions opts)
Initializes Fluo application and stores shared configuration in Zookeeper.
|
void |
remove()
Removes Fluo application, Accumulo table and shared configuration in Zookeeper.
|
void |
updateSharedConfig()
Updates shared configuration in Zookeeper.
|
void initialize(FluoAdmin.InitializationOptions opts) throws FluoAdmin.AlreadyInitializedException, FluoAdmin.TableExistsException
FluoAdmin.AlreadyInitializedException
if Fluo application was already initialized in Zookeeper.
If you want to initialize Zookeeper again, set
FluoAdmin.InitializationOptions.setClearZookeeper(boolean)
to true. Throws
FluoAdmin.TableExistsException
if Accumulo table exists. If you want to clear table, set
FluoAdmin.InitializationOptions.setClearTable(boolean)
to true.void remove()
void updateSharedConfig()
initialize(InitializationOptions)
but wants changes to shared configuration updated in
Zookeeper.
During this method Observers are reinitialized using configuration passed to FluoAdmin and not existing shared configuration stored in zookeeper. So make sure all config needed by observers is present.
SimpleConfiguration getConnectionConfig()
SimpleConfiguration getApplicationConfig()
void close()
close
in interface AutoCloseable
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.