Class TCQuery
- java.lang.Object
-
- edu.isi.pegasus.planner.catalog.transformation.client.Client
-
- edu.isi.pegasus.planner.catalog.transformation.client.TCQuery
-
public class TCQuery extends Client
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classTCQuery.LFNComparatorThe comparator that is used to group the RLSAttributeObject objects by the value in the key field.
-
Field Summary
Fields Modifier and Type Field Description private static intTABSPACEprivate static java.lang.StringXML_NAMESPACEprivate static java.lang.StringXML_VERSION
-
Constructor Summary
Constructors Constructor Description TCQuery(TransformationCatalog tc, LogManager mLogger, java.util.Map argsmap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidcolumnLength(java.lang.String[] s, int[] length)Computes the maximum column lenght for pretty printing.voiddoQuery()private voidgetLfn(java.lang.String resource, java.lang.String type)Get logical transformations on a given resource and/or of a particular type.private voidgetLfnProfile(java.lang.String namespace, java.lang.String name, java.lang.String version)Get the LFn profiles associated with a logical transformationprivate voidgetPfn(java.lang.String namespace, java.lang.String name, java.lang.String version, java.lang.String resource, java.lang.String type)Get physical transformation for a particular logical transformation and/or on a resource and/or of a particular typeprivate voidgetPfnProfile(java.lang.String pfn, java.lang.String resource, java.lang.String type)Get the profiles associated with a physical transformation.private voidgetResource(java.lang.String type)Get and print the Resource entries for a given logical transformation and transformation typeprivate static java.lang.StringgetSpace(int maxlength, int currlength)Gets the required space for pretty printing.private voidgetTC()Print all the contents of the TC in pretty printprivate voidgetTCXML()-
Methods inherited from class edu.isi.pegasus.planner.catalog.transformation.client.Client
convertException, fillArgs
-
-
-
-
Field Detail
-
TABSPACE
private static final int TABSPACE
- See Also:
- Constant Field Values
-
XML_NAMESPACE
private static final java.lang.String XML_NAMESPACE
- See Also:
- Constant Field Values
-
XML_VERSION
private static final java.lang.String XML_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TCQuery
public TCQuery(TransformationCatalog tc, LogManager mLogger, java.util.Map argsmap)
-
-
Method Detail
-
doQuery
public void doQuery()
-
getLfn
private void getLfn(java.lang.String resource, java.lang.String type)Get logical transformations on a given resource and/or of a particular type.- Parameters:
resource- The resource on which the transformations existtype- the type of the transformation.
-
getPfn
private void getPfn(java.lang.String namespace, java.lang.String name, java.lang.String version, java.lang.String resource, java.lang.String type)Get physical transformation for a particular logical transformation and/or on a resource and/or of a particular type- Parameters:
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.
-
getLfnProfile
private void getLfnProfile(java.lang.String namespace, java.lang.String name, java.lang.String version)Get the LFn profiles associated with a logical transformation- Parameters:
namespace- Stringname- Stringversion- String
-
getPfnProfile
private void getPfnProfile(java.lang.String pfn, java.lang.String resource, java.lang.String type)Get the profiles associated with a physical transformation.- Parameters:
pfn- Stringresource- Stringtype- String
-
getResource
private void getResource(java.lang.String type)
Get and print the Resource entries for a given logical transformation and transformation type- Parameters:
type- the type of the transformation- Throws:
java.lang.Exception- Throws all kinds of exception
-
getTC
private void getTC()
Print all the contents of the TC in pretty print
-
getTCXML
private void getTCXML()
-
getSpace
private static java.lang.String getSpace(int maxlength, int currlength)Gets the required space for pretty printing.- Parameters:
maxlength- intcurrlength- int- Returns:
- String
-
columnLength
private static void columnLength(java.lang.String[] s, int[] length)Computes the maximum column lenght for pretty printing.- Parameters:
s- String[]length- int[]
-
-