Codota Logo
MonKey.getRangeKey
Code IndexAdd Codota to your IDE (free)

How to use
getRangeKey
method
in
com.jamonapi.MonKey

Best Java code snippets using com.jamonapi.MonKey.getRangeKey (Showing top 5 results out of 315)

  • Common ways to obtain MonKey
private void myMethod () {
MonKey m =
  • Codota IconMonitor monitor;monitor.getMonKey()
  • Smart code suggestions by Codota
}
origin: stevensouza/jamonapi

/**
 *
 * @return A collection of all the unit types that are currently in this object (i.e. ms., ns., Exception,...)
 * @since  2.81
 */
public Collection<String> getDistinctUnits() {
  Set<String> units = new TreeSet<String>();
  int size=monitors.length;
  for (int i=0;i<size;i++) {
    units.add(monitors[i].getMonKey().getRangeKey());
  }
  return units;
}
origin: stevensouza/jamonapi

private Monitor[] getMonitorsWithUnits(String units) {
  if (monitors==null || units==null) {
    return null;
  } else if ("AllMonitors".equalsIgnoreCase(units)) {
    return monitors;
  }
  int size=monitors.length;
  List rows=new ArrayList(monitors.length);
  for (int i=0;i<size;i++) {
    // if units of range match units of this monitor then
    if (units.equalsIgnoreCase(monitors[i].getMonKey().getRangeKey())) {
      rows.add(monitors[i]);
    }
  }
  if (rows.size()==0) {
    return null;
  } else {
    return (MonitorImp[]) rows.toArray(new MonitorImp[0]);
  }
}
origin: com.jamonapi/com.springsource.com.jamonapi

private MonitorImp[] getMonitors(String units) {
  MonitorImp[] monitors=getMonitors();
  if (monitors==null || units==null)
   return null;
  else if ("AllMonitors".equalsIgnoreCase(units))
   return monitors;
  
  List rows=new ArrayList(500);
  
  int size=monitors.length;
  for (int i=0;i<size;i++) {
    // if units of range match units of this monitor then 
    if (units.equalsIgnoreCase(monitors[i].getMonKey().getRangeKey()))
     rows.add(monitors[i]);
  }
  
  if (rows.size()==0)
    return null;
  else
    return (MonitorImp[]) rows.toArray(new MonitorImp[0]);
  
}
 
origin: com.jamonapi/com.springsource.com.jamonapi

private MonitorImp createMon(MonKey key, boolean isPrimary, boolean isTimeMonitor)  {
   ActivityStats activityStats=new ActivityStats(new Counter(), primaryActive, allActive);
   // get default range for this type and assign it to the monitor
   RangeImp range=rangeFactory.getRangeDefault(key.getRangeKey(), activityStats);
   MonitorImp mon=new MonitorImp(key, range, activityStats, isTimeMonitor); 
       
   mon.setPrimary(isPrimary);
   return mon;
}
origin: stevensouza/jamonapi

private MonitorImp createMon(MonKey key, boolean isPrimary, boolean isTimeMonitor)  {
  ActivityStats activityStats=new ActivityStats(new Counter(), primaryActive, allActive);
  // get default range for this type and assign it to the monitor
  RangeImp range=rangeFactory.getRangeDefault(key.getRangeKey(), activityStats);
  MonitorImp mon=new MonitorImp(key, range, activityStats, isTimeMonitor);
  // activity tracking is off by default.
  if (isTotalKeySizeTrackingEnabled()) {
    incrementKeySize(key.getSize());
  }
  if (activityTracking) {
    mon.setActivityTracking(activityTracking);
  }
  mon.setPrimary(isPrimary);
  return mon;
}
com.jamonapiMonKeygetRangeKey

Javadoc

Uses this value to look up an associated Range

Popular methods of MonKey

  • setDetails
  • getValue
    return any value associated with the key. new MonKey(label, units). would return the value associate
  • getBasicHeader
  • getBasicRowData
  • getDisplayHeader
  • getHeader
  • getRowData
  • getRowDisplayData
  • getDetailLabel
  • getDetails
  • getSize
    Returns the size of the key in characters within the key. Note it doesn't calculate the actual memor
  • setInstanceName
  • getSize,
  • setInstanceName

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • JList (javax.swing)
  • JOptionPane (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now