|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.common.catalog.transformation.Windward
public class Windward
The implementation that allows us to inteface with Windward Process Catalogs. Only a subset of query functions are implemented.
| Field Summary | |
|---|---|
protected LogManager |
mLogger
The handle to the log manager. |
protected String |
mPCImpl
The name of the Process Catalog implementation to interface to. |
protected edu.isi.ikcap.workflows.ac.ProcessCatalog |
mProcessCatalog
The handle to the ProcessCatalog API. |
protected PegasusProperties |
mProps
The handle to PegasusProperties. |
static String |
PROCESS_CATALOG_IMPL_PROPERTY
The property that designates which Process catalog impl to pick up. |
| Fields inherited from interface org.griphyn.common.catalog.Catalog |
|---|
DB_ALL_PREFIX |
| Constructor Summary | |
|---|---|
Windward()
The default constructor. |
|
| Method Summary | |
|---|---|
boolean |
addTCEntry(List tcentry)
Add multiple TCEntries to the Catalog. |
boolean |
addTCEntry(String namespace,
String name,
String version,
String physicalname,
TCType type,
String resourceid,
List lfnprofiles,
List pfnprofiles,
SysInfo sysinfo)
Add an single entry into the transformation catalog. |
boolean |
addTCEntry(TransformationCatalogEntry tcentry)
Add single TCEntry to the Catalog. |
boolean |
addTCEntry(TransformationCatalogEntry tcentry,
boolean write)
Add single TCEntry object temporarily to the in memory Catalog. |
boolean |
addTCLfnProfile(String namespace,
String name,
String version,
List profiles)
Add additional profile to a logical transformation . |
boolean |
addTCPfnProfile(String pfn,
TCType type,
String resourcename,
List profiles)
Add additional profile to a physical transformation. |
void |
close()
Explicitely free resources before the garbage collection hits. |
boolean |
connect(Properties props)
Establishes a link between the implementation and the thing the implementation is build upon. |
boolean |
deleteTC()
Deletes the entire transformation catalog. |
boolean |
deleteTCbyLogicalName(String namespace,
String name,
String version,
String resourceid,
TCType type)
Delete all entries in the transformation catalog for a give logical tranformation and/or on a resource and/or of a particular type |
boolean |
deleteTCbyPhysicalName(String physicalname,
String namespace,
String name,
String version,
String resourceid,
TCType type)
Delete all entries in the transformation catalog for pair of logical and physical transformation. |
boolean |
deleteTCbyResourceId(String resourceid)
Delete all entries on a particular resource from the transformation catalog. |
boolean |
deleteTCbySysInfo(SysInfo sysinfo)
Deletes entries from the catalog which have a particular system information. |
boolean |
deleteTCbyType(TCType type,
String resourceid)
Delete a paricular type of transformation, and/or on a particular resource |
boolean |
deleteTCLfnProfile(String namespace,
String name,
String version,
List profiles)
Delete a list of profiles or all the profiles associated with a logical transformation. |
boolean |
deleteTCPfnProfile(String physicalname,
TCType type,
String resourceid,
List profiles)
Delete a list of profiles or all the profiles associated with a pfn on a resource and of a type. |
static TransformationCatalog |
getInstance()
Returns an instance of the File TC. |
List |
getTC()
List all the contents of the TC |
List |
getTCEntries(String namespace,
String name,
String version,
List resourceids,
TCType type)
Returns TC entries for a particular logical transformation and/or on a number of resources and/or of a particular type. |
List |
getTCEntries(String namespace,
String name,
String version,
String resourceid,
TCType type)
Returns TC entries for a particular logical transformation and/or on a particular resource and/or of a particular type. |
List |
getTCLfnProfiles(String namespace,
String name,
String version)
Get the list of Profiles associated with a particular logical transformation. |
List |
getTCLogicalNames(String resourceid,
TCType type)
Get the list of LogicalNames available on a particular resource. |
String |
getTCMode()
Returns the TC implementation being used |
List |
getTCPfnProfiles(String pfn,
String resourceid,
TCType type)
Get the list of Profiles associated with a particular physical transformation. |
List |
getTCPhysicalNames(String namespace,
String name,
String version,
String resourceid,
TCType type)
Get the list of PhysicalNames for a particular transformation on a site/sites for a particular type/types; |
List |
getTCResourceIds(String namespace,
String name,
String version,
TCType type)
Get the list of Resource ID's where a particular transformation may reside. |
boolean |
isClosed()
Predicate to check, if the connection with the catalog's implementation is still active. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROCESS_CATALOG_IMPL_PROPERTY
protected edu.isi.ikcap.workflows.ac.ProcessCatalog mProcessCatalog
protected String mPCImpl
protected PegasusProperties mProps
protected LogManager mLogger
| Constructor Detail |
|---|
public Windward()
| Method Detail |
|---|
public static TransformationCatalog getInstance()
public boolean addTCEntry(String namespace,
String name,
String version,
String physicalname,
TCType type,
String resourceid,
List lfnprofiles,
List pfnprofiles,
SysInfo sysinfo)
throws Exception
addTCEntry in interface TransformationCatalognamespace - String The namespace of the transformation to be
added (Can be null)name - String The name of the transformation to be added.version - String The version of the transformation to be added.
(Can be null)physicalname - String The physical name/location of the
transformation to be added.type - TCType The type of the physical transformation.resourceid - String The resource location id where the
transformation is located.lfnprofiles - List The List of Profile objects associated with a
Logical Transformation. (can be null)pfnprofiles - List The List of Profile objects associated with a
Physical Transformation. (can be null)sysinfo - SysInfo The System information associated with a
physical transformation.
ExceptionTransformationCatalogEntry,
SysInfo,
Profile
public boolean addTCEntry(List tcentry)
throws Exception
addTCEntry in interface TransformationCatalogtcentry - List Takes a list of TransformationCatalogEntry
objects as input
ExceptionTransformationCatalogEntry
public boolean addTCEntry(TransformationCatalogEntry tcentry,
boolean write)
throws Exception
addTCEntry in interface TransformationCatalogtcentry - Takes a single TransformationCatalogEntry object as
inputwrite - boolean enable write commits to backed catalog or not.
ExceptionTransformationCatalogEntry
public boolean addTCEntry(TransformationCatalogEntry tcentry)
throws Exception
addTCEntry in interface TransformationCatalogtcentry - Takes a single TransformationCatalogEntry object as
input
ExceptionTransformationCatalogEntry
public boolean addTCLfnProfile(String namespace,
String name,
String version,
List profiles)
throws Exception
addTCLfnProfile in interface TransformationCatalognamespace - String The nsamespace of the transformation to be
added. (can be null)name - String The name of the transformation to be added.version - String The version of the transformation to be added.
(can be null)profiles - List The List of Profile objects that are to be added
to the transformation.
ExceptionProfile
public boolean addTCPfnProfile(String pfn,
TCType type,
String resourcename,
List profiles)
throws Exception
addTCPfnProfile in interface TransformationCatalogpfn - String The physical name of the transformationtype - TCType The type of transformation that the profile is
associated with.resourcename - String The resource on which the physical
transformation existsprofiles - List The List of Profile objects that are to be added
to the transformation.
ExceptionProfilepublic void close()
close in interface Catalogpublic boolean connect(Properties props)
connect in interface Catalogprops - contains all necessary data to establish the link.
public boolean deleteTC()
throws Exception
deleteTC in interface TransformationCatalogException
public boolean deleteTCLfnProfile(String namespace,
String name,
String version,
List profiles)
throws Exception
deleteTCLfnProfile in interface TransformationCatalognamespace - String The namespace of the logical transformation.name - String The name of the logical transformation.version - String The version of the logical transformation.profiles - List The List of profiles to be deleted. If
NULL then all profiles for the logical transformation are
deleted.
ExceptionProfile
public boolean deleteTCPfnProfile(String physicalname,
TCType type,
String resourceid,
List profiles)
throws Exception
deleteTCPfnProfile in interface TransformationCatalogphysicalname - String The physical name of the transformation.type - TCType The type of the transformation.resourceid - String The resource of the transformation.profiles - List The list of profiles to be deleted. If
NULL then all profiles for that pfn+resource+type are
deleted.
ExceptionProfile
public boolean deleteTCbyLogicalName(String namespace,
String name,
String version,
String resourceid,
TCType type)
throws Exception
deleteTCbyLogicalName in interface TransformationCatalognamespace - String The namespace of the transformation to be
added. (can be null)name - String The name of the transformation to be added.version - String The version of the transformation to be added.
( can be null)resourceid - String The resource id for which the transformation
is to be deleted. If NULL then transformation on all
resource are deletedtype - TCType The type of the transformation. If NULL
then all types are deleted for the transformation.
ExceptionTCType
public boolean deleteTCbyPhysicalName(String physicalname,
String namespace,
String name,
String version,
String resourceid,
TCType type)
throws Exception
deleteTCbyPhysicalName in interface TransformationCatalogphysicalname - String The physical name of the transformationnamespace - String The namespace assocaited in the logical name
of the transformation.name - String The name of the logical transformation.version - String The version number of the logical
transformation.resourceid - String The resource on which the transformation is
to be deleted. If NULL then it searches all the resource id.type - TCType The type of transformation. If NULL then it
search and deletes entries for all types.
ExceptionTCType
public boolean deleteTCbyResourceId(String resourceid)
throws Exception
deleteTCbyResourceId in interface TransformationCatalogresourceid - String The resource which you want to remove.
Exception
public boolean deleteTCbySysInfo(SysInfo sysinfo)
throws Exception
deleteTCbySysInfo in interface TransformationCatalogsysinfo - SysInfo The System Information by which you want to
delete
ExceptionSysInfo
public boolean deleteTCbyType(TCType type,
String resourceid)
throws Exception
deleteTCbyType in interface TransformationCatalogtype - TCType The type of the transformationresourceid - String The resource on which the transformation
exists. If NULL then that type of transformation is deleted
from all the resources.
ExceptionTCType
public List getTC()
throws Exception
getTC in interface TransformationCatalogException
public List getTCEntries(String namespace,
String name,
String version,
List resourceids,
TCType type)
throws Exception
getTCEntries in interface TransformationCatalognamespace - String The namespace of the logical transformation.name - String the name of the logical transformation.version - String The version of the logical transformation.resourceids - List The List resourceid where the transformation
is located. If NULL it returns all resources.type - TCType The type of the transformation to search for. If
NULL it returns all types.
ExceptionTCType,
TransformationCatalogEntry
public List getTCEntries(String namespace,
String name,
String version,
String resourceid,
TCType type)
throws Exception
getTCEntries in interface TransformationCatalognamespace - String The namespace of the logical transformation.name - String the name of the logical transformation.version - String The version of the logical transformation.resourceid - String The resourceid where the transformation is
located. If NULL it returns all resources.type - TCType The type of the transformation to search for. If
NULL it returns all types.
ExceptionTCType,
TransformationCatalogEntry
public List getTCLfnProfiles(String namespace,
String name,
String version)
throws Exception
getTCLfnProfiles in interface TransformationCatalognamespace - String The namespace of the transformation to search
for.name - String The name of the transformation to search for.version - String The version of the transformation to search for.
UnsupportedOperationException
Exception - NotImplementedException if not implemented.Profile
public List getTCLogicalNames(String resourceid,
TCType type)
throws Exception
getTCLogicalNames in interface TransformationCatalogresourceid - String The id of the resource on which you want to
searchtype - TCType The type of the transformation to search for. UnsupportedOperationException
Exception - NotImplementedException if not implemented.public String getTCMode()
getTCMode in interface TransformationCatalog
public List getTCPfnProfiles(String pfn,
String resourceid,
TCType type)
throws Exception
getTCPfnProfiles in interface TransformationCatalogpfn - The physical file name to search the transformation by.resourceid - String The id of the resource on which you want to
search.type - TCType The type of the transformation to search for. Exception - NotImplementedException if not implemented.
UnsupportedOperationExceptionProfile
public List getTCPhysicalNames(String namespace,
String name,
String version,
String resourceid,
TCType type)
throws Exception
getTCPhysicalNames in interface TransformationCatalognamespace - String The namespace of the transformation to search
for.name - String The name of the transformation to search for.version - String The version of the transformation to search for.resourceid - String The id of the resource on which you want to
search. type - TCType The type of the transformation to search for. UnsupportedOperationException
Exception - NotImplementedException if not implemented.TCType,
SysInfo
public List getTCResourceIds(String namespace,
String name,
String version,
TCType type)
throws Exception
getTCResourceIds in interface TransformationCatalognamespace - String The namespace of the transformation to search
for.name - String The name of the transformation to search for.version - String The version of the transformation to search for.type - TCType The type of the transformation to search for.Exception - NotImplementedException if not implementedTCTypepublic boolean isClosed()
isClosed in interface CatalogCatalog.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||