Commit f70e1d63 authored by ics's avatar ics
Browse files

remove code from old token management (with tokensimulator)

parent 45ff1819
......@@ -47,17 +47,14 @@ public class TokenManager {
// for the moment => immediately accepted
TokenEvent event = new TokenEvent(0, "?");
event.setState(TokenServerState.OWNED);
TokenEventSender.getInstance().notifyTokenEventListeners(event);
}
public void freeToken() {
SessionManager.getInstance(SERVER_ID).releaseToken();
// for the moment => immediately accepted
//TokenEventSender.getInstance().notifyTokenEventListeners(new TokenEvent("?"));
}
public void askForToken(String clientType) {
SessionManager.getInstance(SERVER_ID).requestToken(clientType);
}
......
......@@ -273,8 +273,6 @@ public class DataChangeSubscriber {
}
private void notifyTokenStateChanged(TokenState message) {
System.out.println("TokenState " + message.getState() + " owner " + message.getOwnerClientID() + " " + message.getOwnerEndpoint());
ClientTokenState state = ClientTokenState.FREE;
if (message.getState() == State.FREE) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment