public class RemoteFunctionPackageClientImpl extends step.client.AbstractRemoteClient implements FunctionPackageClient
Constructor and Description |
---|
RemoteFunctionPackageClientImpl() |
RemoteFunctionPackageClientImpl(step.client.credentials.ControllerCredentials credentials) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
deleteKeywordPackage(String packlageId)
Delete an existing Keyword package
|
FunctionPackage |
lookupPackageByResourceName(String resourceName)
Retrieve a
FunctionPackage object based on the resourceName associated with it. |
FunctionPackage |
newKeywordPackage(File packageLibraryFile,
File packageFile,
Map<String,String> packageAttributes)
Creates a new Keyword package
|
FunctionPackage |
updateKeywordPackageById(FunctionPackage previousPackage,
File packageLibraryFile,
File packageFile,
Map<String,String> packageAttributes)
Update an existing Keyword package identified by its ObjectId
|
FunctionPackage |
updateResourceBasedKeywordPackage(File packageLibraryFile,
File packageFile,
Map<String,String> packageAttributes)
Update an existing Keyword package with a new version of the resource(s), the package is implicitly managed via resource name
Warning: if multiple resources are created with the same name, or if multiple keyword packages reference the same resource,
only the first match will be updated.
|
protected step.resources.Resource |
upload(File file) |
public RemoteFunctionPackageClientImpl()
public RemoteFunctionPackageClientImpl(step.client.credentials.ControllerCredentials credentials)
public FunctionPackage newKeywordPackage(File packageLibraryFile, File packageFile, Map<String,String> packageAttributes) throws IOException
FunctionPackageClient
newKeywordPackage
in interface FunctionPackageClient
packageLibraryFile
- a ZippackageFile
- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the ControllerpackageAttributes
- the attributes of the Keyword (ex: version, app, etc)FunctionPackage
IOException
- in case of any errorpublic FunctionPackage updateKeywordPackageById(FunctionPackage previousPackage, File packageLibraryFile, File packageFile, Map<String,String> packageAttributes) throws IOException
FunctionPackageClient
updateKeywordPackageById
in interface FunctionPackageClient
previousPackage
- the older version of the FunctionPackage
obtained at creation time (i.e returned by newKeywordPackage)packageLibraryFile
- a ZippackageFile
- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the ControllerpackageAttributes
- (optional) the attributes the keyword package can be identified with, by default the resource name will be usedFunctionPackage
IOException
- in case of any errorpublic void deleteKeywordPackage(String packlageId)
FunctionPackageClient
deleteKeywordPackage
in interface FunctionPackageClient
public FunctionPackage updateResourceBasedKeywordPackage(File packageLibraryFile, File packageFile, Map<String,String> packageAttributes) throws IOException
FunctionPackageClient
updateResourceBasedKeywordPackage
in interface FunctionPackageClient
packageLibraryFile
- a ZippackageFile
- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the ControllerpackageAttributes
- (optional) the attributes the keyword package can be identified with, by default the resource name will be usedFunctionPackage
IOException
- in case of any errorpublic FunctionPackage lookupPackageByResourceName(String resourceName) throws IOException
FunctionPackageClient
FunctionPackage
object based on the resourceName associated with it.
Warning: if multiple resources are created with the same name, or if multiple keyword packages reference the same resource,
only the first match will be updated.lookupPackageByResourceName
in interface FunctionPackageClient
resourceName
- the name of the Resource that the searched FunctionPackage
relies onFunctionPackage
, if any match occurredIOException
- in case of any errorprotected step.resources.Resource upload(File file) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class step.client.AbstractRemoteClient
IOException
Copyright © 2020. All rights reserved.