Class: Batch
activity/exe-unit/batch.Batch
Table of contents
Constructors
Methods
Constructors
constructor
• new Batch(executor, storageProvider, logger): Batch
Parameters
| Name | Type |
|---|---|
executor | ExeScriptExecutor |
storageProvider | StorageProvider |
logger | Logger |
Returns
Defined in
src/activity/exe-unit/batch.ts:13
Methods
run
▸ run(commandLine): Batch
Execute a command on provider using a shell (/bin/sh).
Parameters
| Name | Type | Description |
|---|---|---|
commandLine | string | Shell command to execute. |
Returns
Defined in
src/activity/exe-unit/batch.ts:26
▸ run(executable, args): Batch
Execute an executable on provider.
Parameters
| Name | Type | Description |
|---|---|---|
executable | string | Executable to run. |
args | string[] | Executable arguments. |
Returns
Defined in
src/activity/exe-unit/batch.ts:34
transfer
▸ transfer(from, to): Batch
Parameters
| Name | Type |
|---|---|
from | string |
to | string |
Returns
Defined in
src/activity/exe-unit/batch.ts:45
uploadFile
▸ uploadFile(src, dst): Batch
Parameters
| Name | Type |
|---|---|
src | string |
dst | string |
Returns
Defined in
src/activity/exe-unit/batch.ts:50
uploadJson
▸ uploadJson(json, dst): Batch
Parameters
| Name | Type |
|---|---|
json | object |
dst | string |
Returns
Defined in
src/activity/exe-unit/batch.ts:55
uploadData
▸ uploadData(data, dst): Batch
Parameters
| Name | Type |
|---|---|
data | Uint8Array |
dst | string |
Returns
Defined in
src/activity/exe-unit/batch.ts:61
downloadFile
▸ downloadFile(src, dst): Batch
Parameters
| Name | Type |
|---|---|
src | string |
dst | string |
Returns
Defined in
src/activity/exe-unit/batch.ts:66
end
▸ end(): Promise<Result<any>[]>
Executes the batch of commands added via run returning result for each of the steps.
Returns
Promise<Result<any>[]>
Defined in
src/activity/exe-unit/batch.ts:74
endStream
▸ endStream(): Promise<Observable<Result<any>>>
Returns
Promise<Observable<Result<any>>>
Defined in
Was this helpful?