Package com.proofpoint.discovery.client.ServiceDescriptor

Examples of com.proofpoint.discovery.client.ServiceDescriptor.ServiceDescriptorBuilder


                "pool",
                "location",
                ServiceState.RUNNING,
                ImmutableMap.of("a", "apple", "b", "banana"));

        ServiceDescriptorBuilder builder = serviceDescriptor(expected.getType())
                .setId(expected.getId())
                .setLocation(expected.getLocation())
                .setNodeId(expected.getNodeId())
                .setPool(expected.getPool())
                .setState(expected.getState());

        for (Map.Entry<String, String> entry : expected.getProperties().entrySet()) {
            builder.addProperty(entry.getKey(), entry.getValue());
        }

        assertDescriptorEquals(expected, builder.build());
    }
View Full Code Here

TOP

Related Classes of com.proofpoint.discovery.client.ServiceDescriptor.ServiceDescriptorBuilder

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.