Tabnine Logo
RepositoryPort.repositoryType
Code IndexAdd Tabnine to your IDE (free)

How to use
repositoryType
method
in
kieker.analysis.plugin.annotation.RepositoryPort

Best Java code snippets using kieker.analysis.plugin.annotation.RepositoryPort.repositoryType (Showing top 2 results out of 315)

origin: kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public final void connect(final String reponame, final AbstractRepository repository) throws AnalysisConfigurationException {
  if (this.state != STATE.READY) {
    throw new AnalysisConfigurationException("Plugin: " + this.getClass().getName() + " final not in " + STATE.READY + " this.state, but final in state "
        + this.state + ".");
  }
  final RepositoryPort port = this.repositoryPorts.get(reponame);
  if (port == null) {
    throw new AnalysisConfigurationException("Failed to connect plugin '" + this.getName() + "' (" + this.getPluginName() + ") to repository '"
        + repository.getName() + "' (" + repository.getRepositoryName() + "). Unknown repository port: " + reponame);
  }
  final Class<? extends AbstractRepository> repositoryType = port.repositoryType();
  if (!repositoryType.isAssignableFrom(repository.getClass())) {
    throw new AnalysisConfigurationException("Failed to connect plugin '" + this.getName() + "' (" + this.getPluginName() + ") to repository '"
        + repository.getName() + "' (" + repository.getRepositoryName() + "). Expected RepositoryType: " + repositoryType.getName() + " Found: "
        + repository.getClass().getName());
  }
  synchronized (this) {
    if (this.registeredRepositories.containsKey(reponame)) {
      throw new AnalysisConfigurationException("Failed to connect plugin '" + this.getName() + "' (" + this.getPluginName() + ") to repository '"
          + repository.getName() + "' (" + repository.getRepositoryName() + "). RepositoryPort already connected: " + reponame);
    }
    this.registeredRepositories.put(reponame, repository);
  }
}
origin: net.kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public final void connect(final String reponame, final AbstractRepository repository) throws AnalysisConfigurationException {
  if (this.state != STATE.READY) {
    throw new AnalysisConfigurationException("Plugin: " + this.getClass().getName() + " final not in " + STATE.READY + " this.state, but final in state "
        + this.state + ".");
  }
  final RepositoryPort port = this.repositoryPorts.get(reponame);
  if (port == null) {
    throw new AnalysisConfigurationException("Failed to connect plugin '" + this.getName() + "' (" + this.getPluginName() + ") to repository '"
        + repository.getName() + "' (" + repository.getRepositoryName() + "). Unknown repository port: " + reponame);
  }
  final Class<? extends AbstractRepository> repositoryType = port.repositoryType();
  if (!repositoryType.isAssignableFrom(repository.getClass())) {
    throw new AnalysisConfigurationException("Failed to connect plugin '" + this.getName() + "' (" + this.getPluginName() + ") to repository '"
        + repository.getName() + "' (" + repository.getRepositoryName() + "). Expected RepositoryType: " + repositoryType.getName() + " Found: "
        + repository.getClass().getName());
  }
  synchronized (this) {
    if (this.registeredRepositories.containsKey(reponame)) {
      throw new AnalysisConfigurationException("Failed to connect plugin '" + this.getName() + "' (" + this.getPluginName() + ") to repository '"
          + repository.getName() + "' (" + repository.getRepositoryName() + "). RepositoryPort already connected: " + reponame);
    }
    this.registeredRepositories.put(reponame, repository);
  }
}
kieker.analysis.plugin.annotationRepositoryPortrepositoryType

Popular methods of RepositoryPort

  • <init>
  • name

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • getContentResolver (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Reference (javax.naming)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best plugins for Eclipse
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