Codota Logo
MetricsRegistry.getInstance
Code IndexAdd Codota to your IDE (free)

How to use
getInstance
method
in
org.pentaho.di.core.logging.MetricsRegistry

Best Java code snippets using org.pentaho.di.core.logging.MetricsRegistry.getInstance (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

public static List<MetricsSnapshotInterface> getResultsList( Metrics metric ) {
 List<MetricsSnapshotInterface> snapshots = new ArrayList<MetricsSnapshotInterface>();
 Map<String, Map<String, MetricsSnapshotInterface>> snapshotMaps =
  MetricsRegistry.getInstance().getSnapshotMaps();
 Iterator<Map<String, MetricsSnapshotInterface>> mapsIterator = snapshotMaps.values().iterator();
 while ( mapsIterator.hasNext() ) {
  Map<String, MetricsSnapshotInterface> map = mapsIterator.next();
  Iterator<MetricsSnapshotInterface> snapshotIterator = map.values().iterator();
  while ( snapshotIterator.hasNext() ) {
   MetricsSnapshotInterface snapshot = snapshotIterator.next();
   if ( snapshot.getMetric().equals( metric ) ) {
    snapshots.add( snapshot );
   }
  }
 }
 return snapshots;
}
origin: pentaho/pentaho-kettle

public static Long getResult( Metrics metric ) {
 Map<String, Map<String, MetricsSnapshotInterface>> snapshotMaps =
  MetricsRegistry.getInstance().getSnapshotMaps();
 Iterator<Map<String, MetricsSnapshotInterface>> mapsIterator = snapshotMaps.values().iterator();
 while ( mapsIterator.hasNext() ) {
  Map<String, MetricsSnapshotInterface> map = mapsIterator.next();
  Iterator<MetricsSnapshotInterface> snapshotIterator = map.values().iterator();
  while ( snapshotIterator.hasNext() ) {
   MetricsSnapshotInterface snapshot = snapshotIterator.next();
   if ( snapshot.getMetric().equals( metric ) ) {
    return snapshot.getValue();
   }
  }
 }
 return null;
}
origin: pentaho/pentaho-kettle

/**
 * Discard all the lines for the specified log channel id AND all the children.
 *
 * @param parentLogChannelId
 *          the parent log channel id to be removed along with all its children.
 */
public static void discardLines( String parentLogChannelId, boolean includeGeneralMessages ) {
 LoggingRegistry registry = LoggingRegistry.getInstance();
 MetricsRegistry metricsRegistry = MetricsRegistry.getInstance();
 List<String> ids = registry.getLogChannelChildren( parentLogChannelId );
 // Remove all the rows for these ids
 //
 LoggingBuffer bufferAppender = getInstance().appender;
 // int beforeSize = bufferAppender.size();
 for ( String id : ids ) {
  // Remove it from the central log buffer
  //
  bufferAppender.removeChannelFromBuffer( id );
  // Also remove the item from the registry.
  //
  registry.getMap().remove( id );
  metricsRegistry.getSnapshotLists().remove( id );
  metricsRegistry.getSnapshotMaps().remove( id );
 }
 // Now discard the general lines if this is required
 //
 if ( includeGeneralMessages ) {
  bufferAppender.removeGeneralMessages();
 }
}
origin: pentaho/pentaho-kettle

Map<String, MetricsDuration> map = new HashMap<String, MetricsDuration>();
Queue<MetricsSnapshotInterface> metrics = MetricsRegistry.getInstance().getSnapshotList( logChannelId );
origin: pentaho/pentaho-kettle

List<MetricsDuration> durations = new ArrayList<MetricsDuration>();
Queue<MetricsSnapshotInterface> metrics = MetricsRegistry.getInstance().getSnapshotList( logChannelId );
MetricsSnapshotInterface start = null;
origin: pentaho/pentaho-kettle

for ( String logChannelId : logChannelIds ) {
 Queue<MetricsSnapshotInterface> snapshotList =
  MetricsRegistry.getInstance().getSnapshotLists().get( logChannelId );
 if ( snapshotList != null ) {
  Iterator<MetricsSnapshotInterface> iterator = snapshotList.iterator();
  MetricsRegistry.getInstance().getSnapshotMaps().get( logChannelId );
 if ( snapshotMap != null ) {
  synchronized ( snapshotMap ) {
origin: pentaho/pentaho-kettle

 void cleanUp() {
  KettleClientEnvironment.reset();
  PluginRegistry.getInstance().reset();
  MetricsRegistry.getInstance().reset();
  ExtensionPointMap.getInstance().reset();
  if ( KettleLogStore.isInitialized() ) {
   KettleLogStore.getInstance().reset();
  }
  KettleLogStore.setLogChannelInterfaceFactory( new LogChannelFactory() );
  if ( Props.isInitialized() ) {
   Props.getInstance().reset();
  }
  KettleVFS.getInstance().reset();
  XMLHandlerCache.getInstance().clear();
  ValueMetaFactory.pluginRegistry = PluginRegistry.getInstance();
  // under no circumstance reset the LoggingRegistry
//    LoggingRegistry.getInstance().reset();
 }

org.pentaho.di.core.loggingMetricsRegistrygetInstance

Popular methods of MetricsRegistry

  • getSnapshotLists
  • getSnapshotMaps
  • getSnapshotList
    Get the snapshot list for the given log channel ID. If no list is available, one is created (and sto
  • getSnapshotMap
    Get the snapshot map for the given log channel ID. If no map is available, one is created (and store
  • reset

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
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