public interface OutputMapper
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VERSION
The version of the API of the Output Mapper
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
description()
Returns a short description of the mapper.
|
void |
initialize(PegasusBag bag,
ADag workflow)
Initializes the mappers.
|
java.lang.String |
map(java.lang.String lfn,
java.lang.String site,
FileServerType.OPERATION operation)
Maps a LFN to a location on the filsystem of a site and returns a single
externally accessible URL corresponding to that location.
|
java.lang.String |
map(java.lang.String lfn,
java.lang.String site,
FileServerType.OPERATION operation,
boolean existing)
Maps a LFN to a location on the filsystem of a site and returns a single
externally accessible URL corresponding to that location.
|
java.util.List<java.lang.String> |
mapAll(java.lang.String lfn,
java.lang.String site,
FileServerType.OPERATION operation)
Maps a LFN to a location on the filsystem of a site and returns all the possible
equivalent externally accessible URL corresponding to that location.
|
static final java.lang.String VERSION
void initialize(PegasusBag bag, ADag workflow) throws MapperException
bag - the bag of objects that is useful for initialization.workflow - the workflow refined so far.MapperException - if unable to construct URL for any reasonjava.lang.String map(java.lang.String lfn,
java.lang.String site,
FileServerType.OPERATION operation)
throws MapperException
lfn - the lfnsite - the output siteoperation - whether we want a GET or a PUT URLMapperException - if unable to construct URL for any reasonjava.lang.String map(java.lang.String lfn,
java.lang.String site,
FileServerType.OPERATION operation,
boolean existing)
throws MapperException
lfn - the lfnsite - the output siteoperation - whether we want a GET or a PUT URLexisting - indicates whether to create a new location/placement for a file,
or rely on existing placement on the site.MapperException - if unable to construct URL for any reasonjava.util.List<java.lang.String> mapAll(java.lang.String lfn,
java.lang.String site,
FileServerType.OPERATION operation)
throws MapperException
lfn - the lfnsite - the output siteoperation - whether we want a GET or a PUT URLMapperException - if unable to construct URL for any reasonjava.lang.String description()