public class FluoFactory extends Object
FluoClient
, FluoAdmin
, and MiniFluo
. All factory
methods take a configuration object which can be built using FluoConfiguration
.Constructor and Description |
---|
FluoFactory() |
Modifier and Type | Method and Description |
---|---|
static FluoAdmin |
newAdmin(SimpleConfiguration configuration)
Creates a
FluoAdmin client for administering Fluo. |
static FluoClient |
newClient(SimpleConfiguration configuration)
Creates a
FluoClient for reading and writing data to Fluo. |
static MiniFluo |
newMiniFluo(SimpleConfiguration configuration)
Creates a
MiniFluo using the provided configuration. |
static FluoOracle |
newOracle(SimpleConfiguration configuration)
Creates a
FluoOracle . |
static FluoWorker |
newWorker(SimpleConfiguration configuration)
Creates a
FluoWorker . |
public static FluoClient newClient(SimpleConfiguration configuration)
FluoClient
for reading and writing data to Fluo. FluoClient.close()
should be called when you are finished using it. Configuration (see FluoConfiguration
)
should contain properties with connection.* prefix. Please review all connection.* properties
but many have a default. At a minimum, configuration should contain the following properties
that have no default: fluo.connection.application.namepublic static FluoAdmin newAdmin(SimpleConfiguration configuration)
FluoAdmin
client for administering Fluo. Configuration (see
FluoConfiguration
) should contain all Fluo configuration properties. Review all
properties but many have a default. At a minimum, configuration should contain the following
properties that have no default: fluo.connection.application.name, fluo.accumulo.user,
fluo.accumulo.password, fluo.accumulo.instance, fluo.accumulo.table, fluo.accumulo.classpathpublic static MiniFluo newMiniFluo(SimpleConfiguration configuration)
MiniFluo
using the provided configuration. Configuration (see
FluoConfiguration
) should either contain the property fluo.mini.start.accumulo (set to
true) to indicate that MiniFluo should start its own Accumulo instance or it should contain the
following properties if it is connecting to an existing instance: fluo.client.accumulo.user,
fluo.client.accumulo.password, fluo.client.accumulo.instance, fluo.admin.accumulo.tablepublic static FluoOracle newOracle(SimpleConfiguration configuration)
FluoOracle
. Configuration (see FluoConfiguration
) should contain
properties with connection.* prefix. Please review all connection.* properties but many have a
default. At a minimum, configuration should contain the following properties that have no
default: fluo.connection.application.namepublic static FluoWorker newWorker(SimpleConfiguration configuration)
FluoWorker
. Configuration (see FluoConfiguration
) should contain
properties with connection.* prefix. Please review all connection.* properties but many have a
default. At a minimum, configuration should contain the following properties that have no
default: fluo.connection.application.nameCopyright © 2016–2018 The Apache Software Foundation. All rights reserved.