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 using the provided configuration. |
static FluoWorker |
newWorker(SimpleConfiguration configuration)
Creates a
FluoWorker using the provided configuration. |
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 client.* prefix. Please review all client.* properties but many
have a default. At a minimum, configuration should contain the following properties that have
no default: fluo.client.accumulo.user, fluo.client.accumulo.password,
fluo.client.accumulo.instancepublic static FluoAdmin newAdmin(SimpleConfiguration configuration)
FluoAdmin
client for administering Fluo. Configuration (see
FluoConfiguration
) should contain properties with client.* and admin.* prefix. Please
review all properties but many have a default. At a minimum, configuration should contain the
following properties that have no default: fluo.client.accumulo.user,
fluo.client.accumulo.password, fluo.client.accumulo.instance, fluo.admin.accumulo.table,
fluo.admin.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
using the provided configuration.public static FluoWorker newWorker(SimpleConfiguration configuration)
FluoWorker
using the provided configuration.Copyright © 2016 The Apache Software Foundation. All rights reserved.