com.application.areca
Class TargetGroup

java.lang.Object
  extended by com.application.areca.TargetGroup
All Implemented Interfaces:
Identifiable

public class TargetGroup
extends java.lang.Object
implements Identifiable

Target group

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Constructor Summary
TargetGroup(java.io.File source)
           
 
Method Summary
 void addTarget(AbstractRecoveryTarget target)
           
 void doAfterDelete()
           
 void doBeforeDelete()
           
 java.lang.String getComments()
           
 java.lang.String getDescription()
          Retourne la description du process
 java.lang.String getName()
           
 int getNextFreeTargetId()
           
 java.util.Iterator getSortedTargetIterator()
          Returns an iterator on targets, sorted by name
 java.lang.String getSource()
           
 java.io.File getSourceFile()
           
 AbstractRecoveryTarget getTargetById(int id)
           
 int getTargetCount()
           
 java.util.Iterator getTargetIterator()
           
 java.lang.String getUid()
           
 boolean isRunning()
           
 void processBackupOnTarget(AbstractRecoveryTarget target, Manifest manifest, java.lang.String backupScheme, boolean disablePreCheck, boolean disableArchiveCheck, ProcessContext context)
          Launch a backup on a target
 void processCheckOnTarget(AbstractRecoveryTarget target, java.lang.String destination, boolean checkOnlyArchiveContent, java.util.GregorianCalendar date, ProcessContext context)
          Launch a check on a target
 void processDeleteOnTarget(AbstractRecoveryTarget target, java.util.GregorianCalendar fromDate, ProcessContext context)
           
 void processDeleteOnTarget(AbstractRecoveryTarget target, int delay, ProcessContext context)
          Deletes archives for a target
 void processDeleteOnTargetImpl(AbstractRecoveryTarget target, int delay, ProcessContext context)
           
 IndicatorMap processIndicatorsOnTarget(AbstractRecoveryTarget target, ProcessContext context)
          Compute indicators for a target
 void processMergeOnTarget(AbstractRecoveryTarget target, java.util.GregorianCalendar fromDate, java.util.GregorianCalendar toDate, Manifest manifest, boolean keepDeletedEntries, ProcessContext context)
          Launch a merge on a target
 void processMergeOnTarget(AbstractRecoveryTarget target, int fromDelay, int toDelay, Manifest manifest, boolean keepDeletedEntries, ProcessContext context)
           
 void processMergeOnTargetImpl(AbstractRecoveryTarget target, int fromDelay, int toDelay, Manifest manifest, boolean keepDeletedEntries, ProcessContext context)
           
 void processRecoverOnTarget(AbstractRecoveryTarget target, java.lang.String[] filters, java.lang.String path, java.util.GregorianCalendar date, boolean keepDeletedEntries, boolean checkRecoveredEntries, ProcessContext context)
          Launch a recovery on a target
 void processRecoverOnTarget(AbstractRecoveryTarget target, java.lang.String path, java.util.GregorianCalendar date, java.lang.String entry, boolean checkRecoveredEntries, ProcessContext context)
           
 SimulationResult processSimulateOnTarget(AbstractRecoveryTarget target, ProcessContext context)
          Launch a simulation on a target
 void removeTarget(AbstractRecoveryTarget target)
           
 void removeTarget(int id)
           
 void setComments(java.lang.String comments)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TargetGroup

public TargetGroup(java.io.File source)
Method Detail

doBeforeDelete

public void doBeforeDelete()

doAfterDelete

public void doAfterDelete()

getSortedTargetIterator

public java.util.Iterator getSortedTargetIterator()
Returns an iterator on targets, sorted by name


getComments

public java.lang.String getComments()

setComments

public void setComments(java.lang.String comments)

getName

public java.lang.String getName()

addTarget

public void addTarget(AbstractRecoveryTarget target)

getTargetById

public AbstractRecoveryTarget getTargetById(int id)

removeTarget

public void removeTarget(AbstractRecoveryTarget target)

removeTarget

public void removeTarget(int id)

isRunning

public boolean isRunning()

getNextFreeTargetId

public int getNextFreeTargetId()

getTargetCount

public int getTargetCount()

getTargetIterator

public java.util.Iterator getTargetIterator()

getSource

public java.lang.String getSource()

getSourceFile

public java.io.File getSourceFile()

getUid

public java.lang.String getUid()
Specified by:
getUid in interface Identifiable

processBackupOnTarget

public void processBackupOnTarget(AbstractRecoveryTarget target,
                                  Manifest manifest,
                                  java.lang.String backupScheme,
                                  boolean disablePreCheck,
                                  boolean disableArchiveCheck,
                                  ProcessContext context)
                           throws ApplicationException
Launch a backup on a target

Throws:
ApplicationException

processSimulateOnTarget

public SimulationResult processSimulateOnTarget(AbstractRecoveryTarget target,
                                                ProcessContext context)
                                         throws ApplicationException
Launch a simulation on a target

Throws:
ApplicationException

processIndicatorsOnTarget

public IndicatorMap processIndicatorsOnTarget(AbstractRecoveryTarget target,
                                              ProcessContext context)
                                       throws ApplicationException
Compute indicators for a target

Throws:
ApplicationException

processCheckOnTarget

public void processCheckOnTarget(AbstractRecoveryTarget target,
                                 java.lang.String destination,
                                 boolean checkOnlyArchiveContent,
                                 java.util.GregorianCalendar date,
                                 ProcessContext context)
                          throws ApplicationException
Launch a check on a target

Throws:
ApplicationException

processRecoverOnTarget

public void processRecoverOnTarget(AbstractRecoveryTarget target,
                                   java.lang.String[] filters,
                                   java.lang.String path,
                                   java.util.GregorianCalendar date,
                                   boolean keepDeletedEntries,
                                   boolean checkRecoveredEntries,
                                   ProcessContext context)
                            throws ApplicationException
Launch a recovery on a target

Throws:
ApplicationException

processRecoverOnTarget

public void processRecoverOnTarget(AbstractRecoveryTarget target,
                                   java.lang.String path,
                                   java.util.GregorianCalendar date,
                                   java.lang.String entry,
                                   boolean checkRecoveredEntries,
                                   ProcessContext context)
                            throws ApplicationException
Throws:
ApplicationException

processMergeOnTarget

public void processMergeOnTarget(AbstractRecoveryTarget target,
                                 java.util.GregorianCalendar fromDate,
                                 java.util.GregorianCalendar toDate,
                                 Manifest manifest,
                                 boolean keepDeletedEntries,
                                 ProcessContext context)
                          throws ApplicationException
Launch a merge on a target

Throws:
ApplicationException

processMergeOnTarget

public void processMergeOnTarget(AbstractRecoveryTarget target,
                                 int fromDelay,
                                 int toDelay,
                                 Manifest manifest,
                                 boolean keepDeletedEntries,
                                 ProcessContext context)
                          throws ApplicationException
Throws:
ApplicationException

processMergeOnTargetImpl

public void processMergeOnTargetImpl(AbstractRecoveryTarget target,
                                     int fromDelay,
                                     int toDelay,
                                     Manifest manifest,
                                     boolean keepDeletedEntries,
                                     ProcessContext context)
                              throws ApplicationException
Throws:
ApplicationException

processDeleteOnTarget

public void processDeleteOnTarget(AbstractRecoveryTarget target,
                                  int delay,
                                  ProcessContext context)
                           throws ApplicationException
Deletes archives for a target

Throws:
ApplicationException

processDeleteOnTargetImpl

public void processDeleteOnTargetImpl(AbstractRecoveryTarget target,
                                      int delay,
                                      ProcessContext context)
                               throws ApplicationException
Throws:
ApplicationException

processDeleteOnTarget

public void processDeleteOnTarget(AbstractRecoveryTarget target,
                                  java.util.GregorianCalendar fromDate,
                                  ProcessContext context)
                           throws ApplicationException
Throws:
ApplicationException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDescription

public java.lang.String getDescription()
Retourne la description du process