Package org.apache.fluo.api.client
Class FluoFactory
- java.lang.Object
-
- org.apache.fluo.api.client.FluoFactory
-
public class FluoFactory extends Object
Factory for creatingFluoClient
,FluoAdmin
, andMiniFluo
. All factory methods take a configuration object which can be built usingFluoConfiguration
.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description FluoFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FluoAdmin
newAdmin(SimpleConfiguration configuration)
Creates aFluoAdmin
client for administering Fluo.static FluoClient
newClient(SimpleConfiguration configuration)
Creates aFluoClient
for reading and writing data to Fluo.static MiniFluo
newMiniFluo(SimpleConfiguration configuration)
Creates aMiniFluo
using the provided configuration.static FluoOracle
newOracle(SimpleConfiguration configuration)
Creates aFluoOracle
.static FluoWorker
newWorker(SimpleConfiguration configuration)
Creates aFluoWorker
.
-
-
-
Method Detail
-
newClient
public static FluoClient newClient(SimpleConfiguration configuration)
Creates aFluoClient
for reading and writing data to Fluo.FluoClient.close()
should be called when you are finished using it. Configuration (seeFluoConfiguration
) 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.name
-
newAdmin
public static FluoAdmin newAdmin(SimpleConfiguration configuration)
Creates aFluoAdmin
client for administering Fluo. Configuration (seeFluoConfiguration
) 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.classpath
-
newMiniFluo
public static MiniFluo newMiniFluo(SimpleConfiguration configuration)
Creates aMiniFluo
using the provided configuration. Configuration (seeFluoConfiguration
) 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.table
-
newOracle
public static FluoOracle newOracle(SimpleConfiguration configuration)
Creates aFluoOracle
. Configuration (seeFluoConfiguration
) 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.name
-
newWorker
public static FluoWorker newWorker(SimpleConfiguration configuration)
Creates aFluoWorker
. Configuration (seeFluoConfiguration
) 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.name
-
-