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.
|
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 String getLicenseExpirationDate() throws IOException, BumbleBeeException, org.json.JSONException
IOException
BumbleBeeException
org.json.JSONException
public String getEncryptedPassword(String password) throws IOException, BumbleBeeException, org.json.JSONException
password
- The password string to encrypt.IOException
BumbleBeeException
org.json.JSONException
public 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.IOException
BumbleBeeException
org.json.JSONException
public String getUrlForQcUpdate(BumblebeeRemoteExecutor.Parameters parameters) throws UnsupportedEncodingException
parameters
- the parametersUnsupportedEncodingException
Copyright © 2004-2016. All Rights Reserved.