|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.work.AbsDeployerLog<LogEntry>
org.ow2.jonas.lib.work.DeployerLog
public class DeployerLog
Class which permits to store or load the association between the name of a package and the timestamped work copy associated.
| Field Summary |
|---|
| Fields inherited from class org.ow2.jonas.lib.work.AbsDeployerLog |
|---|
logEntries, logFile, logger, SEPARATOR_ENTRY |
| Constructor Summary | |
|---|---|
DeployerLog(File logFile)
Constructor for the deployerLog. |
|
| Method Summary | |
|---|---|
Vector<LogEntry> |
addEntry(File original,
File copy)
Add the entry and return the new entries. |
Vector<LogEntry> |
addEntry(LogEntry logEntry)
Add the entry and return the new entries. |
LogEntry |
getEntry(File original)
|
protected void |
loadEntries()
load the entries of the log file. |
protected void |
saveEntries()
Dump(save) the entries to the log file. |
| Methods inherited from class org.ow2.jonas.lib.work.AbsDeployerLog |
|---|
getEntries, getLogger, removeEntry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeployerLog(File logFile)
throws DeployerLogException
logFile - the file which is used for read/write entries
DeployerLogException - if the loadentries failed.| Method Detail |
|---|
protected void loadEntries()
throws DeployerLogException
loadEntries in class AbsDeployerLog<LogEntry>DeployerLogException - if the load failed.
protected void saveEntries()
throws DeployerLogException
saveEntries in class AbsDeployerLog<LogEntry>DeployerLogException - if the save failed.
public Vector<LogEntry> addEntry(LogEntry logEntry)
throws DeployerLogException
AbsDeployerLog
addEntry in interface IDeployerLog<LogEntry>addEntry in class AbsDeployerLog<LogEntry>logEntry - the entry to add
DeployerLogException - if the add can't be done
public Vector<LogEntry> addEntry(File original,
File copy)
throws DeployerLogException
original - the name of the filecopy - the copy of the file
DeployerLogException - if the add can't be donepublic LogEntry getEntry(File original)
getEntry in interface IDeployerLog<LogEntry>getEntry in class AbsDeployerLog<LogEntry>original - Original File
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||