public class BumbleBeeApi extends Object
| Constructor and Description |
|---|
BumbleBeeApi(String bumbleBeeUrl,
int timeOutInSeconds)
Creates instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEncryptedPassword(String password)
Encrypts the password string on bumblebee server.
|
String |
getLicenseExpirationDate()
Get the license expiration date.
|
String |
getUrlForQcUpdate(BumblebeeRemoteExecutor.Parameters parameters)
Create URL for uploading files to bumblebee.
|
boolean |
uploadSingleFile(hudson.FilePath filePath,
BumblebeeRemoteExecutor.Parameters parameters,
StringBuilderWrapper log)
Upload single file to bumblebee.
|
void |
validateLicense()
Validates the bumblebee server license.
|
public BumbleBeeApi(String bumbleBeeUrl, int timeOutInSeconds)
bumbleBeeUrl - The URL of BumbleBee instance.timeOutInSeconds - Time out for HTTP Connections in seconds. 0 - infinite
timeout. Less than 0 - use operating system default.public void validateLicense()
throws IOException,
BumbleBeeException,
org.json.JSONException
BumbleBeeException
if license is expired or invalid.IOExceptionBumbleBeeExceptionorg.json.JSONExceptionpublic String getLicenseExpirationDate() throws IOException, BumbleBeeException, org.json.JSONException
IOExceptionBumbleBeeExceptionorg.json.JSONExceptionpublic String getEncryptedPassword(String password) throws IOException, BumbleBeeException, org.json.JSONException
password - The password string to encrypt.IOExceptionBumbleBeeExceptionorg.json.JSONExceptionpublic boolean uploadSingleFile(hudson.FilePath filePath,
BumblebeeRemoteExecutor.Parameters parameters,
StringBuilderWrapper log)
throws IOException,
BumbleBeeException,
org.json.JSONException
filePath - The file pathparameters - parameterslog - console to log intotrue if file has been uploaded successfully,
false otherwise.IOExceptionBumbleBeeExceptionorg.json.JSONExceptionpublic String getUrlForQcUpdate(BumblebeeRemoteExecutor.Parameters parameters) throws UnsupportedEncodingException
parameters - the parametersUnsupportedEncodingExceptionCopyright © 2004-2014. All Rights Reserved.