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

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Top 15 Vim Plugins
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