Package net.floodlightcontroller.core.module

Examples of net.floodlightcontroller.core.module.FloodlightModuleException


                CounterType.ALWAYS_COUNT);
            ctrReconciledFlows = debugCounters.registerCounter(PACKAGE, "reconciled-flows",
                "All flows reconciled successfully by this module",
                CounterType.ALWAYS_COUNT);
        } catch (CounterException e) {
            throw new FloodlightModuleException(e.getMessage());
        }
    }
View Full Code Here


                debugEvents.registerEvent(PACKAGE, "topologyevent",
                                          "Topology Computation",
                                          EventType.ALWAYS_LOG,
                                          TopologyEvent.class, 100);
        } catch (MaxEventsRegistered e) {
            throw new FloodlightModuleException("Max events registered", e);
        }
    }
View Full Code Here

        try {
            ctrIncoming = debugCounters.registerCounter(PACKAGE, "incoming",
                "All incoming packets seen by this module",
                CounterType.ALWAYS_COUNT);
        } catch (CounterException e) {
            throw new FloodlightModuleException(e.getMessage());
        }
    }
View Full Code Here

            evDevice =
                debugEvents.registerEvent(PACKAGE, "hostevent",
                                          "Host added, removed, updated, or moved",
                                          EventType.ALWAYS_LOG, DeviceEvent.class, 500);
        } catch (MaxEventsRegistered e) {
            throw new FloodlightModuleException("Max events registered", e);
        }
    }
View Full Code Here

            this.storeClient = this.syncService
                    .getStoreClient(DEVICE_SYNC_STORE_NAME,
                                    String.class,
                                    DeviceSyncRepresentation.class);
        } catch (SyncException e) {
            throw new FloodlightModuleException("Error while setting up sync service", e);
        }
        floodlightProvider.addInfoProvider("summary", this);
    }
View Full Code Here

                 "transition-to-master",
                 "Number of times this controller has transitioned from SLAVE " +
                 "to MASTER role. Will be 0 or 1.",
                 CounterType.ALWAYS_COUNT);
        } catch (CounterException e) {
            throw new FloodlightModuleException(e.getMessage());
        }
    }
View Full Code Here

                dprovider.addProvider(provider);
            }
            dprovider.init(this, context);
            clusterConfigProvider = dprovider;
        } catch (Exception e) {
            throw new FloodlightModuleException("Could not instantiate config" +
                    "providers " + Arrays.toString(configProviders), e);
        }

        String manualStoreString = config.get("manualStores");
        if (manualStoreString != null) {
            List<String> manualStores = null;
            try {
                manualStores =
                        (new ObjectMapper()).readValue(manualStoreString,
                                         new TypeReference<List<String>>() {});
            } catch (Exception e) {
                throw new FloodlightModuleException("Failed to parse sync " +
                        "manager manual stores: " + manualStoreString, e);
            }
            for (String s : manualStores) {
                registerStore(s, Scope.GLOBAL);
            }
View Full Code Here

                                    "error-processing",
                                    "Number of errors processing messages from remote clients",
                                    CounterType.ALWAYS_COUNT,
                                    IDebugCounterService.CTR_MDATA_ERROR);
            } catch (CounterException e) {
                throw new FloodlightModuleException(e.getMessage());
            }
        }

    }
View Full Code Here

                                 getLocalNodeId(), n.getNodeId());
                    rpcService.disconnectNode(n.getNodeId());
                }
            }
        } catch (Exception e) {
            throw new FloodlightModuleException("Could not update " +
                                                "configuration", e);
        }
    }
View Full Code Here

        debugCounter = context.getServiceImpl(IDebugCounterService.class);

        try {
            syncService.registerStore(SYNC_STORE_NAME, Scope.GLOBAL);
        } catch (SyncException e) {
            throw new FloodlightModuleException(e);
        }
       
        Map<String,String> config = context.getConfigParams(this);
        if (config.containsKey("numWorkers")) {
            numWorkers = Integer.parseInt(config.get("numWorkers"));
View Full Code Here

TOP

Related Classes of net.floodlightcontroller.core.module.FloodlightModuleException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.