Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

Commit

Permalink
facto serverAoo
Browse files Browse the repository at this point in the history
  • Loading branch information
T4ze committed Dec 9, 2017
1 parent f547b96 commit 129f659
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
5 changes: 0 additions & 5 deletions src/main/java/com/epita/guereza/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ private static void runApp(Scope scope) {
crawlerApp.run();
}

private static void testServer() {
final NettyServer ns = new NettyServer();
ns.run(NETTY_PORT);
}

private static void testSearch(final Index index, final String query) {
IndexerService indexer = new IndexerService();

Expand Down
13 changes: 4 additions & 9 deletions src/main/java/com/epita/guereza/ServerApp.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
package com.epita.guereza;

import com.epita.eventbus.EventBusClient;
import com.epita.eventbus.NettyServer;

public class ServerApp extends App {
final NettyServer ns;
final int port;
public class ServerApp {
private final NettyServer ns = new NettyServer();
private final int port;

protected ServerApp(EventBusClient eventBus, int port) {
super(eventBus);

ns = new NettyServer();
protected ServerApp(int port) {
this.port = port;
}

@Override
public void run() {
ns.run(port);
}
Expand Down

0 comments on commit 129f659

Please sign in to comment.