|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.star.offline.scheduler.dataset.EntryParser
public class EntryParser
This class is used to define how a line in the dataset file is to be parsed to extract the relevant bits of data. It defines the format of the entries in the dataset. How to extract each of the attributes is defined by generic JAVA regular expression capture groups.
Constructor Summary | |
---|---|
EntryParser()
Creates a new instance of EntryParser |
Method Summary | |
---|---|
void |
addFILE_NAME(java.lang.String regX)
Configures the parser to parse out the host name of the file. |
void |
addHOST(java.lang.String regX)
Configures the parser to parse out the host name of the entry (node name or IP). |
void |
addLFN(java.lang.String regX)
Configures the parser to parse out the LFN. |
void |
addNUMBER_OF_EVENTS(java.lang.String regX)
Configures the parser to parse out the host name of the number of events (If given). |
void |
addPATH(java.lang.String regX)
Configures the parser to parse out the path to the entry. |
void |
addSITE(java.lang.String regX)
Configures the parser to parse out the site of the entry. |
void |
addSTORAGE_SERVISE(java.lang.String regX)
Configures the parser to parse out the storage servise (examples: HPSS, NFS, Locla disk). |
java.util.List |
entryListToPhysicalFileList(java.util.List entrys)
|
PhysicalFile |
entryToPhysicalFile(java.lang.String entry)
converts an entry string to a PhysicalFile string |
java.lang.String |
getFILE_NAME(java.lang.String entry)
Parses the entry string |
java.lang.String |
getHOST(java.lang.String entry)
Parses the entry string |
java.lang.String |
getLFN(java.lang.String entry)
Parses the entry string |
java.lang.String |
getNUMBER_OF_EVENTS(java.lang.String entry)
Parses the entry string |
java.lang.String |
getPATH(java.lang.String entry)
Parses the entry string |
java.util.Hashtable |
getRegx()
|
java.util.Hashtable |
getReplacment()
|
java.lang.String |
getSITE(java.lang.String entry)
Parses the entry string |
java.lang.String |
getSTORAGE_SERVISE(java.lang.String entry)
Parses the entry string |
void |
setRegx(java.util.Hashtable regx)
|
void |
setReplacment(java.util.Hashtable replacment)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntryParser()
Method Detail |
---|
public void addLFN(java.lang.String regX)
regX
- : A regular expression having a capture group for the logical file name.public void addSTORAGE_SERVISE(java.lang.String regX)
regX
- : A regular expression having a capture group for the storage servise.public void addSITE(java.lang.String regX)
regX
- : A regular expression having a capture group for the site of the entry.public void addHOST(java.lang.String regX)
regX
- : A regular expression having a capture group for the host of the entry.public void addPATH(java.lang.String regX)
regX
- : A regular expression having a capture group for the path of the entry.public void addFILE_NAME(java.lang.String regX)
regX
- : A regular expression having a capture group for the file namepublic void addNUMBER_OF_EVENTS(java.lang.String regX)
regX
- : A regular expression having a capture group for the number of events in the filepublic java.lang.String getLFN(java.lang.String entry)
public java.lang.String getSTORAGE_SERVISE(java.lang.String entry)
public java.lang.String getSITE(java.lang.String entry)
public java.lang.String getHOST(java.lang.String entry)
public java.lang.String getPATH(java.lang.String entry)
public java.lang.String getFILE_NAME(java.lang.String entry)
public java.lang.String getNUMBER_OF_EVENTS(java.lang.String entry)
public java.util.Hashtable getRegx()
public void setRegx(java.util.Hashtable regx)
public java.util.Hashtable getReplacment()
public void setReplacment(java.util.Hashtable replacment)
public PhysicalFile entryToPhysicalFile(java.lang.String entry)
public java.util.List entryListToPhysicalFileList(java.util.List entrys)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |