influxdata/influxdb-java

View on GitHub
src/main/java/org/influxdb/InfluxDB.java

Summary

Maintainability
C
1 day
Test Coverage

InfluxDB has 50 methods (exceeds 20 allowed). Consider refactoring.
Open

public interface InfluxDB extends AutoCloseable {

  /**
   * The system property key to set the http logging level across the JVM.
   * @see LogLevel for available values
Severity: Minor
Found in src/main/java/org/influxdb/InfluxDB.java - About 7 hrs to fix

    Method enableBatch has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      InfluxDB enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit,
                           ThreadFactory threadFactory, BiConsumer<Iterable<Point>, Throwable> exceptionHandler,
                           ConsistencyLevel consistency);
    Severity: Minor
    Found in src/main/java/org/influxdb/InfluxDB.java - About 45 mins to fix

      Method createRetentionPolicy has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        public void createRetentionPolicy(final String rpName, final String database, final String duration,
                                          final String shardDuration, final int replicationFactor, final boolean isDefault);
      Severity: Minor
      Found in src/main/java/org/influxdb/InfluxDB.java - About 45 mins to fix

        Method enableBatch has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          public InfluxDB enableBatch(final int actions, final int flushDuration, final TimeUnit flushDurationTimeUnit,
                                      final ThreadFactory threadFactory,
                                      final BiConsumer<Iterable<Point>, Throwable> exceptionHandler);
        Severity: Minor
        Found in src/main/java/org/influxdb/InfluxDB.java - About 35 mins to fix

          Method write has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            public void write(final String database, final String retentionPolicy,
                    final ConsistencyLevel consistency, final TimeUnit precision, final List<String> records);
          Severity: Minor
          Found in src/main/java/org/influxdb/InfluxDB.java - About 35 mins to fix

            Method createRetentionPolicy has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              public void createRetentionPolicy(final String rpName, final String database, final String duration,
                                                final String shardDuration, final int replicationFactor);
            Severity: Minor
            Found in src/main/java/org/influxdb/InfluxDB.java - About 35 mins to fix

              Method query has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                public void query(Query query, int chunkSize, BiConsumer<Cancellable, QueryResult> onNext, Runnable onComplete,
                                  Consumer<Throwable> onFailure);
              Severity: Minor
              Found in src/main/java/org/influxdb/InfluxDB.java - About 35 mins to fix

                Method createRetentionPolicy has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  public void createRetentionPolicy(final String rpName, final String database, final String duration,
                                                    final int replicationFactor, final boolean isDefault);
                Severity: Minor
                Found in src/main/java/org/influxdb/InfluxDB.java - About 35 mins to fix

                  Method write has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                    public void write(final String database, final String retentionPolicy,
                            final ConsistencyLevel consistency, final TimeUnit precision, final String records);
                  Severity: Minor
                  Found in src/main/java/org/influxdb/InfluxDB.java - About 35 mins to fix

                    There are no issues that match your filters.

                    Category
                    Status