InfluxDB.LogLevel| Constructor and Description |
|---|
InfluxDBImpl(String url,
String username,
String password)
Constructor which should only be used from the InfluxDBFactory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
alterDatabasePrivilege(String database,
String name,
boolean isAdmin,
String... permissions)
Alter the admin privilege of a given database user.
|
void |
authenticateDatabaseUser(String database,
String user,
String userPassword)
Authenticate with the given credentials against the database.
|
void |
createClusterAdmin(String name,
String adminPassword)
Create a new cluster admin.
|
void |
createDatabase(DatabaseConfiguration config)
Create a new Database from a
DatabaseConfiguration. |
void |
createDatabase(String name)
Create a new Database.
|
void |
createDatabaseUser(String database,
String name,
String userPassword,
String... permissions)
Create a new regular database user.
|
void |
createShard(Shard shard)
Create a new Shard.
|
void |
createShardSpace(String database,
ShardSpace shardSpace)
Create a ShardSpace in a Database.
|
void |
deleteClusterAdmin(String name)
Delete a cluster admin.
|
void |
deleteContinuousQuery(String database,
int id)
Delete a continous query.
|
void |
deleteDatabase(String name)
Delete a database.
|
void |
deleteDatabaseUser(String database,
String name)
Delete a database user.
|
void |
deleteSeries(String database,
String serieName)
Delete a serie.
|
List<User> |
describeClusterAdmins()
Describe all cluster admins.
|
List<ContinuousQuery> |
describeContinuousQueries(String database)
Describe all contious queries in a database.
|
List<Database> |
describeDatabases()
Describe all available databases.
|
List<User> |
describeDatabaseUsers(String database)
Describe all database users allowed to acces the given database.
|
void |
dropShard(Shard shard)
Drop the given shard.
|
void |
dropShardSpace(String database,
String name)
Drop a existing ShardSpace from a Database.
|
void |
forceRaftCompaction()
Force Database compaction.
|
Shards |
getShards()
Describe all existing shards.
|
List<ShardSpace> |
getShardSpaces()
Describe all existing shardspaces.
|
List<String> |
interfaces()
List all interfaces influxDB is listening.
|
List<Server> |
listServers()
List all servers which are member of the cluster.
|
Pong |
ping()
Ping this influxDB-
|
List<Serie> |
query(String database,
String query,
TimeUnit precision)
Execute a query agains a database.
|
void |
removeServers(int id)
Remove the given Server from the cluster.
|
InfluxDB |
setLogLevel(InfluxDB.LogLevel logLevel)
Set the loglevel which is used for REST related actions.
|
Boolean |
sync()
Sync the database to the filesystem.
|
void |
updateClusterAdmin(String name,
String adminPassword)
Update the password of the given admin.
|
void |
updateDatabaseUser(String database,
String name,
String newPassword,
String... permissions)
Update the password and/or the permissions of a database user.
|
String |
version()
Return the version of the connected influxDB Server.
|
void |
write(String database,
TimeUnit precision,
Serie... series)
Write a Series to the given database.
|
void |
writeUdp(int port,
TimeUnit precision,
Serie... series)
Write a Series to the given database.
|
public InfluxDB setLogLevel(InfluxDB.LogLevel logLevel)
InfluxDBsetLogLevel in interface InfluxDBlogLevel - the loglevel to set.public String version()
InfluxDBpublic void write(String database, TimeUnit precision, Serie... series)
InfluxDBpublic void writeUdp(int port,
TimeUnit precision,
Serie... series)
InfluxDBpublic List<Serie> query(String database, String query, TimeUnit precision)
InfluxDBquery in interface InfluxDBdatabase - the name of the database.query - the query to execute, for language specification please see http://influxdb.org/docs/query_languageprecision - the precision used for the values.public void createDatabase(String name)
InfluxDBcreateDatabase in interface InfluxDBname - the name of the new database.public void createDatabase(DatabaseConfiguration config)
InfluxDBDatabaseConfiguration. This is the way to create a db
with shards specified.createDatabase in interface InfluxDBconfig - the configuration for the database to create..public void deleteDatabase(String name)
InfluxDBdeleteDatabase in interface InfluxDBname - the name of the database to delete.public List<Database> describeDatabases()
InfluxDBdescribeDatabases in interface InfluxDBpublic void createClusterAdmin(String name, String adminPassword)
InfluxDBcreateClusterAdmin in interface InfluxDBname - the name of the new admin.adminPassword - the password for the new admin.public void deleteClusterAdmin(String name)
InfluxDBdeleteClusterAdmin in interface InfluxDBname - the name of the admin to delete.public List<User> describeClusterAdmins()
InfluxDBdescribeClusterAdmins in interface InfluxDBpublic void updateClusterAdmin(String name, String adminPassword)
InfluxDBupdateClusterAdmin in interface InfluxDBname - the name of the admin for which the password should be updated.adminPassword - the new password for the given admin.public void createDatabaseUser(String database, String name, String userPassword, String... permissions)
InfluxDBcreateDatabaseUser in interface InfluxDBdatabase - the name of the database where this user is allowed.name - the name of the new database user.userPassword - the password for this user.permissions - a array of readFrom and writeTo permissions (in this order) and given in regex
form.public void deleteDatabaseUser(String database, String name)
InfluxDBdeleteDatabaseUser in interface InfluxDBdatabase - the name of the database the given user should be removed from.name - the name of the user to remove.public List<User> describeDatabaseUsers(String database)
InfluxDBdescribeDatabaseUsers in interface InfluxDBdatabase - the name of the database for which all users should be described.public void updateDatabaseUser(String database, String name, String newPassword, String... permissions)
InfluxDBupdateDatabaseUser in interface InfluxDBdatabase - the name of the database where this user is allowed.name - the name of the existing database user.newPassword - the password for this user.permissions - a array of readFrom and writeTo permissions (in this order) and given in regex
form.public void alterDatabasePrivilege(String database, String name, boolean isAdmin, String... permissions)
InfluxDBalterDatabasePrivilege in interface InfluxDBdatabase - the name of the database where this user is allowed.name - the name of the existing database user.isAdmin - if set to true this user is a database admin, otherwise it isnt.permissions - a array of readFrom and writeTo permissions (in this order) and given in regex
form.public void authenticateDatabaseUser(String database, String user, String userPassword)
InfluxDBauthenticateDatabaseUser in interface InfluxDBdatabase - the name of the database where this user is allowed.user - the name of the existing database user.userPassword - the password for this user.public List<ContinuousQuery> describeContinuousQueries(String database)
InfluxDBdescribeContinuousQueries in interface InfluxDBdatabase - the name of the database for which all continous queries should be described.public void deleteContinuousQuery(String database, int id)
InfluxDBdeleteContinuousQuery in interface InfluxDBdatabase - the name of the database for which this query should be deleted.id - the id of the query.public void deleteSeries(String database, String serieName)
InfluxDBdeleteSeries in interface InfluxDBdatabase - the database in which the given serie should be deleted.serieName - the name of the serie.public void forceRaftCompaction()
forceRaftCompaction in interface InfluxDBpublic List<String> interfaces()
interfaces in interface InfluxDBpublic Boolean sync()
public List<Server> listServers()
listServers in interface InfluxDBpublic void removeServers(int id)
removeServers in interface InfluxDBid - the id of the server to remove.public void createShard(Shard shard)
createShard in interface InfluxDBshard - the new shard to create.public Shards getShards()
public void dropShard(Shard shard)
public List<ShardSpace> getShardSpaces()
getShardSpaces in interface InfluxDBpublic void dropShardSpace(String database, String name)
dropShardSpace in interface InfluxDBdatabase - the name of the database.name - the name of the ShardSpace to delete.public void createShardSpace(String database, ShardSpace shardSpace)
createShardSpace in interface InfluxDBdatabase - the name of the database.shardSpace - the shardSpace to create in this databaseCopyright © 2014. All Rights Reserved.