Move {MessageModule=>TomP2PMessageModule}#BOOTSTRAP_NODE_*_KEY

This commit is contained in:
Chris Beams 2014-11-10 08:26:56 +01:00
parent 9bdb4b4249
commit 8723e9ef0d
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73
5 changed files with 9 additions and 6 deletions

View File

@ -22,7 +22,8 @@ import net.sourceforge.argparse4j.inf.ArgumentParserException;
import net.sourceforge.argparse4j.inf.Namespace;
import static io.bitsquare.app.AppModule.APP_NAME_KEY;
import static io.bitsquare.msg.MessageModule.*;
import static io.bitsquare.msg.MessageModule.NETWORK_INTERFACE_KEY;
import static io.bitsquare.msg.tomp2p.TomP2PMessageModule.*;
public class ArgumentParser {

View File

@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory;
import net.sourceforge.argparse4j.inf.Namespace;
import static io.bitsquare.msg.MessageModule.*;
import static io.bitsquare.msg.tomp2p.TomP2PMessageModule.*;
public class SeedNode {
private static final Logger log = LoggerFactory.getLogger(SeedNode.class);

View File

@ -50,7 +50,8 @@ import lighthouse.files.AppDirectory;
import net.sourceforge.argparse4j.inf.Namespace;
import static io.bitsquare.app.AppModule.APP_NAME_KEY;
import static io.bitsquare.msg.MessageModule.*;
import static io.bitsquare.msg.MessageModule.NETWORK_INTERFACE_KEY;
import static io.bitsquare.msg.tomp2p.TomP2PMessageModule.*;
public class Main extends Application {
private static final Logger log = LoggerFactory.getLogger(Main.class);

View File

@ -26,9 +26,6 @@ import java.util.Properties;
public abstract class MessageModule extends BitsquareModule {
public static final String BOOTSTRAP_NODE_ID_KEY = "id";
public static final String BOOTSTRAP_NODE_IP_KEY = "ip";
public static final String BOOTSTRAP_NODE_PORT_KEY = "port";
public static final String NETWORK_INTERFACE_KEY = "networkInterface";
protected MessageModule(Properties properties) {

View File

@ -29,6 +29,10 @@ import static io.bitsquare.network.BootstrapNodes.DEFAULT_BOOTSTRAP_NODE;
public class TomP2PMessageModule extends MessageModule {
public static final String BOOTSTRAP_NODE_ID_KEY = "id";
public static final String BOOTSTRAP_NODE_IP_KEY = "ip";
public static final String BOOTSTRAP_NODE_PORT_KEY = "port";
public TomP2PMessageModule(Properties properties) {
super(properties);
}