private Journal getJournal( DN journalDN ) throws Exception
{
long id = configPartition.getEntryId( journalDN.getNormName() );
Entry jlEntry = configPartition.lookup( id );
Journal journal = new DefaultJournal();
JournalStore store = new DefaultJournalStore();
store.setFileName( getString( "ads-journalFileName", jlEntry ) );
EntryAttribute jlWorkDirAttr = jlEntry.get( "ads-journalWorkingDir" );
if ( jlWorkDirAttr != null )
{
store.setWorkingDirectory( jlWorkDirAttr.getString() );
}
EntryAttribute jlRotAttr = jlEntry.get( "ads-journalRotation" );
if ( jlRotAttr != null )
{
journal.setRotation( Integer.parseInt( jlRotAttr.getString() ) );
}
EntryAttribute jlEnabledAttr = jlEntry.get( "ads-journalEnabled" );
if ( jlEnabledAttr != null )
{
journal.setEnabled( Boolean.parseBoolean( jlEnabledAttr.getString() ) );
}
journal.setJournalStore( store );
return journal;
}