public class ExampleDataPackageUpload extends Object
Constructor and Description |
---|
ExampleDataPackageUpload() |
Modifier and Type | Method and Description |
---|---|
void |
copyDataPackages(CNode sourceCN,
MNode targetMN,
List<Identifier> oreIdentifiers)
Copy oreIdentifers from sourceCn to targetMN.
|
static void |
main(String[] args)
Demonstrates copying data package from a source CN to a target MN.
|
void |
uploadDataPackages(MNode targetMN,
File rootDir)
Uploads data packages in rootDir to targetMN.
|
boolean |
uploadDataPackageWithRetry(MNode targetMN,
File tmpDir,
int uploadRetries)
Uploads data package in tmpDir to targetMN.
|
public static void main(String[] args) throws ServiceFailure
args
- ServiceFailure
public void copyDataPackages(CNode sourceCN, MNode targetMN, List<Identifier> oreIdentifiers)
sourceCN
- targetMN
- oreIdentifiers
- public void uploadDataPackages(MNode targetMN, File rootDir)
targetMN
- rootDir
- public boolean uploadDataPackageWithRetry(MNode targetMN, File tmpDir, int uploadRetries)
targetMN
- tmpDir
- uploadRetries
- Copyright © 2020. All Rights Reserved.