Sun May 3 06:50:50 2020ĭdp_filecopy_stop() failed, Err: 5004-nfs filecopy stop failed (nfs: No such file or directory) Sun May 3 08:45:16 2020ĭdp_open_file_ext() failed for File: avamar-15XXXXXXXXXXX/cur/YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY/ZZZZZZZZZZZZZ/container.1.cdsf, Err: 5004-nfs lookup failed (nfs: No such file or directory) 08:45:16 avtar Error : Replication failed - id: X, unexpected exception caught: ddr_replthread:X:replicateSlice: source ddp_open_file failed avamar-15XXXXXXXXXXX:/cur/YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY/ZZZZZZZZZZZZZ/container.1.cdsf
Query query = mMeteor.getDatabase().IDPA or Avamar/Data Domain replication job fails with error: Query query = mMeteor.getDatabase().getCollection(collectionName).whereGreaterThanOrEqual(fieldName, fieldValue) // String fieldName = "address" Query query = mMeteor.getDatabase().getCollection(collectionName).whereGreaterThan(fieldName, fieldValue) // String fieldName = "age" Query query = mMeteor.getDatabase().getCollection(collectionName).whereLessThanOrEqual(fieldName, fieldValue) // String fieldName = "revenue" Query query = mMeteor.getDatabase().getCollection(collectionName).whereLessThan(fieldName, fieldValue) // String fieldName = "numChildren" Query query = mMeteor.getDatabase().getCollection(collectionName).whereNotEqual(fieldName, fieldValue) // String fieldName = "accountBalance" Query query = mMeteor.getDatabase().getCollection(collectionName).whereEqual(fieldName, fieldValue) // String fieldName = "active" Getting a collection from the database by name // String collectionName = "m圜ollection" Ĭollection collection = mMeteor.getDatabase().getCollection(collectionName) Retrieving the names of all collections from the database String collectionNames = mMeteor.getDatabase().getCollectionNames() Fetching the number of collections from the database int numCollections = mMeteor.getDatabase().count() Getting a document from a collection by ID // String documentId = "wjQvNQ6sGjzLMDyiJ" ĭocument document = mMeteor.getDatabase().getCollection(collectionName).getDocument(documentId) Retrieving the IDs of all documents from a collection String documentIds = mMeteor.getDatabase().getCollection(collectionName).getDocumentIds() Fetching the number of documents from a collection int numDocuments = mMeteor.getDatabase().getCollection(collectionName).count() Querying a collection for documentsĪny of the following method calls can be chained and combined in any way to select documents via complex queries. This method call and most of the following method calls can be chained for simplicity. Accessing the database Database database = mMeteor.getDatabase() In these callbacks, you can thus ignore the parameters containing JSON data and instead get the data from your database. So whenever you receive data notifications via onDataAdded, onDataChanged or onDataRemoved, that data has already been merged into the database and can be retrieved from there.
So the code for the constructor becomes: mMeteor = new Meteor(this, "ws:///websocket", new InMemoryDatabase()) Īfter that change, all data received from the server will automatically be parsed, updated and managed for you in the built-in database. Right now, the only subclass provided as a built-in database is InMemoryDatabase. Pass an instance of Database to the constructor. Using databases to manage data Enabling a database Manually attempt to re-connect (if necessary) mMeteor.reconnect()
By using this library, however, you can write native Android apps in Java while still using Meteor as your real-time backend.ĭeclare the Gradle repository in your root adle allprojects ) Ĭhecking whether the client is connected mMeteor.isConnected().With Meteor's built-in features, your Android app will be written in HTML, CSS and JavaScript, wrapped in a WebView.