public class CIToolIngester
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.List<CatalogObject> |
catObjs |
static java.util.Map<java.lang.String,java.lang.String> |
refInfo |
static boolean |
targetAvailable |
Constructor and Description |
---|
CIToolIngester(IngestReport report) |
Modifier and Type | Method and Description |
---|---|
boolean |
compare(java.net.URL source,
java.net.URL target)
Perform a comparison between 2 files.
|
void |
getFilesFromStorageService(java.util.List<java.lang.String> requiredFiles) |
org.apache.oodt.cas.filemgr.structs.Product |
getProductFromStorageService(java.lang.String fileName) |
java.util.Map<java.lang.String,java.lang.String> |
getTargetInfos(java.lang.String targetName) |
void |
ingest(Target target,
boolean recurse)
Ingest catalog file(s).
|
gov.nasa.pds.tools.label.Label |
parse(java.net.URL url)
Method to parse the PDS catalog file
|
void |
parseLabel(java.net.URL source)
Parse a label
|
void |
parseLabels(java.util.List<java.net.URL> sources)
Ingest catalog files from the given directories.
|
void |
process() |
void |
setRegistryUrl(java.lang.String registryUrl) |
void |
setSecurity(gov.nasa.pds.registry.client.SecurityContext securityContext,
java.lang.String username,
java.lang.String password)
Sets the security.
|
void |
setStorageUrl(java.lang.String storageUrl) |
void |
setTransportUrl(java.lang.String transportUrl) |
public static java.util.List<CatalogObject> catObjs
public static java.util.Map<java.lang.String,java.lang.String> refInfo
public static boolean targetAvailable
public CIToolIngester(IngestReport report)
public void setRegistryUrl(java.lang.String registryUrl)
public void setStorageUrl(java.lang.String storageUrl)
public void setTransportUrl(java.lang.String transportUrl)
public void setSecurity(gov.nasa.pds.registry.client.SecurityContext securityContext, java.lang.String username, java.lang.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 java.lang.Exception
target
- URL of the target (directory or file)java.lang.Exception
public void parseLabel(java.net.URL source)
source
- URL of the catalog file.public void process()
public void getFilesFromStorageService(java.util.List<java.lang.String> requiredFiles)
public org.apache.oodt.cas.filemgr.structs.Product getProductFromStorageService(java.lang.String fileName)
public java.util.Map<java.lang.String,java.lang.String> getTargetInfos(java.lang.String targetName)
public void parseLabels(java.util.List<java.net.URL> sources)
sources
- URL of the directory of catalog filespublic gov.nasa.pds.tools.label.Label parse(java.net.URL url)
url
- URL of the pds catalog filepublic boolean compare(java.net.URL source, java.net.URL target)
source
- URL of the source file.target
- URL of the target file.gov.nasa.pds.tools.LabelParserException
java.io.IOException
Copyright © 2010-2019 Planetary Data System. All Rights Reserved.