Codota Logo
EventDispatcher.addListener
Code IndexAdd Codota to your IDE (free)

How to use
addListener
method
in
jetbrains.buildServer.util.EventDispatcher

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
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.utilEventDispatcheraddListener

Popular methods of EventDispatcher

    Popular in Java

    • Reactive rest calls using spring rest template
    • compareTo (BigDecimal)
    • addToBackStack (FragmentTransaction)
    • requestLocationUpdates (LocationManager)
    • VirtualMachine (com.sun.tools.attach)
      A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • Semaphore (java.util.concurrent)
      A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
    • ThreadPoolExecutor (java.util.concurrent)
      An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
    • Reference (javax.naming)
    • JCheckBox (javax.swing)
    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