log.warn( "doPurge( String ) is not supported for DistributedDirectoryPurgeController" );
}
public void doPurge( AbstractPurgeConfiguration purgeConfig )
{
DistributedDirectoryPurgeConfiguration dirPurge = (DistributedDirectoryPurgeConfiguration) purgeConfig;
try
{
transportClient.ping();
StringBuilder logMsg = new StringBuilder().append(
"Executing directory purge with the following settings[directoryType=" ).
append( dirPurge.getDirectoryType() ).append( ",daysOlder=" ).
append( dirPurge.getDaysOlder() ).append( ", retentionCount=" ).
append( dirPurge.getRetentionCount() ).append( ", deleteAll=" ).
append( dirPurge.isDeleteAll() ).append( "]" );
log.debug( logMsg.toString() );
transportClient.executeDirectoryPurge( dirPurge.getDirectoryType(), dirPurge.getDaysOlder(),
dirPurge.getRetentionCount(), dirPurge.isDeleteAll() );
}
catch ( Exception e )
{
log.error( "Unable to execute purge: " + e.getMessage(), e );
}