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

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

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

origin: org.fusesource.rrd4j/rrd4j

/**
 * <p>Creates sample with the timestamp and data source values supplied
 * in the argument string and stores sample in the corresponding RRD.
 * This method is just a shortcut for:</p>
 * <pre>
 *     set(timeAndValues);
 *     update();
 * </pre>
 *
 * @param timeAndValues String made by concatenating sample timestamp with corresponding
 *                      data source values delmited with colons. For example:<br>
 *                      <code>1005234132:12.2:35.6:U:24.5</code><br>
 *                      <code>NOW:12.2:35.6:U:24.5</code>
 * @throws IOException Thrown in case of I/O error.
 */
public void setAndUpdate(String timeAndValues) throws IOException {
  set(timeAndValues);
  update();
}
origin: org.rrd4j/rrd4j

/**
 * Creates sample with the timestamp and data source values supplied
 * in the argument string and stores sample in the corresponding RRD.
 * This method is just a shortcut for:
 * <pre>
 *     set(timeAndValues);
 *     update();
 * </pre>
 *
 * @param timeAndValues String made by concatenating sample timestamp with corresponding
 *                      data source values delmited with colons. For example:<br>
 *                      <code>1005234132:12.2:35.6:U:24.5</code><br>
 *                      <code>NOW:12.2:35.6:U:24.5</code>
 * @throws java.io.IOException Thrown in case of I/O error.
 */
public void setAndUpdate(String timeAndValues) throws IOException {
  set(timeAndValues);
  update();
}
org.rrd4j.coreSampleset

Javadoc

Sets sample timestamp and data source values in a fashion similar to RRDTool. Argument string should be composed in the following way: timestamp:value1:value2:...:valueN.

You don't have to supply all datasource values. Unspecified values will be treated as unknowns. To specify unknown value in the argument string, use letter 'U'.

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.
  • dump
    Dumps sample content using the syntax of RRDTool's update command.
  • 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.
  • 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

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Notification (javax.management)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Github Copilot alternatives
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