congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EventDispatcher
Code IndexAdd Tabnine to your IDE (free)

How to use
EventDispatcher
in
jetbrains.buildServer.util

Best Java code snippets using jetbrains.buildServer.util.EventDispatcher (Showing top 7 results out of 315)

origin: andreizhuk/tc-ansible-runner

public AnsibleReportArtifatcsProvider(
    @NotNull ArtifactsWatcher artifactsWatcher,
    @NotNull EventDispatcher<AgentLifeCycleListener> agentDispatcher) {
  agentDispatcher.addListener(this);
  this.artifactsWatcher = artifactsWatcher;
}

origin: JetBrains/teamcity-s3-artifact-storage-plugin

public S3ArtifactsPublisher(@NotNull final AgentArtifactHelper helper,
              @NotNull final EventDispatcher<AgentLifeCycleListener> dispatcher,
              @NotNull final CurrentBuildTracker tracker,
              @NotNull final BuildAgentConfiguration buildAgentConfiguration) {
 myHelper = helper;
 myTracker = tracker;
 myBuildAgentConfiguration = buildAgentConfiguration;
 dispatcher.addListener(new AgentLifeCycleAdapter() {
  @Override
  public void buildStarted(@NotNull AgentRunningBuild runningBuild) {
   myFileUploader = null;
   myArtifacts.clear();
  }
 });
}
origin: ArcBees/teamcity-plugins

public StagingBuildListener(EventDispatcher<BuildServerListener> listener,
              ExecutorServices executorServices,
              TomcatDeployHandler deployHandler) {
  this.deployHandler = deployHandler;
  executorService = executorServices.getLowPriorityExecutorService();
  listener.addListener(new BuildServerAdapter() {
    @Override
    public void buildFinished(@NotNull SRunningBuild build) {
      onBuildFinished(build);
    }
  });
}
origin: com.blackducksoftware.integration/hub-teamcity-server

public HubServerListener(@NotNull final EventDispatcher<BuildServerListener> dispatcher,
    @NotNull final SBuildServer server, @NotNull final ServerPaths serverPaths) {
  this.server = server;
  dispatcher.addListener(this);
  configPersistenceManager = new ServerHubConfigPersistenceManager(serverPaths);
}
origin: org.jfrog.teamcity/teamcity-artifactory-plugin-server

public ArtifactoryServerListener(@NotNull final EventDispatcher<BuildServerListener> dispatcher,
    @NotNull final SBuildServer server, @NotNull ServerPaths serverPaths) {
  this.server = server;
  dispatcher.addListener(this);
  configPersistenceManager = new ServerConfigPersistenceManager(serverPaths);
}
origin: ArcBees/teamcity-plugins

public PullRequestsBuildListener(EventDispatcher<BuildServerListener> listener,
                 ExecutorServices executorServices,
                 PullRequestStatusHandler statusHandler) {
  this.statusHandler = statusHandler;
  executorService = executorServices.getLowPriorityExecutorService();
  listener.addListener(new BuildServerAdapter() {
    @Override
    public void buildStarted(@NotNull SRunningBuild build) {
      onBuildStatusChanged(build, BuildStatus.STARTING);
    }
    @Override
    public void buildInterrupted(@NotNull SRunningBuild build) {
      onBuildStatusChanged(build, BuildStatus.INTERRUPTED);
    }
    @Override
    public void buildFinished(@NotNull SRunningBuild build) {
      onBuildStatusChanged(build, BuildStatus.FINISHED);
    }
  });
}
origin: ArcBees/teamcity-plugins

public BuildCommitBuildListener(
    EventDispatcher<BuildServerListener> listener,
    ExecutorServices executorServices,
    BuildCommitStatusHandler statusHandler) {
  this.statusHandler = statusHandler;
  executorService = executorServices.getLowPriorityExecutorService();
  listener.addListener(new BuildServerAdapter() {
    @Override
    public void changesLoaded(@NotNull SRunningBuild build) {
      onBuildStatusChanged(build, BuildStatus.STARTING);
    }
    @Override
    public void buildInterrupted(@NotNull SRunningBuild build) {
      onBuildStatusChanged(build, BuildStatus.INTERRUPTED);
    }
    @Override
    public void buildFinished(@NotNull SRunningBuild build) {
      onBuildStatusChanged(build, BuildStatus.FINISHED);
    }
  });
}
jetbrains.buildServer.utilEventDispatcher

Most used methods

  • addListener

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • 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