Package org.rhq.enterprise.server.cloud

Examples of org.rhq.enterprise.server.cloud.TopologyManagerLocal


        subjectMgr = LookupUtil.getSubjectManager();
        pluginMgr = LookupUtil.getPluginManager();
        agentMgr = LookupUtil.getAgentManager();

        TopologyManagerLocal topMgr = LookupUtil.getTopologyManager();
        Server svr = topMgr.findServersByCriteria(subjectMgr.getOverlord(), new ServerCriteria()).get(0);

        agent = new Agent();
        agent.setAddress("kachny");
        agent.setAgentToken("1234");
        agent.setName("kachny");
View Full Code Here


                log.debug("Invoked syncServerEndpoint with [name: " + serverName + ", address: " + serverAddr + "]");
            }

            ControlResults results = new ControlResults();

            TopologyManagerLocal cloudMgr = LookupUtil.getTopologyManager();
            Server server = cloudMgr.getServerByName(serverName);

            if (server == null) {
                log.warn("Failed to locate server. No address sync will be performed.");
                results.setError("No update performed. Failed to find server " + server.getName());
                return results;
            }

            if (serverAddr != null) {
                SubjectManagerLocal subjectMgr = LookupUtil.getSubjectManager();

                server.setAddress(serverAddr);
                cloudMgr.updateServer(subjectMgr.getOverlord(), server);
            }

            int updateCount = notifyAgents(server);

            Configuration complexResults = results.getComplexResults();
View Full Code Here

    }

    public void syncServerEndpoints(ScheduledJobInvocationContext context) {
        log.debug("Preparing to sync server endpoints.");

        TopologyManagerLocal cloudMgr = LookupUtil.getTopologyManager();
        List<Server> servers = cloudMgr.getAllServers();

        purgeStaleServers(context, servers);

        for (Server server : servers) {
            if (!context.containsKey("server:" + server.getName())) {
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.cloud.TopologyManagerLocal

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.