edu.isi.pegasus.planner.catalog.transformation.client
public class TCQuery extends Client
Modifier and Type | Class and Description |
---|---|
private class |
TCQuery.LFNComparator
The comparator that is used to group the RLSAttributeObject objects by the
value in the key field.
|
Modifier and Type | Field and Description |
---|---|
private static int |
TABSPACE |
private static String |
XML_NAMESPACE |
private static String |
XML_VERSION |
Constructor and Description |
---|
TCQuery(TransformationCatalog tc,
LogManager mLogger,
Map argsmap) |
Modifier and Type | Method and Description |
---|---|
private static void |
columnLength(String[] s,
int[] length)
Computes the maximum column lenght for pretty printing.
|
void |
doQuery() |
private void |
getLfn(String resource,
String type)
Get logical transformations on a given resource and/or of a particular type.
|
private void |
getLfnProfile(String namespace,
String name,
String version)
Get the LFn profiles associated with a logical transformation
|
private void |
getPfn(String namespace,
String name,
String version,
String resource,
String type)
Get physical transformation for a particular logical transformation and/or on a resource and/or of a particular type
|
private void |
getPfnProfile(String pfn,
String resource,
String type)
Get the profiles associated with a physical transformation.
|
private void |
getResource(String type)
Get and print the Resource entries for a given logical transformation and transformation type
|
private static String |
getSpace(int maxlength,
int currlength)
Gets the required space for pretty printing.
|
private void |
getTC()
Print all the contents of the TC in pretty print
|
private void |
getTCXML() |
convertException, fillArgs
private static final int TABSPACE
private static final String XML_NAMESPACE
private static final String XML_VERSION
public TCQuery(TransformationCatalog tc, LogManager mLogger, Map argsmap)
public void doQuery()
private void getLfn(String resource, String type)
resource
- The resource on which the transformations existtype
- the type of the transformation.private void getPfn(String namespace, String name, String version, String resource, String type)
namespace
- String Namespace for the transformation.name
- String Logical name for the transformation.version
- String Version for the transformation.resource
- String The resource for the transformationtype
- String The type of the transformation.private void getLfnProfile(String namespace, String name, String version)
namespace
- Stringname
- Stringversion
- Stringprivate void getPfnProfile(String pfn, String resource, String type)
pfn
- Stringresource
- Stringtype
- Stringprivate void getResource(String type)
type
- the type of the transformationException
- Throws all kinds of exceptionprivate void getTC()
private void getTCXML()
private static String getSpace(int maxlength, int currlength)
maxlength
- intcurrlength
- intprivate static void columnLength(String[] s, int[] length)
s
- String[]length
- int[]