Examples of UptimeMessage


Examples of com.sequenceiq.cloudbreak.websocket.message.UptimeMessage

        for (Cluster cluster : clusters) {
            Stack stack = stackRepository.findStackForCluster(cluster.getId());
            if (stack != null) {
                Long uptime = cluster.getCreationFinished() == null ? 0L : now - cluster.getCreationFinished();
                if (uptimes.containsKey(stack.getOwner())) {
                    uptimes.get(stack.getOwner()).add(new UptimeMessage(stack.getId(), uptime));
                } else {
                    uptimes.put(stack.getOwner(), new ArrayList<UptimeMessage>());
                    uptimes.get(stack.getOwner()).add(new UptimeMessage(stack.getId(), uptime));
                }
            }
        }
        if (!uptimes.isEmpty()) {
            for (Map.Entry<String, List<UptimeMessage>> longListEntry : uptimes.entrySet()) {
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.