"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dso-l2/src/test/java/com/tc/net/groups/TestStateManager.java" between
terracotta-core-5.7.0.tar.gz and terracotta-core-5.7.1.tar.gz

About: Terracotta - Clustering technology for Java ("Network Attached Memory", "Distributed Cache"). Source code of the server (5.x) core components.

TestStateManager.java  (terracotta-core-5.7.0):TestStateManager.java  (terracotta-core-5.7.1)
skipping to change at line 27 skipping to change at line 27
* *
*/ */
package com.tc.net.groups; package com.tc.net.groups;
import com.tc.l2.context.StateChangedEvent; import com.tc.l2.context.StateChangedEvent;
import com.tc.l2.msg.L2StateMessage; import com.tc.l2.msg.L2StateMessage;
import com.tc.l2.state.ServerMode; import com.tc.l2.state.ServerMode;
import com.tc.l2.state.StateChangeListener; import com.tc.l2.state.StateChangeListener;
import com.tc.l2.state.StateManager; import com.tc.l2.state.StateManager;
import com.tc.net.NodeID; import com.tc.net.NodeID;
import com.tc.net.ServerID;
import java.util.Collections; import java.util.Collections;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.CopyOnWriteArrayList;
public class TestStateManager implements StateManager { public class TestStateManager implements StateManager {
private boolean isActive = false; private boolean isActive = false;
private final CopyOnWriteArrayList<StateChangeListener> listeners = new CopyOn WriteArrayList<>(); private final CopyOnWriteArrayList<StateChangeListener> listeners = new CopyOn WriteArrayList<>();
skipping to change at line 61 skipping to change at line 62
listener.l2StateChanged(sce); listener.l2StateChanged(sce);
} }
} }
@Override @Override
public NodeID getActiveNodeID() { public NodeID getActiveNodeID() {
return localNodeID; return localNodeID;
} }
@Override @Override
public Set<NodeID> getPassiveStandbys() { public Set<ServerID> getPassiveStandbys() {
return Collections.emptySet(); return Collections.emptySet();
} }
@Override @Override
public void handleClusterStateMessage(L2StateMessage clusterMsg) { public void handleClusterStateMessage(L2StateMessage clusterMsg) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
@Override @Override
public boolean isActiveCoordinator() { public boolean isActiveCoordinator() {
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)