forked from mongodb/mongo-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDBProxy.java
More file actions
38 lines (30 loc) · 860 Bytes
/
DBProxy.java
File metadata and controls
38 lines (30 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.mongodb;
public class DBProxy extends DB {
public DBProxy(Mongo mongo, String name) {
super(mongo, name);
}
@Override
public void requestStart() {
throw new RuntimeException("Not supported by DB Proxy");
}
@Override
public void requestDone() {
throw new RuntimeException("Not supported by DB Proxy");
}
@Override
public void requestEnsureConnection() {
throw new RuntimeException("Not supported by DB Proxy");
}
@Override
protected DBCollection doGetCollection(String name) {
throw new RuntimeException("Not supported by DB Proxy");
}
@Override
public String toString(){
return getName();
}
@Override
public void cleanCursors(boolean force) {
throw new RuntimeException("Not supported by DB Proxy");
}
}