2017-05-29 101 views
-1

我有一個遠程的orientdb服務器,並根據文檔 http://orientdb.com/docs/2.2.x/Caching.html 如果我不在線,似乎有可能訪問緩存。我搜索了很長時間,但我無法找到。我想有一個ODataBaseDocumentTx可脫機使用,但如果我嘗試訪問緩存orientdb離線

ODatabaseDocumentTx db = new ODatabaseDocumentTx("remote:localhost/test").open("root","root") 

我有一個例外:

不能創建到遠程服務器地址

的連接是顯而易見的我的情況。

回答

1

您需要在線服務器才能使用它。 緩存需要遠程服務器聯機才能正常工作。

您提供的代碼,試圖與數據庫連接,它不能工作,沒有它:

ODatabaseDocumentTx db = new ODatabaseDocumentTx("remote:localhost/test").open("root","root")