Java 类net.floodlightcontroller.core.internal.CmdLineSettings 实例源码

项目:QoS-floodlight    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:Multipath-Hedera-system-in-Floodlight-controller    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:floodlight_with_topoguard    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:FloodligtModule    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:smartenit    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:multicastSDN    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:spring-open    文件:Main.java   
/**
 * Main method to load configuration and modules.
 *
 * @param args
 * @throws FloodlightModuleException
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass",
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:floodlight-qosmanager    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:floodlight-nfv    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:HederaInFloodlight    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:floodlight-oss    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:my-floodlight    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:FL_HAND    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}
项目:sdn-project    文件:Main.java   
/**
 * Main method to load configuration and modules
 * @param args
 * @throws FloodlightModuleException 
 */
public static void main(String[] args) throws FloodlightModuleException {
    // Setup logger
    System.setProperty("org.restlet.engine.loggerFacadeClass", 
            "org.restlet.ext.slf4j.Slf4jLoggerFacade");

    CmdLineSettings settings = new CmdLineSettings();
    CmdLineParser parser = new CmdLineParser(settings);
    try {
        parser.parseArgument(args);
    } catch (CmdLineException e) {
        parser.printUsage(System.out);
        System.exit(1);
    }

    // Load modules
    FloodlightModuleLoader fml = new FloodlightModuleLoader();
    IFloodlightModuleContext moduleContext = fml.loadModulesFromConfig(settings.getModuleFile());
    // Run REST server
    IRestApiService restApi = moduleContext.getServiceImpl(IRestApiService.class);
    restApi.run();
    // Run the main floodlight module
    IFloodlightProviderService controller =
            moduleContext.getServiceImpl(IFloodlightProviderService.class);
    // This call blocks, it has to be the last line in the main
    controller.run();
}