@Override public List<Route> getRoutes() { Route r = new Route("/remoteReceive", HttpMethod.POST, FunctionType.Supplier, this::receiveData); return Collections.singletonList(r); }
List<Route> routes = m.getRoutes(); for (Route r : routes) { RoutingDsl.PathPatternMatcher ppm = routingDsl.match(r.getHttpMethod().name(), r.getRoute()); switch (r.getFunctionType()) { case Supplier: ppm.routeTo(FunctionUtil.function0(r.getSupplier())); break; case Function: ppm.routeTo(FunctionUtil.function(r.getFunction())); break; case BiFunction:
List<Route> routes = m.getRoutes(); for (Route r : routes) { RoutingDsl.PathPatternMatcher ppm = routingDsl.match(r.getHttpMethod().name(), r.getRoute()); switch (r.getFunctionType()) { case Supplier: ppm.routeTo(FunctionUtil.function0(r.getSupplier())); break; case Function: ppm.routeTo(FunctionUtil.function(r.getFunction())); break; case BiFunction:
List<Route> routes = m.getRoutes(); for (Route r : routes) { RoutingDsl.PathPatternMatcher ppm = routingDsl.match(r.getHttpMethod().name(), r.getRoute()); switch (r.getFunctionType()) { case Supplier: ppm.routeTo(FunctionUtil.function0(r.getSupplier())); break; case Function: ppm.routeTo(FunctionUtil.function(r.getFunction())); break; case BiFunction:
@Override public List<Route> getRoutes() { Route r = new Route("/remoteReceive", HttpMethod.POST, FunctionType.Supplier, this::receiveData); return Collections.singletonList(r); }
@Override public List<Route> getRoutes() { Route r = new Route("/remoteReceive", HttpMethod.POST, FunctionType.Supplier, this::receiveData); return Collections.singletonList(r); }
@Override public List<Route> getRoutes() { Route r1 = new Route("/arbiter", HttpMethod.GET, FunctionType.Supplier, () -> Results.ok(ArbiterUI.apply())); Route r3 = new Route("/arbiter/lastUpdate", HttpMethod.GET, FunctionType.Supplier, this::getLastUpdateTime); Route r4 = new Route("/arbiter/lastUpdate/:ids", HttpMethod.GET, FunctionType.Function, this::getModelLastUpdateTimes); Route r5 = new Route("/arbiter/candidateInfo/:id", HttpMethod.GET, FunctionType.Function, this::getCandidateInfo); Route r6 = new Route("/arbiter/config", HttpMethod.GET, FunctionType.Supplier, this::getOptimizationConfig); Route r7 = new Route("/arbiter/results", HttpMethod.GET, FunctionType.Supplier, this::getSummaryResults); Route r8 = new Route("/arbiter/summary", HttpMethod.GET, FunctionType.Supplier, this::getSummaryStatus); Route r9a = new Route("/arbiter/sessions/all", HttpMethod.GET, FunctionType.Supplier, this::listSessions); Route r9b = new Route("/arbiter/sessions/current", HttpMethod.GET, FunctionType.Supplier, this::currentSession); Route r9c = new Route("/arbiter/sessions/set/:to", HttpMethod.GET, FunctionType.Function, this::setSession); return Arrays.asList(r1, r3, r4, r5, r6, r7, r8, r9a, r9b, r9c); }
@Override public List<Route> getRoutes() { Route r1 = new Route("/tsne", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.tsne.Tsne.apply())); Route r2 = new Route("/tsne/sessions", HttpMethod.GET, FunctionType.Supplier, this::listSessions); Route r3 = new Route("/tsne/coords/:sid", HttpMethod.GET, FunctionType.Function, this::getCoords); Route r4 = new Route("/tsne/upload", HttpMethod.POST, FunctionType.Supplier, this::uploadFile); // Route r5 = new Route("/tsne/post/:sid", HttpMethod.POST, FunctionType.Function, this::postFile); Route r5 = new Route("/tsne/post/:sid", HttpMethod.GET, FunctionType.Function, this::postFile); return Arrays.asList(r1, r2, r3, r4, r5); }
@Override public List<Route> getRoutes() { Route r1 = new Route("/tsne", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.tsne.Tsne.apply())); Route r2 = new Route("/tsne/sessions", HttpMethod.GET, FunctionType.Supplier, this::listSessions); Route r3 = new Route("/tsne/coords/:sid", HttpMethod.GET, FunctionType.Function, this::getCoords); Route r4 = new Route("/tsne/upload", HttpMethod.POST, FunctionType.Supplier, this::uploadFile); // Route r5 = new Route("/tsne/post/:sid", HttpMethod.POST, FunctionType.Function, this::postFile); Route r5 = new Route("/tsne/post/:sid", HttpMethod.GET, FunctionType.Function, this::postFile); return Arrays.asList(r1, r2, r3, r4, r5); }
@Override public List<Route> getRoutes() { Route r1 = new Route("/tsne", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.tsne.Tsne.apply())); Route r2 = new Route("/tsne/sessions", HttpMethod.GET, FunctionType.Supplier, this::listSessions); Route r3 = new Route("/tsne/coords/:sid", HttpMethod.GET, FunctionType.Function, this::getCoords); Route r4 = new Route("/tsne/upload", HttpMethod.POST, FunctionType.Supplier, this::uploadFile); // Route r5 = new Route("/tsne/post/:sid", HttpMethod.POST, FunctionType.Function, this::postFile); Route r5 = new Route("/tsne/post/:sid", HttpMethod.GET, FunctionType.Function, this::postFile); return Arrays.asList(r1, r2, r3, r4, r5); }
@Override public List<Route> getRoutes() { Route r1 = new Route("/flow", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.flow.Flow.apply())); Route r2 = new Route("/flow/info/:id", HttpMethod.GET, FunctionType.Function, this::getStaticInfo); Route r3 = new Route("/flow/state/:id", HttpMethod.GET, FunctionType.Function, this::getUpdate); Route r4 = new Route("/flow/listSessions", HttpMethod.GET, FunctionType.Supplier, this::listSessions); return Arrays.asList(r1, r2, r3, r4); }
@Override public List<Route> getRoutes() { Route r1 = new Route("/flow", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.flow.Flow.apply())); Route r2 = new Route("/flow/info/:id", HttpMethod.GET, FunctionType.Function, this::getStaticInfo); Route r3 = new Route("/flow/state/:id", HttpMethod.GET, FunctionType.Function, this::getUpdate); Route r4 = new Route("/flow/listSessions", HttpMethod.GET, FunctionType.Supplier, this::listSessions); return Arrays.asList(r1, r2, r3, r4); }
@Override public List<Route> getRoutes() { Route r1 = new Route("/flow", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.flow.Flow.apply())); Route r2 = new Route("/flow/info/:id", HttpMethod.GET, FunctionType.Function, this::getStaticInfo); Route r3 = new Route("/flow/state/:id", HttpMethod.GET, FunctionType.Function, this::getUpdate); Route r4 = new Route("/flow/listSessions", HttpMethod.GET, FunctionType.Supplier, this::listSessions); return Arrays.asList(r1, r2, r3, r4); }
@Override public List<Route> getRoutes() { //TODO // Route r = new Route("/", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.defaultPage.DefaultPage.apply())); Route r = new Route("/", HttpMethod.GET, FunctionType.Supplier, () -> redirect("/train/overview")); return Collections.singletonList(r); }
@Override public List<Route> getRoutes() { Route r = new Route("/weights", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.histogram.Histogram.apply())); Route r2 = new Route("/weights/listSessions", HttpMethod.GET, FunctionType.Supplier, () -> ok(Json.toJson(knownSessionIDs.keySet()))); Route r3 = new Route("/weights/updated/:sid", HttpMethod.GET, FunctionType.Function, this::getLastUpdateTime); Route r4 = new Route("/weights/data/:sid", HttpMethod.GET, FunctionType.Function, this::processRequest); return Arrays.asList(r, r2, r3, r4); }
@Override public List<Route> getRoutes() { Route r = new Route("/activations", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.convolutional.Activations.apply())); Route r2 = new Route("/activations/data", HttpMethod.GET, FunctionType.Supplier, this::getImage); return Arrays.asList(r, r2); }
@Override public List<Route> getRoutes() { Route r = new Route("/weights", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.histogram.Histogram.apply())); Route r2 = new Route("/weights/listSessions", HttpMethod.GET, FunctionType.Supplier, () -> ok(Json.toJson(knownSessionIDs.keySet()))); Route r3 = new Route("/weights/updated/:sid", HttpMethod.GET, FunctionType.Function, this::getLastUpdateTime); Route r4 = new Route("/weights/data/:sid", HttpMethod.GET, FunctionType.Function, this::processRequest); return Arrays.asList(r, r2, r3, r4); }
@Override public List<Route> getRoutes() { //TODO // Route r = new Route("/", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.defaultPage.DefaultPage.apply())); Route r = new Route("/", HttpMethod.GET, FunctionType.Supplier, () -> redirect("/train/overview")); return Collections.singletonList(r); }
@Override public List<Route> getRoutes() { //TODO // Route r = new Route("/", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.defaultPage.DefaultPage.apply())); Route r = new Route("/", HttpMethod.GET, FunctionType.Supplier, () -> redirect("/train/overview")); return Collections.singletonList(r); }
@Override public List<Route> getRoutes() { Route r = new Route("/activations", HttpMethod.GET, FunctionType.Supplier, () -> ok(org.deeplearning4j.ui.views.html.convolutional.Activations.apply())); Route r2 = new Route("/activations/data", HttpMethod.GET, FunctionType.Supplier, this::getImage); return Arrays.asList(r, r2); }