Skip to content

Commit a2a671c

Browse files
committed
add data browser methods to BoxStore.java
1 parent ab01448 commit a2a671c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

objectbox-java/src/main/java/io/objectbox/BoxStore.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,12 @@ static native void nativeRegisterCustomType(long store, int entityId, int proper
129129

130130
static native int nativeCleanStaleReadTransactions(long store);
131131

132+
static native String startDataBrowser(long store, String urlPath, int port);
133+
134+
public static native boolean isDataBrowserAvailable();
135+
132136
public static String getVersion() {
133-
return "1.0.1-2017-09-10";
137+
return "1.0.2-2017-09-26";
134138
}
135139

136140
private final File directory;
@@ -660,6 +664,10 @@ public SubscriptionBuilder<Class> subscribe() {
660664
return new SubscriptionBuilder<>(objectClassPublisher, null, threadPool);
661665
}
662666

667+
public String startDataBrowser(int port) {
668+
return startDataBrowser(handle, null, port);
669+
}
670+
663671
/**
664672
* Like {@link #subscribe()}, but wires the supplied @{@link io.objectbox.reactive.DataObserver} only to the given
665673
* object class for notifications.

0 commit comments

Comments
 (0)