Tabnine Logo
Sample.dump
Code IndexAdd Tabnine to your IDE (free)

How to use
dump
method
in
org.rrd4j.core.Sample

Best Java code snippets using org.rrd4j.core.Sample.dump (Showing top 4 results out of 315)

origin: org.fusesource.rrd4j/rrd4j

  String getRrdToolCommand() {
    return dump();
  }
}
origin: org.rrd4j/rrd4j

  String getRrdToolCommand() {
    return dump();
  }
}
origin: fbacchella/jrds

public void commit(JrdsSample sample) {
  RrdDb rrdDb = null;
  try {
    rrdDb = factory.getRrd(getPath());
    Sample onesample = rrdDb.createSample(sample.getTime().getTime() / 1000);
    for(Map.Entry<String, Number> e: sample.entrySet()) {
      onesample.setValue(e.getKey(), e.getValue().doubleValue());
    }
    if(p.getNamedLogger().isDebugEnabled())
      log(Level.DEBUG, "%s", onesample.dump());
    onesample.update();
  } catch (IOException e) {
    log(Level.ERROR, e, "Error while collecting: %s", e.getMessage());
  } finally {
    if(rrdDb != null)
      factory.releaseRrd(rrdDb);
  }
}
origin: org.fusesource.rrd4j/rrd4j

sample.setValue("sun", sunSource.getValue());
sample.setValue("shade", shadeSource.getValue());
log.println(sample.dump());
sample.update();
t += RANDOM.nextDouble() * MAX_STEP + 1;
org.rrd4j.coreSampledump

Javadoc

Dumps sample content using the syntax of RRDTool's update command.

Popular methods of Sample

  • update
    Stores sample in the corresponding RRD. If the update operation succeeds, all datasource values in t
  • setValue
    Sets single data source value in the sample.
  • setTime
    Sets sample timestamp. Timestamp should be defined in seconds (without milliseconds).
  • <init>
  • clearValues
  • getTime
    Returns sample timestamp (in seconds, without milliseconds).
  • getValues
    Returns all current data source values in the sample.
  • set
    Sets sample timestamp and data source values in a fashion similar to RRDTool. Argument string should
  • setAndUpdate
    Creates sample with the timestamp and data source values supplied in the argument string and stores
  • setValues
    Sets some (possibly all) data source values in bulk. Data source values are assigned in the order of

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now