Skip to content
Snippets Groups Projects
Commit b248754e authored by Shudong Zhou's avatar Shudong Zhou
Browse files

Make HARoleUnsupportedException private to roleChanger

parent bd4b81ee
No related branches found
No related tags found
No related merge requests found
/**
* Copyright 2012, Big Switch Networks, Inc.
* Originally created by David Erickson, Stanford University
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
**/
package net.floodlightcontroller.core;
/**
* Exception is thrown when IOFSwitch does not support HA role request
* @author shudongz
*/
public class HARoleUnsupportedException extends Exception {
private static final long serialVersionUID = -6854500893864114158L;
}
...@@ -21,7 +21,6 @@ import org.slf4j.Logger; ...@@ -21,7 +21,6 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import net.floodlightcontroller.core.FloodlightContext; import net.floodlightcontroller.core.FloodlightContext;
import net.floodlightcontroller.core.HARoleUnsupportedException;
import net.floodlightcontroller.core.IFloodlightProviderService; import net.floodlightcontroller.core.IFloodlightProviderService;
import net.floodlightcontroller.core.IFloodlightProviderService.Role; import net.floodlightcontroller.core.IFloodlightProviderService.Role;
import net.floodlightcontroller.core.IOFSwitch; import net.floodlightcontroller.core.IOFSwitch;
...@@ -239,6 +238,12 @@ public class RoleChanger { ...@@ -239,6 +238,12 @@ public class RoleChanger {
} // end loop } // end loop
} }
protected class HARoleUnsupportedException extends Exception {
private static final long serialVersionUID = -6854500893864114158L;
}
public RoleChanger(IFloodlightProviderService floodlightProvider) { public RoleChanger(IFloodlightProviderService floodlightProvider) {
this.floodlightProvider = floodlightProvider; this.floodlightProvider = floodlightProvider;
this.pendingRequestMap = new ConcurrentHashMap<IOFSwitch, this.pendingRequestMap = new ConcurrentHashMap<IOFSwitch,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment