org.objectweb.jonas.ear.lib
Class EarDeployerLog
java.lang.Object
|
+--org.objectweb.jonas.ear.lib.EarDeployerLog
- public class EarDeployerLog
- extends java.lang.Object
Class which permits to store or load the association between the name of
an ear and the timestamped dir associated.
- Author:
- Florent Benoit, Ludovic Bert
Constructor Summary |
EarDeployerLog(java.io.File logFile)
Constructor for the deployerLog. |
Method Summary |
java.util.Vector |
addEntry(java.lang.String fileName,
java.net.URL earUnpackedDirectory)
Add the entry and return the new entries |
java.util.Vector |
getEntries()
Return the entries of the file. |
java.util.Vector |
removeEntry(EarLogEntry entry)
Remove the given entry and return the entries of the file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EarDeployerLog
public EarDeployerLog(java.io.File logFile)
throws EarDeployerLogException
- Constructor for the deployerLog.
- Parameters:
logFile
- the file which is used for read/write entries- Throws:
EarDeployerLogException
- if the loadentries failed.
getEntries
public java.util.Vector getEntries()
- Return the entries of the file.
- Returns:
- a vector of EarLogEntry item.
removeEntry
public java.util.Vector removeEntry(EarLogEntry entry)
throws EarDeployerLogException
- Remove the given entry and return the entries of the file.
- Parameters:
entry
- the EarLogEntry which must be remove.- Returns:
- the new vector of EarLogEntry item.
- Throws:
EarDeployerLogException
- if the remove can't be done
addEntry
public java.util.Vector addEntry(java.lang.String fileName,
java.net.URL earUnpackedDirectory)
throws EarDeployerLogException
- Add the entry and return the new entries
- Parameters:
fileName
- the name of the ear fileearUnpackedDirectory
- the timestamped directory- Returns:
- the new vector of EarLogEntry item.
- Throws:
EarDeployerLogException
- if the add can't be done