congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AbstractStringRegistryReaderPlugin
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractStringRegistryReaderPlugin
in
kieker.analysis.plugin.reader

Best Java code snippets using kieker.analysis.plugin.reader.AbstractStringRegistryReaderPlugin (Showing top 6 results out of 315)

origin: kieker-monitoring/kieker

private AbstractStringRegistryReaderPlugin(final Configuration configuration, final IProjectContext projectContext, final long cacheExpirationDuration,
    final TimeUnit cacheExpirationTimeUnit) {
  super(configuration, projectContext);
  this.stringRegistryLookup = this.createCache(cacheExpirationDuration, cacheExpirationTimeUnit);
}
origin: kieker-monitoring/kieker

private void readRegularRecord(final ByteBuffer buffer) {
  final long registryId = buffer.getLong();
  final int classId = buffer.getInt();
  final long loggingTimestamp = buffer.getLong();
  final ReaderRegistry<String> stringRegistry = this.getStringRegistry(registryId);
  try {
    final String recordClassName = stringRegistry.get(classId);
    final IRecordFactory<? extends IMonitoringRecord> recordFactory = this.cachedRecordFactoryCatalog.get(recordClassName);
    final IMonitoringRecord record = recordFactory.create(BinaryValueDeserializer.create(buffer, stringRegistry));
    record.setLoggingTimestamp(loggingTimestamp);
    this.reader.deliverRecord(record);
  } catch (final RecordInstantiationException e) {
    LOGGER.error("Error instantiating record", e);
  }
}
origin: net.kieker-monitoring/kieker

@Override
public boolean init() {
  final boolean superInitSucceeded = super.init();
  if (!superInitSucceeded) {
    return false;
  }
  try {
    this.connection = this.createConnection();
    this.channel = this.connection.createChannel();
    this.consumer = new QueueingConsumer(this.channel);
  } catch (final KeyManagementException e) {
    this.handleInitializationError(e);
    return false;
  } catch (final NoSuchAlgorithmException e) {
    this.handleInitializationError(e);
    return false;
  } catch (final IOException e) {
    this.handleInitializationError(e);
    return false;
  } catch (final TimeoutException e) {
    this.handleInitializationError(e);
    return false;
  } catch (final URISyntaxException e) {
    this.handleInitializationError(e);
    return false;
  }
  return true;
}
origin: net.kieker-monitoring/kieker

private void readRegularRecord(final ByteBuffer buffer) {
  final long registryId = buffer.getLong();
  final int classId = buffer.getInt();
  final long loggingTimestamp = buffer.getLong();
  final ILookup<String> stringRegistry = this.getStringRegistry(registryId);
  try {
    final String recordClassName = stringRegistry.get(classId);
    final IRecordFactory<? extends IMonitoringRecord> recordFactory = this.cachedRecordFactoryCatalog.get(recordClassName);
    final IMonitoringRecord record = recordFactory.create(DefaultValueDeserializer.create(buffer, stringRegistry));
    record.setLoggingTimestamp(loggingTimestamp);
    this.reader.deliverRecord(record);
  } catch (final RecordInstantiationException e) {
    LOG.error("Error instantiating record", e);
  }
}
origin: kieker-monitoring/kieker

@Override
public boolean init() {
  final boolean superInitSucceeded = super.init();
  if (!superInitSucceeded) {
    return false;
  }
  try {
    this.connection = this.createConnection();
    this.channel = this.connection.createChannel();
    this.consumer = new QueueingConsumer(this.channel);
  } catch (final KeyManagementException e) {
    this.handleInitializationError(e);
    return false;
  } catch (final NoSuchAlgorithmException e) {
    this.handleInitializationError(e);
    return false;
  } catch (final IOException e) {
    this.handleInitializationError(e);
    return false;
  } catch (final TimeoutException e) {
    this.handleInitializationError(e);
    return false;
  } catch (final URISyntaxException e) {
    this.handleInitializationError(e);
    return false;
  }
  return true;
}
origin: net.kieker-monitoring/kieker

private AbstractStringRegistryReaderPlugin(final Configuration configuration, final IProjectContext projectContext, final long cacheExpirationDuration,
    final TimeUnit cacheExpirationTimeUnit) {
  super(configuration, projectContext);
  this.stringRegistryLookup = this.createCache(cacheExpirationDuration, cacheExpirationTimeUnit);
}
kieker.analysis.plugin.readerAbstractStringRegistryReaderPlugin

Javadoc

This class should be used as the abstract super class for all readers which make use of string registries to reduce the amount of transferred data. It provides the necessary infrastructure to handle multiple concurrent registries for multiple clients and other convenience methods.

Most used methods

  • createCache
    Creates the cache to be used for storing string registries. This method can be overriden to use a pa
  • deliverRecord
    Delivers the given record to the appropriate output port(s).
  • init

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now