File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 */
1616public 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 ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 44
55import java .nio .*;
66
7+ /** Creates a message to send to the database.
8+ * Database messages are of the form:
9+ * <blockquote>
10+ * <length><id><respondingTo><operation><data>
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+ */
722public class DBMessage {
823
924 static int ID = 1 ;
You can’t perform that action at this time.
0 commit comments