Examples of ConfigurationManager


Examples of cc.co.evenprime.bukkit.nocheat.config.ConfigurationManager

        // Then set up in memory per player data storage
        this.players = new PlayerManager(this);

        this.commandHandler = new CommandHandler(this);
        // Then read the configuration files
        this.conf = new ConfigurationManager(this, this.getDataFolder());

        eventManagers = new ArrayList<EventManager>(8); // Big enough
        // Then set up the event listeners
        eventManagers.add(new MovingCheckListener(this));
        eventManagers.add(new WorkaroundsListener());
View Full Code Here

Examples of com.cloud.configuration.ConfigurationManager

                Service.SourceNat
        };
        for (Service svc: services) {
            serviceProviderMap.put(svc, providerSet);
        }
        ConfigurationManager configMgr = (ConfigurationManager) _configService;
        NetworkOfferingVO voffer = configMgr.createNetworkOffering(offeringName, offeringDisplayText,
                TrafficType.Public, null, true, Availability.Optional, null, serviceProviderMap, true,
                Network.GuestType.Shared, false, null, false, null, true, false, null, true, null, false);

        voffer.setState(NetworkOffering.State.Enabled);
        long id = voffer.getId();
View Full Code Here

Examples of com.cloudera.flume.master.ConfigurationManager

    buildMaster();

    // Instead of loading from a ZK Store, we just see the config in the "deep"
    // config manager. Any translations will not occur.
    ConfigurationManager loaded = cfgMan;
    loaded.setConfig("coll11", "flow1", "autoCollectorSource", "null");
    loaded.setConfig("coll12", "flow1", "autoCollectorSource", "null");
    loaded.setConfig("coll13", "flow1", "autoCollectorSource", "null");
    loaded.setConfig("coll14", "flow1", "autoCollectorSource", "null");
    loaded.setConfig("agent1", "flow1", "null", "autoBEChain");

    loaded.setConfig("coll21", "flow2", "autoCollectorSource", "null");
    loaded.setConfig("coll22", "flow2", "autoCollectorSource", "null");
    loaded.setConfig("coll23", "flow2", "autoCollectorSource", "null");
    loaded.setConfig("coll24", "flow2", "autoCollectorSource", "null");
    loaded.setConfig("agent2", "flow2", "null", "autoBEChain");

    // this is the outer configman, should have no translation.
    ConfigurationManager cfgman1 = flumeMaster.getSpecMan();
    Map<String, FlumeConfigData> cfgs1 = cfgman1.getTranslatedConfigs();
    assertEquals(0, cfgs1.size()); // no translations happened

    // start the master (which should trigger an update and translation
    flumeMaster.serve();
  }
View Full Code Here

Examples of com.eforce.baby.common.config.ConfigurationManager

    }
   
   
    private ArrayList getValuesFromBundle(ArrayList list, Locale loc)
    {
        ConfigurationManager conf = ConfigurationManager.getInstance();
        String resFileName = conf.getString(IConstants.EEMS_RESOURCES_FILENAME);
   
        ResourceBundle bundle = ResourceBundle.getBundle(resFileName, loc);
   
        ArrayList bundleList = new ArrayList();
   
View Full Code Here

Examples of com.ericdaugherty.mail.server.configuration.ConfigurationManager

            // Initialize the logging mechanism.  We want to do this before we do
            // anything else.
            initializeLogging( directory );

            // Initialize the Configuration Manager.
            ConfigurationManager configurationManager = ConfigurationManager.initialize( directory );

            //Start the threads.
            int port;
            int executeThreads = configurationManager.getExecuteThreadCount();

            //Start the Pop3 Thread.
            port = configurationManager.getPop3Port();
            if( log.isDebugEnabled() ) log.debug( "Starting POP3 Service on port: " + port );
            popListener = new ServiceListener( port, Pop3Processor.class, executeThreads );
            new Thread( popListener, "POP3" ).start();

            //Start SMTP Threads.
            port = configurationManager.getSmtpPort();
            if( log.isDebugEnabled() ) log.debug( "Starting SMTP Service on port: " + port );
            smtpListener = new ServiceListener( port, SMTPProcessor.class, executeThreads );
            new Thread( smtpListener, "SMTP" ).start();

            //Start the SMTPSender thread (This thread actually delivers the mail recieved
View Full Code Here

Examples of com.lbslocal.api.utils.ConfigurationManager

    this.pathProject = pathProject;
    this.pathToWrite = pathToWrite;
  }

  void generateAll() {
    ConfigurationManager cm = ConfigurationManager.getInstance();

    String[] apis = cm.getAppSettings("apis").toString().split(Pattern.quote("|"));
    File fileDir = new File(pathToWrite);
    if (!fileDir.exists())
      fileDir.mkdirs();

    String dados;
    File file;
    for (int i = 0; i < apis.length; i++) {
      try {
        dados = ToFileString(pathProject, cm.getAppSettings(apis[i]).split(Pattern.quote("|")));

        file = new File(pathToWrite + File.separator + apis[i] + "_debug.js");
        if (file.exists())
          file.delete();
        file = new File(pathToWrite + File.separator + apis[i] + ".js");
View Full Code Here

Examples of com.lbslocal.master.common.ConfigurationManager

public class ControlAPI {

   
  public static String getLBSAPI(Proxy proxy, TokenValidated tokenValidated) {
    ConfigurationManager cm = ConfigurationManager.getInstance();
   
    String API_VERSION = com.lbslocal.api.utils.ConfigurationManager.getInstance().getAppSettings("M_VERSION");
      String AKAMAI_VERSION = com.lbslocal.api.utils.ConfigurationManager.getInstance().getAppSettings("M_MAP_VERSION");
     
      String SERVICES_SERVER = cm.getAppSettings("M_SERVER");
      String MAP_SERVER = cm.getAppSettings("M_MAP_SERVER");
      String API_JSCRIPT_SERVER = cm.getAppSettings("M_SERVER_API_GZ");
      String MAQUINA = cm.getAppSettings("MAQUINA");
      String SCR_SERVER = cm.getAppSettings("M_SCR_SERVER");
      String MAP_SERVER_DG = cm.getAppSettings("M_MAP_SERVER_DG");
   
      ControlTraffic ct = ControlTraffic.getInstance();
     
    String mTrafficUpdate = ct.getTraffic();
   
View Full Code Here

Examples of com.opensymphony.xwork2.config.ConfigurationManager

        smtpPort = smtpPort + (int) (Math.random() * 100);

        LocalizedTextUtil.addDefaultResourceBundle(Constants.BUNDLE_KEY);

        // Initialize ActionContext
        ConfigurationManager configurationManager = new ConfigurationManager();
        configurationManager.addContainerProvider(new XWorkConfigurationProvider());
        Configuration config = configurationManager.getConfiguration();
        Container container = config.getContainer();

        ValueStack stack = container.getInstance(ValueStackFactory.class).createValueStack();
        stack.getContext().put(ActionContext.CONTAINER, container);
        ActionContext.setContext(new ActionContext(stack.getContext()));
View Full Code Here

Examples of edu.cmu.sphinx.util.props.ConfigurationManager

import edu.cmu.sphinx.util.props.ConfigurationManager;

public class HarryPotter {

  public static void main(String[] args) {
    ConfigurationManager cm;

    if (args.length > 0) {
      cm = new ConfigurationManager(args[0]);
    } else {
      cm = new ConfigurationManager(HarryPotter.class.getResource("harry.config.xml"));
    }

    final Recognizer recognizer = (Recognizer) cm.lookup("recognizer");
    recognizer.allocate();

    // start the microphone or exit if the programm if this is not possible
    Microphone microphone = (Microphone) cm.lookup("microphone");
    if (!microphone.startRecording()) {
      System.out.println("Cannot start microphone.");
      recognizer.deallocate();
      System.exit(1);
    }
View Full Code Here

Examples of edu.indiana.extreme.www.xgws.msgbox.util.ConfigurationManager

      AxisService axisservice) {

    overrideAddressingPhaseHander(configurationcontext);

    // Load the configuration file from the classpath
    ConfigurationManager confmanager = new ConfigurationManager(
        "msgBox.properties");
    configurationcontext.setProperty(MsgBoxCommonConstants.CONF_MANAGER,
        confmanager);
    initDatabase(configurationcontext, confmanager);
    configurationcontext.setProperty(
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.