hudson.plugins.build_publisher
Class HudsonInstance

java.lang.Object
  extended by hudson.plugins.build_publisher.HudsonInstance

public final class HudsonInstance
extends java.lang.Object

Represents remote public Hudson instance.

Author:
dvrzalik@redhat.com

Constructor Summary
HudsonInstance(java.lang.String name, java.lang.String url, java.lang.String login, java.lang.String password)
           
 
Method Summary
 java.lang.String getLogin()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 PublisherThread getPublisherThread()
          Gets the thread that does the publication.
 java.util.List<hudson.model.AbstractBuild> getQueue()
          Obtains the current queue of builds that are waiting for publication.
 java.lang.String getUrl()
           
 void publishBuild(hudson.model.AbstractBuild build, StatusInfo status)
          Same as previous, but doesn't set status for the build.
 void publishNewBuild(hudson.model.AbstractBuild build)
          Append the build to the publishing queue.
 boolean requiresAuthentication()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HudsonInstance

public HudsonInstance(java.lang.String name,
                      java.lang.String url,
                      java.lang.String login,
                      java.lang.String password)
Method Detail

getLogin

public java.lang.String getLogin()

getPassword

public java.lang.String getPassword()

requiresAuthentication

public boolean requiresAuthentication()

getUrl

public java.lang.String getUrl()

getName

public java.lang.String getName()

publishNewBuild

public void publishNewBuild(hudson.model.AbstractBuild build)
Append the build to the publishing queue.


publishBuild

public void publishBuild(hudson.model.AbstractBuild build,
                         StatusInfo status)
Same as previous, but doesn't set status for the build.


getQueue

public java.util.List<hudson.model.AbstractBuild> getQueue()
Obtains the current queue of builds that are waiting for publication.


getPublisherThread

public PublisherThread getPublisherThread()
Gets the thread that does the publication.

Returns:
Can be null during the initialization of Hudson.


Copyright © 2004-2011. All Rights Reserved.