Package net.sf.agentopia.util

Examples of net.sf.agentopia.util.Config.keys()


        final Config conf = getLocalConfig();
        String hostName;
        HostId hostId;

        // (1) Get all the _HOSTS_ from the config file.
        for (String hostKey : conf.keys("host")) {
            if (getExitCount() >= this.maximumExitCount) {
                break;
            }
            hostName = conf.get(hostKey, null);
            if (null != hostName) {
View Full Code Here


                }
            }
        }

        // (2) Get all the _ROUTERS_ from config file.
        for (String routerKey : conf.keys("router")) {
            hostName = conf.get(routerKey, null);
            if (null != hostName) {
                try {
                    hostId = new HostId(hostName);
                    createExitsFromRouter(hostId);
View Full Code Here

    private void createServiteurs() {
        Config conf = getLocalConfig();
        IAgentopiaServiteur serviteur;

        // Go through all services in the config file.
        for (String serviceKey : conf.keys("service")) {
            String service = conf.get(serviceKey, null);
            if (null != service) {
                try {
                    serviteur = (IAgentopiaServiteur) Class.forName(service).newInstance();
                    addServiteur(serviteur);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.