Fixing GUI to bypass the new UiTopoSession code which is not ready.
Change-Id: I5bcee7897f43867fc4d6157c44420937265d488b
Showing
2 changed files
with
6 additions
and
8 deletions
| ... | @@ -28,8 +28,6 @@ import org.onosproject.ui.UiExtensionService; | ... | @@ -28,8 +28,6 @@ import org.onosproject.ui.UiExtensionService; |
| 28 | import org.onosproject.ui.UiMessageHandler; | 28 | import org.onosproject.ui.UiMessageHandler; |
| 29 | import org.onosproject.ui.UiMessageHandlerFactory; | 29 | import org.onosproject.ui.UiMessageHandlerFactory; |
| 30 | import org.onosproject.ui.UiTopoOverlayFactory; | 30 | import org.onosproject.ui.UiTopoOverlayFactory; |
| 31 | -import org.onosproject.ui.impl.topo.UiTopoSession; | ||
| 32 | -import org.onosproject.ui.impl.topo.model.UiSharedTopologyModel; | ||
| 33 | import org.onosproject.ui.topo.TopoConstants; | 31 | import org.onosproject.ui.topo.TopoConstants; |
| 34 | import org.slf4j.Logger; | 32 | import org.slf4j.Logger; |
| 35 | import org.slf4j.LoggerFactory; | 33 | import org.slf4j.LoggerFactory; |
| ... | @@ -65,7 +63,7 @@ public class UiWebSocket | ... | @@ -65,7 +63,7 @@ public class UiWebSocket |
| 65 | 63 | ||
| 66 | private final ObjectMapper mapper = new ObjectMapper(); | 64 | private final ObjectMapper mapper = new ObjectMapper(); |
| 67 | private final ServiceDirectory directory; | 65 | private final ServiceDirectory directory; |
| 68 | - private final UiTopoSession topoSession; | 66 | +// private final UiTopoSession topoSession; |
| 69 | 67 | ||
| 70 | private Connection connection; | 68 | private Connection connection; |
| 71 | private FrameConnection control; | 69 | private FrameConnection control; |
| ... | @@ -85,8 +83,8 @@ public class UiWebSocket | ... | @@ -85,8 +83,8 @@ public class UiWebSocket |
| 85 | public UiWebSocket(ServiceDirectory directory, String userName) { | 83 | public UiWebSocket(ServiceDirectory directory, String userName) { |
| 86 | this.directory = directory; | 84 | this.directory = directory; |
| 87 | this.userName = userName; | 85 | this.userName = userName; |
| 88 | - this.topoSession = | 86 | +// this.topoSession = |
| 89 | - new UiTopoSession(this, directory.get(UiSharedTopologyModel.class)); | 87 | +// new UiTopoSession(this, directory.get(UiSharedTopologyModel.class)); |
| 90 | } | 88 | } |
| 91 | 89 | ||
| 92 | @Override | 90 | @Override |
| ... | @@ -130,7 +128,7 @@ public class UiWebSocket | ... | @@ -130,7 +128,7 @@ public class UiWebSocket |
| 130 | this.connection = connection; | 128 | this.connection = connection; |
| 131 | this.control = (FrameConnection) connection; | 129 | this.control = (FrameConnection) connection; |
| 132 | try { | 130 | try { |
| 133 | - topoSession.init(); | 131 | +// topoSession.init(); |
| 134 | createHandlersAndOverlays(); | 132 | createHandlersAndOverlays(); |
| 135 | sendBootstrapData(); | 133 | sendBootstrapData(); |
| 136 | log.info("GUI client connected -- user <{}>", userName); | 134 | log.info("GUI client connected -- user <{}>", userName); |
| ... | @@ -145,7 +143,7 @@ public class UiWebSocket | ... | @@ -145,7 +143,7 @@ public class UiWebSocket |
| 145 | 143 | ||
| 146 | @Override | 144 | @Override |
| 147 | public synchronized void onClose(int closeCode, String message) { | 145 | public synchronized void onClose(int closeCode, String message) { |
| 148 | - topoSession.destroy(); | 146 | +// topoSession.destroy(); |
| 149 | destroyHandlersAndOverlays(); | 147 | destroyHandlersAndOverlays(); |
| 150 | log.info("GUI client disconnected [close-code={}, message={}]", | 148 | log.info("GUI client disconnected [close-code={}, message={}]", |
| 151 | closeCode, message); | 149 | closeCode, message); | ... | ... |
| ... | @@ -66,7 +66,7 @@ import org.slf4j.LoggerFactory; | ... | @@ -66,7 +66,7 @@ import org.slf4j.LoggerFactory; |
| 66 | /** | 66 | /** |
| 67 | * Service that creates and maintains the UI-model of the network topology. | 67 | * Service that creates and maintains the UI-model of the network topology. |
| 68 | */ | 68 | */ |
| 69 | -@Component(immediate = true) | 69 | +@Component(immediate = true, enabled = false) |
| 70 | @Service(value = UiSharedTopologyModel.class) | 70 | @Service(value = UiSharedTopologyModel.class) |
| 71 | public final class UiSharedTopologyModel | 71 | public final class UiSharedTopologyModel |
| 72 | extends AbstractListenerManager<UiModelEvent, UiModelListener> { | 72 | extends AbstractListenerManager<UiModelEvent, UiModelListener> { | ... | ... |
-
Please register or login to post a comment