org.ow2.jonas.lib.work
Class DeployerLog

java.lang.Object
  extended by org.ow2.jonas.lib.work.DeployerLog

public class DeployerLog
extends Object

Class which permits to store or load the association between the name of a package and the timestamped work copy associated.

Author:
Florent Benoit, Ludovic Bert

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> getEntries()
          Return the entries of the file.
protected  org.ow2.util.log.Log getLogger()
           
 Vector<LogEntry> removeEntry(LogEntry 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
 

Constructor Detail

DeployerLog

public DeployerLog(File logFile)
            throws DeployerLogException
Constructor for the deployerLog.

Parameters:
logFile - the file which is used for read/write entries
Throws:
DeployerLogException - if the loadentries failed.
Method Detail

getLogger

protected org.ow2.util.log.Log getLogger()
Returns:
the logger

getEntries

public Vector<LogEntry> getEntries()
Return the entries of the file.

Returns:
a vector of LogEntry item.

removeEntry

public Vector<LogEntry> removeEntry(LogEntry entry)
                             throws DeployerLogException
Remove the given entry and return the entries of the file.

Parameters:
entry - the LogEntry which must be remove.
Returns:
the new vector of LogEntry item.
Throws:
DeployerLogException - if the remove can't be done

addEntry

public Vector<LogEntry> addEntry(File original,
                                 File copy)
                          throws DeployerLogException
Add the entry and return the new entries.

Parameters:
original - the name of the file
copy - the copy of the file
Returns:
the new vector of LogEntry item.
Throws:
DeployerLogException - if the add can't be done


Copyright © 2010 OW2 Consortium. All Rights Reserved.