public static Server createServer ( boolean benchmark ) { // Grakn Server configuration ServerID serverID = ServerID . me ( ) ; Config config = Config . create ( ) ; JanusGraphFactory janusGraphFactory = new JanusGraphFactory ( config ) ; // locks LockManager lockManager = new ServerLockManager ( ) ; KeyspaceManager keyspaceStore = new KeyspaceManager ( janusGraphFactory , config ) ; // session factory SessionFactory sessionFactory = new SessionFactory ( lockManager , janusGraphFactory , keyspaceStore , config ) ; // post-processing AttributeDeduplicatorDaemon attributeDeduplicatorDaemon = new AttributeDeduplicatorDaemon ( sessionFactory ) ; // Enable server tracing if ( benchmark ) { ServerTracing . initInstrumentation ( "server-instrumentation" ) ; } // create gRPC server io . grpc . Server serverRPC = createServerRPC ( config , sessionFactory , attributeDeduplicatorDaemon , keyspaceStore , janusGraphFactory ) ; return createServer ( serverID , serverRPC , lockManager , attributeDeduplicatorDaemon , keyspaceStore ) ; }
Create a Server configured for Grakn Core .