some minor changes

This commit is contained in:
betasteward 2015-06-20 09:30:28 -04:00
parent 8d5ab2c9d1
commit a7369fabd4
4 changed files with 6 additions and 9 deletions

View file

@ -60,6 +60,10 @@ public class MageVersion implements Serializable, Comparable<MageVersion> {
this.info = info;
}
public static MageVersion getCurrent() {
return new MageVersion(MAGE_VERSION_MAJOR, MAGE_VERSION_MINOR, MAGE_VERSION_PATCH, MAGE_VERSION_MINOR_PATCH, MAGE_VERSION_INFO);
}
public int getMajor() {
return major;
}

View file

@ -311,10 +311,6 @@ public class Client {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
public UUID getMainRoomId() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
public void watchTable(UUID roomId, UUID tableId) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

View file

@ -120,7 +120,7 @@ public class ServerMain implements MageServer {
private static final Logger logger = Logger.getLogger(MageServer.class);
// private static final ExecutorService callExecutor = ThreadExecutor.getInstance().getCallExecutor();
private static final MageVersion version = new MageVersion(MageVersion.MAGE_VERSION_MAJOR, MageVersion.MAGE_VERSION_MINOR, MageVersion.MAGE_VERSION_PATCH, MageVersion.MAGE_VERSION_MINOR_PATCH, MageVersion.MAGE_VERSION_INFO);
private static final MageVersion version = MageVersion.getCurrent();
private static final String testModeArg = "-testMode=";
private static final String fastDBModeArg = "-fastDbMode=";

View file

@ -72,6 +72,7 @@ public class ServerMessagesUtil {
}
public ServerMessagesUtil() {
this.startDate = System.currentTimeMillis();
updateExecutor = Executors.newSingleThreadScheduledExecutor();
updateExecutor.scheduleAtFixedRate(new Runnable() {
@Override
@ -182,10 +183,6 @@ public class ServerMessagesUtil {
// }
// });
public void setStartDate(long milliseconds) {
this.startDate = milliseconds;
}
public void incGamesStarted() {
int value;
do {