|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.citool.CIToolIngester
public class CIToolIngester
Field Summary | |
---|---|
static List<CatalogObject> |
catObjs
|
static Map<String,String> |
refInfo
|
static boolean |
targetAvailable
|
Constructor Summary | |
---|---|
CIToolIngester(IngestReport report)
|
Method Summary | |
---|---|
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(gov.nasa.pds.registry.client.SecurityContext securityContext,
String username,
String password)
Sets the security. |
void |
setStorageUrl(String storageUrl)
|
void |
setTransportUrl(String transportUrl)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static List<CatalogObject> catObjs
public static Map<String,String> refInfo
public static boolean targetAvailable
Constructor Detail |
---|
public CIToolIngester(IngestReport report)
Method Detail |
---|
public void setRegistryUrl(String registryUrl)
public void setStorageUrl(String storageUrl)
public void setTransportUrl(String transportUrl)
public void setSecurity(gov.nasa.pds.registry.client.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 void getFilesFromStorageService(List<String> requiredFiles)
public org.apache.oodt.cas.filemgr.structs.Product getProductFromStorageService(String fileName)
public Map<String,String> getTargetInfos(String targetName)
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 file
public boolean compare(URL source, URL target)
source
- URL of the source file.target
- URL of the target file.
gov.nasa.pds.tools.LabelParserException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |