Cleanup of property names

This commit is contained in:
Ziver Koc 2020-07-24 00:25:58 +02:00
parent 467a5ff068
commit c3731ca4b4
5 changed files with 43 additions and 29 deletions

View file

@ -53,11 +53,13 @@ import java.util.logging.Logger;
public class PCDataSynchronizationDaemon extends ThreadedTCPNetworkServer implements HalDaemon {
private static final Logger logger = LogUtil.getLogger();
public static final String PROPERTY_SYNC_PORT = "powerchallenge.sync_port";
public static final int PROTOCOL_VERSION = 5; // Increment for protocol changes
public PCDataSynchronizationDaemon() {
super(HalContext.getIntegerProperty("sync_port"));
super(HalContext.getIntegerProperty(PROPERTY_SYNC_PORT));
}
@Override