blob: 99f291da9a9c591c311b24612e87cf137d3420fc [file] [log] [blame]
package net.floodlightcontroller.core.internal;
import java.util.List;
import net.floodlightcontroller.core.INetMapTopologyService.ITopoSwitchService;
public class TopoSwitchServiceImpl implements ITopoSwitchService {
ThreadLocal<SwitchStorageImpl> store = new ThreadLocal<SwitchStorageImpl>() {
@Override
protected SwitchStorageImpl initialValue() {
SwitchStorageImpl swStore = new SwitchStorageImpl();
//TODO: Get the file path from global properties
swStore.init("/tmp/cassandra.titan");
return swStore;
}
};
SwitchStorageImpl swStore = store.get();
@Override
public List<String> GetActiveSwitches() {
// TODO Auto-generated method stub
return swStore.getActiveSwitches();
}
@Override
public List<String> GetAllSwitches() {
// TODO Auto-generated method stub
return swStore.getAllSwitches();
}
@Override
public List<String> GetInactiveSwitches() {
// TODO Auto-generated method stub
return swStore.getInactiveSwitches();
}
@Override
public List<String> GetPortsOnSwitch(String dpid) {
// TODO Auto-generated method stub
return null;
}
}