Package step.client.repository
Class StagingRepositoryClient.StagingContext
java.lang.Object
step.client.AbstractRemoteClient
step.client.repository.StagingRepositoryClient.StagingContext
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- StagingRepositoryClient
-
Field Summary
Fields inherited from class step.client.AbstractRemoteClient
client, cookies, credentials
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
run()
Runs the uploaded plan in an isolated mode.Runs the uploaded plan in an isolated mode using the provided parameters.upload
(InputStream stream, String resourceName) Uploads the resource provided as stream to theStagingRepositoryClient.StagingContext
uploadFile
(File file) Uploads the local file provided as argument to theStagingRepositoryClient.StagingContext
void
uploadPlan
(Plan plan) Uploads a Plan to theStagingRepositoryClient.StagingContext
Methods inherited from class step.client.AbstractRemoteClient
executeRequest, notImplemented, requestBuilder, requestBuilder
-
Field Details
-
contextId
-
-
Constructor Details
-
StagingContext
-
-
Method Details
-
uploadFile
Uploads the local file provided as argument to theStagingRepositoryClient.StagingContext
- Parameters:
file
- the local file to be uploaded- Returns:
- the handle to the uploaded file
-
upload
Uploads the resource provided as stream to theStagingRepositoryClient.StagingContext
- Parameters:
stream
- the stream of the resource to be uploadedresourceName
- the name of the resource- Returns:
- the handle to the uploaded resource
-
uploadPlan
Uploads a Plan to theStagingRepositoryClient.StagingContext
- Parameters:
plan
-
-
run
Runs the uploaded plan in an isolated mode. The plan will only be able to access the artefacts uploaded to this context- Returns:
- the
PlanRunnerResult
of the execution
-
run
Runs the uploaded plan in an isolated mode using the provided parameters. The plan will only be able to access the artefacts uploaded to this context- Parameters:
executionParameters
- a list of key-value parameters. these parameters correspond to the parameters that can be selected in UI when starting an execution- Returns:
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classAbstractRemoteClient
-