Package wpn.hdri.ss.configuration

Examples of wpn.hdri.ss.configuration.StatusServerConfiguration


        Util.set_serial_model(TangoConst.NO_SYNC);
        setSystemProperties(properties.jacorbMinCpus, properties.jacorbMaxCpus);
        LOG.info("Done.");

        LOG.info("Parsing configuration...");
        StatusServerConfiguration configuration = StatusServerConfiguration.fromXml(cliOptions.pathToConfiguration);
        LOG.info("Done.");

        if (cliOptions.verbose) {
            LOG.info("Setting verbose level to DEBUG...");
            Logger.getRootLogger().setLevel(Level.DEBUG);
            LOG.info("Done.");
        }

        LOG.info("Initialize and start Tango server instance...");
        StatusServer.setXmlConfigPath(cliOptions.pathToConfiguration);
        ServerManager.getInstance().start(new String[]{configuration.getInstanceName()}, StatusServer.class);
        LOG.info("Done.");
    }
View Full Code Here


    @Override
    @Init
    @StateMachine(endState = DeviceState.ON)
    public void init() throws Exception {
        Preconditions.checkNotNull(XML_CONFIG_PATH, "Path to xml configuration is not set.");
        StatusServerConfiguration configuration = StatusServerConfiguration.fromXml(XML_CONFIG_PATH);

        StatusServerProperties properties = PropertiesParser.createInstance(StatusServerProperties.class).parseProperties();

        EngineInitializer initializer = new EngineInitializer(configuration, properties);

        initializeDynamicAttributes(configuration.getStatusServerAttributes(), dynamicManagement);

        EngineInitializationContext ctx = initializer.initialize();

        this.engine = new Engine(ctx);
        setStatus(Status.IDLE);
View Full Code Here

    public static final int _1M = 1000000;

    private Engine engine;

    public void bootstrap() {
        StatusServerConfiguration configuration = new ConfigurationBuilder().addDevice("fake").addAttributeToDevice("fake", "double", "poll", "last", 1, 0).build();

        ClientsManager clientsManager = new ClientsManager(new ClientFactory() {
            @Override
            public Client createClient(String deviceName) {
                Client client = mock(Client.class);
View Full Code Here

TOP

Related Classes of wpn.hdri.ss.configuration.StatusServerConfiguration

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.