Skip to content

Commit 3983c6f

Browse files
DarthMaxadamnsch
andcommitted
Add a procedure to display gds flight server status
Co-authored-by: Adam Schill Collberg <adam.schill.collberg@protonmail.com>
1 parent ceb4f75 commit 3983c6f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

neo4j-adapter/src/main/java/org/neo4j/gds/compat/GraphDatabaseApiProxy.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ public static Neo4jVersion neo4jVersion() {
4242
return Neo4jVersion.findNeo4jVersion();
4343
}
4444

45+
public static boolean containsDependency(GraphDatabaseService db, Class<?> dependency) {
46+
return containsDependency(((GraphDatabaseAPI) db).getDependencyResolver(), dependency);
47+
}
48+
49+
public static boolean containsDependency(DependencyResolver resolver, Class<?> dependency) {
50+
return resolver.containsDependency(dependency);
51+
}
52+
4553
public static <T> T resolveDependency(GraphDatabaseService db, Class<T> dependency) {
4654
return resolveDependency(((GraphDatabaseAPI) db).getDependencyResolver(), dependency);
4755
}

0 commit comments

Comments
 (0)