|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.UpdateCenter.UpdateCenterConfiguration
public static class UpdateCenter.UpdateCenterConfiguration
Strategy object for controlling the update center's behaviors.
Until 1.333, this extension point used to control the configuration of
where to get updates (hence the name of this class), but with the introduction
of multiple update center sites capability, that functionality is achieved by
simply installing another UpdateSite
.
See UpdateSite
for how to manipulate them programmatically.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Constructor Summary | |
---|---|
UpdateCenter.UpdateCenterConfiguration()
Creates default update center configuration - uses settings for global update center. |
Method Summary | |
---|---|
void |
checkConnection(UpdateCenter.ConnectionCheckJob job,
String connectionCheckUrl)
Check network connectivity by trying to establish a connection to the host in connectionCheckUrl. |
void |
checkUpdateCenter(UpdateCenter.ConnectionCheckJob job,
String updateCenterUrl)
Check connection to update center server. |
protected URLConnection |
connect(UpdateCenter.DownloadJob job,
URL src)
Connects to the given URL for downloading the binary. |
File |
download(UpdateCenter.DownloadJob job,
URL src)
Download a plugin or core upgrade in preparation for installing it into its final location. |
String |
getConnectionCheckUrl()
Deprecated. as of 1.333 With the introduction of multiple update center capability, this information is now a part of the update-center.json file. See http://jenkins-ci.org/update-center.json as an example. |
String |
getPluginRepositoryBaseUrl()
Deprecated. as of 1.333 update-center.json is now signed, so we don't have to further make sure that we aren't downloading from anywhere unsecure. |
String |
getUpdateCenterUrl()
Deprecated. as of 1.333 With the introduction of multiple update center capability, this information is now moved to UpdateSite . |
void |
install(UpdateCenter.DownloadJob job,
File src,
File dst)
Called after a plugin has been downloaded to move it into its final location. |
void |
postValidate(UpdateCenter.DownloadJob job,
File src)
Validate the resource after it has been downloaded, before it is installed. |
void |
preValidate(UpdateCenter.DownloadJob job,
URL src)
Validate the URL of the resource before downloading it. |
void |
upgrade(UpdateCenter.DownloadJob job,
File src,
File dst)
Called after an upgrade has been downloaded to move it into its final location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateCenter.UpdateCenterConfiguration()
Method Detail |
---|
public void checkConnection(UpdateCenter.ConnectionCheckJob job, String connectionCheckUrl) throws IOException
job
- The connection checker that is invoking this strategy.connectionCheckUrl
- A string containing the URL of a domain
that is assumed to be always available.
IOException
- if a connection can't be establishedpublic void checkUpdateCenter(UpdateCenter.ConnectionCheckJob job, String updateCenterUrl) throws IOException
job
- The connection checker that is invoking this strategy.updateCenterUrl
- A sting containing the URL of the update center host.
IOException
- if a connection to the update center server can't be established.public void preValidate(UpdateCenter.DownloadJob job, URL src) throws IOException
job
- The download job that is invoking this strategy. This job is
responsible for managing the status of the download and installation.src
- The location of the resource on the network
IOException
- if the validation failspublic void postValidate(UpdateCenter.DownloadJob job, File src) throws IOException
job
- The download job that is invoking this strategy. This job is
responsible for managing the status of the download and installation.src
- The location of the downloaded resource.
IOException
- if the validation fails.public File download(UpdateCenter.DownloadJob job, URL src) throws IOException
job
- The download job that is invoking this strategy. This job is
responsible for managing the status of the download and installation.src
- The URL to the resource to be downloaded.
IOException
- if there were problems downloading the resource.UpdateCenter.DownloadJob
protected URLConnection connect(UpdateCenter.DownloadJob job, URL src) throws IOException
IOException
public void install(UpdateCenter.DownloadJob job, File src, File dst) throws IOException
job
- The install job that is invoking this strategy.src
- The temporary location of the plugin.dst
- The final destination to install the plugin to.
IOException
- if there are problems installing the resource.public void upgrade(UpdateCenter.DownloadJob job, File src, File dst) throws IOException
job
- The upgrade job that is invoking this strategy.src
- The temporary location of the upgrade.dst
- The final destination to install the upgrade to.
IOException
- if there are problems installing the resource.public String getConnectionCheckUrl()
public String getUpdateCenterUrl()
UpdateSite
.
public String getPluginRepositoryBaseUrl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |