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

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

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

origin: org.apache.marmotta/marmotta-loader-core

  @Override
  public void run() {
    try {
      long time = System.currentTimeMillis() / 1000;
      synchronized (statSample) {
        statSample.setTime(time);
        statSample.setValues(handler.triples);
        statSample.update();
      }
    } catch (Exception e) {
      log.warn("could not update statistics database: {}", e.getMessage());
    }
  }
}
origin: apache/marmotta

  @Override
  public void run() {
    try {
      long time = System.currentTimeMillis() / 1000;
      synchronized (statSample) {
        statSample.setTime(time);
        statSample.setValues(handler.triples);
        statSample.update();
      }
    } catch (Exception e) {
      log.warn("could not update statistics database: {}", e.getMessage());
    }
  }
}
origin: codice/ddf

private void updateSample(long now, double val) throws IOException {
 LOGGER.debug(
   "Sample time is [{}], updating metric [{}] with value [{}]",
   MetricsUtil.getCalendarTime(now),
   mbeanName,
   val);
 sample.setTime(now);
 sample.setValue(rrdDataSourceName, val);
 sample.update();
}
origin: org.fusesource.rrd4j/rrd4j

sample.setTime(t);
sample.setValue("sun", sunSource.getValue());
sample.setValue("shade", shadeSource.getValue());
org.rrd4j.coreSamplesetTime

Javadoc

Sets sample timestamp. Timestamp should be defined in seconds (without milliseconds).

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.
  • <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

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top plugins for Android Studio
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