Thanks Mattias!

/purbon

2011/6/22 Mattias Persson <matt...@neotechnology.com>

> 2011/6/22 Pere Urbon Bayes <p...@moviepilot.com>
>
> > HI, is there any way to force the rotation of the logical log of neo4j?
> >
> > I can guess is something like
> >
> > // get the XaDataSource for the native store
> > TxModule txModule = ((EmbeddedGraphDatabase)
> > graphDb).getConfig().getTxModule();
> > XaDataSourceManager xaDsMgr = txModule.getXaDataSourceManager();
> > XaDataSource xaDs = xaDsMgr.getXaDataSource( "nioneodb" );
> >
> > xaDs.rotateLogicalLog()
> >
>
> That is the way to do it yes.
>
> >
> >
> > but as seen in the community source code,
> >
> > public void rotateLogicalLog() throws IOException
> > {
> >
> >        throw new UnsupportedOperationException( getClass().getName() );
> >    }
> >
> > I am missing something? and I can not find the correct implementation
> > of this methods into the NiNeoDataSource.
> >
> > org.neo4j.kernel.impl.transaction.xaframework.XaDataSource have that
> implementation, yes. But as you can see
> org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource extends
> org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource which
> has a correct implementation of that method. So your piece of code there
> works they way you'd like.
>
> >
> > /purbon
> > _______________________________________________
> > Neo4j mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
>
>
>
> --
> Mattias Persson, [matt...@neotechnology.com]
> Hacker, Neo Technology
> www.neotechnology.com
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Pere Urbon-Bayes
moviepilot GmbH | Mehringdamm 33 | 10961 Berlin | Germany
Telefon +49 30 616 512 -110 | Fax +49 30 616 512 -133
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to