Package org.jrobin.core

Examples of org.jrobin.core.Sample.update()


      long totalMemory = __runtime.totalMemory();
      sample.setValue("maxMemory", __runtime.maxMemory());
      sample.setValue("totalMemory", totalMemory);
      sample.setValue("usedMemory", totalMemory - __runtime.freeMemory());
      // No values are set for incomingMessages, outgoingMessages to reset these counters.
      sample.update();
      _rrdPool.release(rrdDb);
    }
    catch (Exception e)
    {
      _logger.warn("Unable to set statistics", e);
View Full Code Here


        timeInGc += (Long) _connection.getAttribute(objectName, "CollectionTime");
      }
      sample.setValue("timeInGc", timeInGc / nbCpu);
     
     
      sample.update();
      _rrdPool.release(rrdDb);
    }
    catch (Exception e)
    {
      _logger.warn("Unable to set statistics", e);
View Full Code Here

          }
          else {
            sample.setValue(dsNames[j - 1], parseDouble(tokens[j]));
          }
        }
        sample.update();
      }
      return timestamp;
    }
    finally {
      releaseRrdDbReference(rrdDb);
View Full Code Here

                        sample.setValue(definition.getDatasourceName(), statSample);
                        sampledStats.add(definition.getDatasourceName());
                        definition.lastSampleTime = newTime;
                        definition.lastSample = statSample;
                    }
                    sample.update();
                }
                catch (IOException e) {
                    Log.error("Error sampling for statistic " + key, e);
                }
                catch (RrdException e) {
View Full Code Here

          }
          else {
            sample.setValue(dsNames[j - 1], parseDouble(tokens[j]));
          }
        }
        sample.update();
      }
      return timestamp;
    }
    finally {
      releaseRrdDbReference(rrdDb);
View Full Code Here

              sample.setValue(entry.getKey(), Double.valueOf(entry.getValue().toString()));
            }
          }
        }
      }
      sample.update();
    } finally {
      if (db != null) {
        db.close();
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.