public class Adapter extends Object
Constructor and Description |
---|
Adapter() |
Modifier and Type | Method and Description |
---|---|
private static void |
addDirectory(SiteCatalogEntry3 entry,
Directory directory)
Adds a directory to the site catalog entry object.
|
static SiteCatalogEntry3 |
convert(SiteCatalogEntry entry)
An adapter method that converts the
SiteCatalogEntry object to
SiteCatalogEntry3 object. |
static SiteCatalogEntry |
convert(SiteCatalogEntry3 entry)
An adapter method that converts the
SiteCatalogEntry3 object to
SiteCatalogEntry object. |
public static SiteCatalogEntry convert(SiteCatalogEntry3 entry)
SiteCatalogEntry3
object to
SiteCatalogEntry
object. For the directories, the following
mapping is followed. Note that the adapter method while converting does
not clone the members. The user need to call on the returned object if they
want a cloned copy.
HeadNodeFS shared scratch -> shared-scratch HeadNodeFS shared storage -> shared-storage HeadNodeFS local storage -> local-storage WorkerNodeFS local scratch -> local-scratch
entry
- SiteCatalogEntry3
to be converted.SiteCatalogEntry3
object.public static SiteCatalogEntry3 convert(SiteCatalogEntry entry)
SiteCatalogEntry
object to
SiteCatalogEntry3
object. For the directories, the following
mapping is followed.
shared-scratch -> HeadNodeFS shared scratch shared-storage -> HeadNodeFS shared storage local-scratch -> WorkerNodeFS local scratch local-storage -> HeadNodeFS local storageNote that the adapter method while converting does not clone the members. The user need to call on the returned object if they want a cloned copy.
entry
- SiteCatalogEntry
to be converted.SiteCatalogEntry3
object.private static void addDirectory(SiteCatalogEntry3 entry, Directory directory)
shared-scratch -> HeadNodeFS shared scratch shared-storage -> HeadNodeFS shared storage local-scratch -> WorkerNodeFS local scratch local-storage -> HeadNodeFS local storage
entry
- the Site Catalog Entry objectdirectory
- the directory to be added