Package eu.mosaic_cloud.components.core

Examples of eu.mosaic_cloud.components.core.ComponentResourceDescriptor


        Preconditions.checkArgument (descriptorValue instanceof Map, "missmatched descriptors attribute `%s`", descriptorsValue);
        final String identifier = (String) descriptorIdentifierValue;
        final Map<?, ?> descriptorMap = (Map<?, ?>) descriptorValue;
        final Object typeValue = descriptorMap.get (Token.Type.string);
        Preconditions.checkArgument (typeValue instanceof String, "mismatched correlation attribute `%s`", correlation);
        final ComponentResourceDescriptor descriptor;
        if (Token.SocketIpv4Tcp.string.equals (typeValue)) {
          final String ip = (String) descriptorMap.get (Token.Ip.string);
          final int port = ((Number) descriptorMap.get (Token.Port.string)).intValue ();
          final String fqdn = (String) descriptorMap.get (Token.Fqdn.string);
          descriptor = ComponentTcpSocketResourceDescriptor.create (identifier, ip, port, fqdn);
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.components.core.ComponentResourceDescriptor

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.