Skip to content

Commit 3fb6836

Browse files
author
kristina
committed
doc
1 parent d8b5623 commit 3fb6836

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

src/main/com/mongodb/DBApiLayer.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
public abstract class DBApiLayer extends DBBase {
1717

18-
/** @unexpose */
1918
static final boolean D = Boolean.getBoolean( "DEBUG.DB" );
2019
/** The maximum number of cursors allowed */
2120
static final int NUM_CURSORS_BEFORE_KILL = 100;
@@ -54,7 +53,6 @@ protected MyCollection doGetCollection( String name ){
5453
return c;
5554
}
5655

57-
/** @unexpose */
5856
String _removeRoot( String ns ){
5957
if ( ! ns.startsWith( _root + "." ) )
6058
return ns;

src/main/com/mongodb/DBBase.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@ public void requestStart(){}
1414
public void requestDone(){}
1515
public void requestEnsureConnection(){}
1616

17+
/** Returns the collection represented by the string <dbName>.<collectionName>.
18+
* @param fullNameSpace the string
19+
* @return the collection
20+
*/
1721
public abstract DBCollection getCollectionFromFull( String fullNameSpace );
1822
protected abstract DBCollection doGetCollection( String name );
1923
public abstract Set<String> getCollectionNames();
2024

25+
/** Gets the address of this database.
26+
* @return the address
27+
*/
2128
public abstract DBAddress getAddress();
2229
public abstract String getConnectPoint();
2330

src/main/com/mongodb/DBMessage.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44

55
import java.nio.*;
66

7+
/** Creates a message to send to the database.
8+
* Database messages are of the form:
9+
* <blockquote>
10+
* &lt;length&gt;&lt;id&gt;&lt;respondingTo&gt;&lt;operation&gt;&lt;data&gt;
11+
* </blockquote>
12+
* The first four variables are the header and the last is the content.
13+
* <table border="1"><tr>
14+
* <th>Variable</th><th>Type</th><th>Description</th></tr>
15+
* <tr><td>length</td><td><code>int</code></td><td>The length of the entire message</td></tr>
16+
* <tr><td>id</td><td><code>int</code></td><td>A unique id generated automatically for the message</td></tr>
17+
* <tr><td>respondingTo</td><td><code>int</code></td><td>The id of the message this is in response to, or 0 if it isn't a reponse</td></tr>
18+
* <tr><td>operation</td><td><code>int</code></td><td>The database operation desired</td></tr>
19+
* <tr><td>data</td><td><code>byte[]</code></td><td>The message body</td></tr>
20+
* </table>
21+
*/
722
public class DBMessage {
823

924
static int ID = 1;

0 commit comments

Comments
 (0)