public class CIToolIngester extends Object
Modifier and Type | Field and Description |
---|---|
static List<CatalogObject> |
catObjs |
static Map<String,String> |
refInfo |
static boolean |
targetAvailable |
Constructor and Description |
---|
CIToolIngester(IngestReport report) |
Modifier and Type | Method and Description |
---|---|
boolean |
compare(URL source,
URL target)
Perform a comparison between 2 files.
|
void |
getFilesFromStorageService(List<String> requiredFiles) |
org.apache.oodt.cas.filemgr.structs.Product |
getProductFromStorageService(String fileName) |
Map<String,String> |
getTargetInfos(String targetName) |
void |
ingest(Target target,
boolean recurse)
Ingest catalog file(s).
|
gov.nasa.pds.tools.label.Label |
parse(URL url)
Method to parse the PDS catalog file
|
void |
parseLabel(URL source)
Parse a label
|
void |
parseLabels(List<URL> sources)
Ingest catalog files from the given directories.
|
void |
process() |
void |
setRegistryUrl(String registryUrl) |
void |
setSecurity(SecurityContext securityContext,
String username,
String password)
Sets the security.
|
void |
setStorageUrl(String storageUrl) |
void |
setTransportUrl(String transportUrl) |
public static List<CatalogObject> catObjs
public static boolean targetAvailable
public CIToolIngester(IngestReport report)
public void setRegistryUrl(String registryUrl)
public void setStorageUrl(String storageUrl)
public void setTransportUrl(String transportUrl)
public void setSecurity(SecurityContext securityContext, String username, String password)
securityContext
- An object containing the keystore information.username
- Username of an authorized user.password
- Password associated with the given username.RegistryClientException
- If an error occurred while initializing
the security.public void ingest(Target target, boolean recurse) throws Exception
target
- URL of the target (directory or file)Exception
public void parseLabel(URL source)
source
- URL of the catalog file.public void process()
public org.apache.oodt.cas.filemgr.structs.Product getProductFromStorageService(String fileName)
public void parseLabels(List<URL> sources)
sources
- URL of the directory of catalog filespublic gov.nasa.pds.tools.label.Label parse(URL url)
url
- URL of the pds catalog filepublic boolean compare(URL source, URL target)
source
- URL of the source file.target
- URL of the target file.gov.nasa.pds.tools.LabelParserException
IOException
Copyright © 2010–2016 Planetary Data System. All rights reserved.