Tabnine Logo
Sample.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.rrd4j.core.Sample
constructor

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

origin: org.rrd4j/rrd4j

/**
 * <p>Creates new sample with the given timestamp and all datasource values set to
 * 'unknown'. Use returned <code>Sample</code> object to specify
 * datasource values for the given timestamp. See documentation for
 * {@link Sample Sample} for an explanation how to do this.</p>
 * <p>Once populated with data source values, call Sample's
 * {@link org.rrd4j.core.Sample#update() update()} method to actually
 * store sample in the RRD associated with it.</p>
 *
 * @param time Sample timestamp rounded to the nearest second (without milliseconds).
 * @return Fresh sample with the given timestamp and all data source values set to 'unknown'.
 * @throws java.io.IOException Thrown in case of I/O error.
 */
public Sample createSample(long time) throws IOException {
  return new Sample(this, time);
}
origin: org.fusesource.rrd4j/rrd4j

/**
 * <p>Creates new sample with the given timestamp and all datasource values set to
 * 'unknown'. Use returned <code>Sample</code> object to specify
 * datasource values for the given timestamp. See documentation for
 * {@link Sample Sample} for an explanation how to do this.</p>
 * <p/>
 * <p>Once populated with data source values, call Sample's
 * {@link Sample#update() update()} method to actually
 * store sample in the RRD associated with it.</p>
 *
 * @param time Sample timestamp rounded to the nearest second (without milliseconds).
 * @return Fresh sample with the given timestamp and all data source values set to 'unknown'.
 * @throws IOException Thrown in case of I/O error.
 */
public Sample createSample(long time) throws IOException {
  return new Sample(this, time);
}
org.rrd4j.coreSample<init>

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

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JList (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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