Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Changing default cache location in TesterClient
 Post subject: Changing default cache location in TesterClient Post rating: 0   New post Posted: Fri 09 Sep, 2011, 10:18 

User rating: 0
Joined: Thu 04 Aug, 2011, 09:33
Posts: 6
Location: PL
Hello,

is it possible to change the default location of cache data in TesterClient? When I run TesterMain from your package I get debug info like this:

"DEBUG CacheManager - Reading ticks from chunk file [C:\Users\Marcin\Local Settings\JForex\.cache\EURUSD\2011\08\08\23h_ticks.bi5]"

I have changed the location of cache in JForex platform to another disk due to lack of space (those SSDs are too small but there is no turning back) and now the TesterClient has problems with accessing it.

If it is not possible could you please make it so? "Your ideas our objective" is a very nice motto!

Regards,
Marcin


 
 Post subject: Re: Changing default cache location in TesterClient Post rating: 0   New post Posted: Fri 09 Sep, 2011, 12:23 

User rating: 0
Joined: Thu 04 Aug, 2011, 09:33
Posts: 6
Location: PL
I have found an answer:

        final ITesterClient client = TesterFactory.getDefaultInstance();
        client.setCacheDirectory( new File("d:/JForexData/.cache/"));


Should look more closely at the API before posting - I didn't notice the IClient interface.

Regards,
Marcin


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com