Package step.functions.packages.client
Class RemoteFunctionPackageClientImpl
java.lang.Object
step.client.AbstractRemoteClient
step.functions.packages.client.RemoteFunctionPackageClientImpl
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- FunctionPackageClient
public class RemoteFunctionPackageClientImpl
extends AbstractRemoteClient
implements FunctionPackageClient
- 
Field SummaryFields inherited from class step.client.AbstractRemoteClientclient, cookies, credentials
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()voiddeleteKeywordPackage(String packlageId) Delete an existing Keyword packagelookupPackageByResourceName(String resourceName) Retrieve aFunctionPackageobject based on the resourceName associated with it.newKeywordPackage(File packageLibraryFile, File packageFile, Map<String, String> packageAttributes, String trackingField) Creates a new Keyword packagenewKeywordPackageWithLibReference(LibFileReference packageLib, File packageFile, Map<String, String> packageAttributes, String trackingField) Creates a new Keyword packageupdateKeywordPackageById(FunctionPackage previousPackage, File packageLibraryFile, File packageFile, Map<String, String> packageAttributes, String trackingField) Update an existing Keyword package identified by its ObjectIdupdateKeywordPackageWithLibReference(FunctionPackage previousPackage, LibFileReference packageLib, File packageFile, Map<String, String> packageAttributes, String trackingField) Update an existing Keyword package identified by its ObjectIdupdateResourceBasedKeywordPackage(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 ResourceMethods inherited from class step.client.AbstractRemoteClientexecuteRequest, notImplemented, requestBuilder, requestBuilder
- 
Constructor Details- 
RemoteFunctionPackageClientImplpublic RemoteFunctionPackageClientImpl()
- 
RemoteFunctionPackageClientImpl
 
- 
- 
Method Details- 
newKeywordPackagepublic FunctionPackage newKeywordPackage(File packageLibraryFile, File packageFile, Map<String, String> packageAttributes, String trackingField) throws IOExceptionDescription copied from interface:FunctionPackageClientCreates a new Keyword package- Specified by:
- newKeywordPackagein interface- FunctionPackageClient
- Parameters:
- packageLibraryFile- a Zip
- packageFile- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the Controller
- packageAttributes- the attributes of the Keyword (ex: version, app, etc)
- trackingField- (optional) the attribute to determine the uniqueness of the function package
- Returns:
- the newly created FunctionPackage
- Throws:
- IOException- in case of any error
 
- 
updateKeywordPackageByIdpublic FunctionPackage updateKeywordPackageById(FunctionPackage previousPackage, File packageLibraryFile, File packageFile, Map<String, String> packageAttributes, String trackingField) throws IOExceptionDescription copied from interface:FunctionPackageClientUpdate an existing Keyword package identified by its ObjectId- Specified by:
- updateKeywordPackageByIdin interface- FunctionPackageClient
- Parameters:
- previousPackage- the older version of the- FunctionPackageobtained at creation time (i.e returned by newKeywordPackage)
- packageLibraryFile- a Zip
- packageFile- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the Controller
- packageAttributes- (optional) the attributes the keyword package can be identified with, by default the resource name will be used
- trackingField- (optional) the attribute to determine the uniqueness of the function package
- Returns:
- the updated FunctionPackage
- Throws:
- IOException- in case of any error
 
- 
newKeywordPackageWithLibReferencepublic FunctionPackage newKeywordPackageWithLibReference(LibFileReference packageLib, File packageFile, Map<String, String> packageAttributes, String trackingField) throws IOExceptionDescription copied from interface:FunctionPackageClientCreates a new Keyword package- Specified by:
- newKeywordPackageWithLibReferencein interface- FunctionPackageClient
- Parameters:
- packageLib- the zip with additional libraries (the binary file to be loaded to the Controller or id of the already uploaded resource).
- packageFile- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the Controller
- packageAttributes- the attributes of the Keyword (ex: version, app, etc)
- trackingField- (optional) the attribute to determine the uniqueness of the function package
- Returns:
- the newly created FunctionPackage
- Throws:
- IOException- in case of any error
 
- 
updateKeywordPackageWithLibReferencepublic FunctionPackage updateKeywordPackageWithLibReference(FunctionPackage previousPackage, LibFileReference packageLib, File packageFile, Map<String, String> packageAttributes, String trackingField) throws IOExceptionDescription copied from interface:FunctionPackageClientUpdate an existing Keyword package identified by its ObjectId- Specified by:
- updateKeywordPackageWithLibReferencein interface- FunctionPackageClient
- Parameters:
- previousPackage- the older version of the- FunctionPackageobtained at creation time (i.e returned by newKeywordPackage)
- packageLib- the zip with additional libraries (the binary file to be loaded to the Controller or id of the already uploaded resource).
- packageFile- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the Controller
- packageAttributes- (optional) the attributes the keyword package can be identified with, by default the resource name will be used
- trackingField- (optional) the attribute to determine the uniqueness of the function package
- Returns:
- the updated FunctionPackage
- Throws:
- IOException- in case of any error
 
- 
deleteKeywordPackageDescription copied from interface:FunctionPackageClientDelete an existing Keyword package- Specified by:
- deleteKeywordPackagein interface- FunctionPackageClient
- Parameters:
- packlageId- the ID of the package
 
- 
updateResourceBasedKeywordPackagepublic FunctionPackage updateResourceBasedKeywordPackage(File packageLibraryFile, File packageFile, Map<String, String> packageAttributes) throws IOExceptionDescription copied from interface:FunctionPackageClientUpdate 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.- Specified by:
- updateResourceBasedKeywordPackagein interface- FunctionPackageClient
- Parameters:
- packageLibraryFile- a Zip
- packageFile- the Jar/DLL file containing the Keyword definitions. The file will be uploaded to the Controller
- packageAttributes- (optional) the attributes the keyword package can be identified with, by default the resource name will be used
- Returns:
- the updated FunctionPackage
- Throws:
- IOException- in case of any error
 
- 
lookupPackageByResourceNameDescription copied from interface:FunctionPackageClientRetrieve aFunctionPackageobject 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.- Specified by:
- lookupPackageByResourceNamein interface- FunctionPackageClient
- Parameters:
- resourceName- the name of the Resource that the searched- FunctionPackagerelies on
- Returns:
- the corresponding FunctionPackage, if any match occurred
- Throws:
- IOException- in case of any error
 
- 
upload- Throws:
- IOException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- AbstractRemoteClient
- Throws:
- IOException
 
 
-