|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.work.AbsDeployerLog<T>
public abstract class AbsDeployerLog<T extends LogEntry>
Abstract class for deployer log
| Field Summary | |
|---|---|
protected Vector<T> |
logEntries
The current entries of the logFile. |
protected File |
logFile
File for logging. |
protected org.ow2.util.log.Log |
logger
The logger. |
protected static String |
SEPARATOR_ENTRY
Separator char of a entry in the log file. |
| Constructor Summary | |
|---|---|
AbsDeployerLog(File logFile)
Constructor for the deployerLog. |
|
| Method Summary | |
|---|---|
abstract Vector<T> |
addEntry(T logEntry)
Add the entry and return the new entries. |
Vector<T> |
getEntries()
Return the entries of the file. |
abstract T |
getEntry(File original)
|
protected org.ow2.util.log.Log |
getLogger()
|
protected abstract void |
loadEntries()
load the entries of the log file. |
Vector<T> |
removeEntry(T entry)
Remove the given entry and return the entries of the file. |
protected abstract void |
saveEntries()
Dump(save) the entries to the log file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.ow2.util.log.Log logger
protected static final String SEPARATOR_ENTRY
protected File logFile
protected Vector<T extends LogEntry> logEntries
| Constructor Detail |
|---|
public AbsDeployerLog(File logFile)
throws DeployerLogException
logFile - the file which is used for read/write entries
DeployerLogException - if the loadentries failed.| Method Detail |
|---|
protected org.ow2.util.log.Log getLogger()
protected abstract void loadEntries()
throws DeployerLogException
DeployerLogException - if the load failed.
protected abstract void saveEntries()
throws DeployerLogException
DeployerLogException - if the save failed.public Vector<T> getEntries()
getEntries in interface IDeployerLog<T extends LogEntry>
public Vector<T> removeEntry(T entry)
throws DeployerLogException
removeEntry in interface IDeployerLog<T extends LogEntry>entry - the LogEntry which must be remove.
DeployerLogException - if the remove can't be done
public abstract Vector<T> addEntry(T logEntry)
throws DeployerLogException
addEntry in interface IDeployerLog<T extends LogEntry>logEntry - the entry to add
DeployerLogException - if the add can't be donepublic abstract T getEntry(File original)
getEntry in interface IDeployerLog<T extends LogEntry>original - Original File
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||