public class TransformationCatalogEntry extends Object implements CatalogEntry
Modifier and Type | Field and Description |
---|---|
private String |
mName
The logical mName of the transformation.
|
private String |
mNamespace
The logical mNamespace of the transformation
|
private Notifications |
mNotifications
All the notifications associated with the job
|
private String |
mPFN
The physical path on the resource for a particular arch, os and type.
|
private Profiles |
mProfiles
The profiles associated with the site.
|
private String |
mResourceID
The Id of the resource on which the transformation
is installed.
|
private SysInfo |
mSysInfo
The System Info for the transformation.
|
private String |
mVersion
The mVersion of the transformation.
|
private TCType |
type
The type of transformation.
|
Modifier | Constructor and Description |
---|---|
|
TransformationCatalogEntry()
The basic constructor
|
|
TransformationCatalogEntry(String namespace,
String name,
String version)
Optimized Constructor
|
|
TransformationCatalogEntry(String namespace,
String name,
String version,
String resourceid,
String physicalname,
TCType type,
List profiles,
VDSSysInfo sysinfo)
Optimized Constructor
|
private |
TransformationCatalogEntry(String namespace,
String name,
String version,
String resourceID,
String physicalname,
TCType type,
Profiles profiles,
SysInfo sysinfo)
Overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addNotification(Invoke invoke)
Adds a Invoke object correpsonding to a notification.
|
void |
addNotifications(Notifications invokes)
Adds all the notifications passed to the underlying container.
|
void |
addProfile(Profile profile)
Allows you to add one profile at a time to the transformation.
|
void |
addProfiles(List profiles)
Allows you to add multiple profiles to the transformation.
|
void |
addProfiles(Profiles profiles)
Allows you to add one profile at a time to the transformation.
|
Object |
clone()
creates a new instance of this object and returns
you it.
|
boolean |
equals(TransformationCatalogEntry entry)
Compares two catalog entries for equality.
|
String |
getLogicalName()
Returns the Name of the logical transformation.
|
String |
getLogicalNamespace()
Returns the Namespace associated with the logical transformation.
|
String |
getLogicalTransformation()
Gets the Fully Qualified Transformation mName in the format NS::Name:Ver.
|
String |
getLogicalVersion()
Returns the mVersion of the logical transformation.
|
Notifications |
getNotifications()
Returns all the notifications associated with the job.
|
Collection<Invoke> |
getNotifications(Invoke.WHEN when)
Returns a collection of all the notifications that need to be
done for a particular condition
|
String |
getPhysicalTransformation()
Returns the physical location of the transformation.
|
List |
getProfiles()
Returns the list of profiles associated with the transformation.
|
List |
getProfiles(String namespace)
Returns the profiles for a particular Namespace.
|
String |
getResourceId()
Returns the resource where the transformation is located.
|
SysInfo |
getSysInfo()
Returns the System Information associated with the transformation.
|
TCType |
getType()
Returns the type of the transformation.
|
VDSSysInfo |
getVDSSysInfo()
Returns the System Information in the old VDS format associated with the
transformation.
|
private static String |
joinLFN(String namespace,
String name,
String version)
Joins the 3 components into a fully qualified logical mName of the format NS::NAME:VER
|
void |
setLogicalName(String name)
Set the logical mName of the transformation.
|
void |
setLogicalNamespace(String namespace)
Set the logical mNamespace of the transformation.
|
void |
setLogicalTransformation(String logicaltransformation)
Set the logical transformation with a fully qualified tranformation String of the format NS::NAME:Ver
|
void |
setLogicalTransformation(String namespace,
String name,
String version)
Set the logical transformation by providing the mNamespace, mName and mVersion as seperate strings.
|
void |
setLogicalVersion(String version)
Set the logical mVersion of the transformation.
|
void |
setPhysicalTransformation(String physicalname)
Set the physical location of the transformation.
|
void |
setResourceId(String resourceid)
Set the mResourceID where the transformation is available.
|
void |
setSysInfo(SysInfo sysinfo)
Sets the system information for the entry.
|
void |
setType(TCType type)
Set the type of the transformation.
|
void |
setVDSSysInfo(VDSSysInfo sysinfo)
Set the System Information associated with the transformation.
|
private static String[] |
splitLFN(String logicaltransformation)
Splits the full qualified logical transformation into its components.
|
String |
toString()
gets the String mVersion of the
data class
|
String |
toTCString()
Prints out a TC file format String.
|
String |
toXML()
Returns an xml output of the contents of the data class.
|
private String mNamespace
private String mVersion
private String mName
private String mResourceID
private String mPFN
private Profiles mProfiles
private SysInfo mSysInfo
private TCType type
private Notifications mNotifications
public TransformationCatalogEntry()
public TransformationCatalogEntry(String namespace, String name, String version)
namespace
- Stringname
- Stringversion
- Stringpublic TransformationCatalogEntry(String namespace, String name, String version, String resourceid, String physicalname, TCType type, List profiles, VDSSysInfo sysinfo)
namespace
- Stringname
- Stringversion
- StringresourceID
- Stringphysicalname
- Stringtype
- TCTypeprofiles
- Listsysinfo
- VDSSysInfoprivate TransformationCatalogEntry(String namespace, String name, String version, String resourceID, String physicalname, TCType type, Profiles profiles, SysInfo sysinfo)
namespace
- the namespacename
- the nameversion
- the versionresourceID
- the site with which entry is associatedphysicalname
- the pfntype
- the typeprofiles
- the profiles passedsysinfo
- the SystemInformationpublic Object clone()
public String toString()
public String toTCString()
public String toXML()
public void setLogicalTransformation(String logicaltransformation)
logicaltransformation
- Stringpublic void setLogicalTransformation(String namespace, String name, String version)
mNamespace
- StringmName
- StringmVersion
- Stringpublic void setLogicalNamespace(String namespace)
mNamespace
- Stringpublic void setLogicalName(String name)
mName
- Stringpublic void setLogicalVersion(String version)
mVersion
- Stringpublic void setResourceId(String resourceid)
mResourceID
- Stringpublic void setType(TCType type)
type
- TCTypepublic void setPhysicalTransformation(String physicalname)
mPFN
- Stringpublic void setSysInfo(SysInfo sysinfo)
sysinfo
- the System informationpublic void setVDSSysInfo(VDSSysInfo sysinfo)
sysinfo
- VDSSysInfopublic void addNotification(Invoke invoke)
invoke
- the invoke object containing the notificationpublic void addNotifications(Notifications invokes)
invokes
- the notifications to be addedpublic Collection<Invoke> getNotifications(Invoke.WHEN when)
when
- the conditionpublic Notifications getNotifications()
public void addProfiles(Profiles profiles)
profile
- Profile A single profile consisting of mNamespace, key and valuepublic void addProfile(Profile profile)
profile
- Profile A single profile consisting of mNamespace, key and valuepublic void addProfiles(List profiles)
profiles
- List of Profile objects containing the profile information.public String getLogicalTransformation()
public String getLogicalNamespace()
public String getLogicalName()
public String getLogicalVersion()
public String getResourceId()
public TCType getType()
public String getPhysicalTransformation()
public SysInfo getSysInfo()
public VDSSysInfo getVDSSysInfo()
public List getProfiles()
public List getProfiles(String namespace)
mNamespace
- String The mNamespace of the profileprivate static String joinLFN(String namespace, String name, String version)
mNamespace
- StringmName
- StringmVersion
- Stringprivate static String[] splitLFN(String logicaltransformation)
logicaltransformation
- Stringpublic boolean equals(TransformationCatalogEntry entry)
entry
- is the entry to compare withCopyright © 2011 The University of Southern California. All Rights Reserved.