Package com.abiquo.hypervisor.plugin.enumerator

Examples of com.abiquo.hypervisor.plugin.enumerator.FieldConstraint


    }

    private Map<ConstraintKey, String> loadConnectionConstraints(
        final HostConnectionMetadata metadata)
    {
        FieldConstraint ip = FieldConstraint.NO_APPLICABLE;
        FieldConstraint port = FieldConstraint.NO_APPLICABLE;
        FieldConstraint credentials = FieldConstraint.NO_APPLICABLE;

        if (metadata != null)
        {
            ip = metadata.ip();
            port = metadata.port();
            credentials = metadata.credentials();
        }

        return ImmutableMap.<ConstraintKey, String> builder().put(ConstraintKey.HOST_IP, ip.name())
            .put(ConstraintKey.HOST_PORT, port.name())
            .put(ConstraintKey.HOST_CREDENTIALS, credentials.name()).build();
    }
View Full Code Here


    }

    private Map<ConstraintKey, String> loadConnectionConstraints(
        final ManagerConnectionMetadata metadata)
    {
        FieldConstraint ip = FieldConstraint.NO_APPLICABLE;
        FieldConstraint port = FieldConstraint.NO_APPLICABLE;
        FieldConstraint credentials = FieldConstraint.NO_APPLICABLE;

        if (metadata != null)
        {
            ip = metadata.ip();
            port = metadata.port();
            credentials = metadata.credentials();
        }

        return ImmutableMap.<ConstraintKey, String> builder()
            .put(ConstraintKey.MANAGER_IP, ip.name()).put(ConstraintKey.MANAGER_PORT, port.name())
            .put(ConstraintKey.MANAGER_CREDENTIALS, credentials.name()).build();
    }
View Full Code Here

    }

    private Map<ConstraintKey, String> loadConnectionConstraints(
        final AgentConnectionMetadata metadata)
    {
        FieldConstraint ip = FieldConstraint.NO_APPLICABLE;
        FieldConstraint port = FieldConstraint.NO_APPLICABLE;
        FieldConstraint credentials = FieldConstraint.NO_APPLICABLE;

        if (metadata != null)
        {
            ip = metadata.ip();
            port = metadata.port();
            credentials = metadata.credentials();
        }

        return ImmutableMap.<ConstraintKey, String> builder()
            .put(ConstraintKey.AGENT_IP, ip.name()).put(ConstraintKey.AGENT_PORT, port.name())
            .put(ConstraintKey.AGENT_CREDENTIALS, credentials.name()).build();
    }
View Full Code Here

    }

    private Map<ConstraintKey, String> loadConnectionConstraints(
        final HostConnectionMetadata metadata)
    {
        FieldConstraint ip = FieldConstraint.NO_APPLICABLE;
        FieldConstraint port = FieldConstraint.NO_APPLICABLE;
        FieldConstraint credentials = FieldConstraint.NO_APPLICABLE;

        if (metadata != null)
        {
            ip = metadata.ip();
            port = metadata.port();
            credentials = metadata.credentials();
        }

        return ImmutableMap.<ConstraintKey, String> builder().put(ConstraintKey.HOST_IP, ip.name())
            .put(ConstraintKey.HOST_PORT, port.name())
            .put(ConstraintKey.HOST_CREDENTIALS, credentials.name()).build();
    }
View Full Code Here

    }

    private Map<ConstraintKey, String> loadConnectionConstraints(
        final ManagerConnectionMetadata metadata)
    {
        FieldConstraint ip = FieldConstraint.NO_APPLICABLE;
        FieldConstraint port = FieldConstraint.NO_APPLICABLE;
        FieldConstraint credentials = FieldConstraint.NO_APPLICABLE;

        if (metadata != null)
        {
            ip = metadata.ip();
            port = metadata.port();
            credentials = metadata.credentials();
        }

        return ImmutableMap.<ConstraintKey, String> builder()
            .put(ConstraintKey.MANAGER_IP, ip.name()).put(ConstraintKey.MANAGER_PORT, port.name())
            .put(ConstraintKey.MANAGER_CREDENTIALS, credentials.name()).build();
    }
View Full Code Here

    }

    private Map<ConstraintKey, String> loadConnectionConstraints(
        final AgentConnectionMetadata metadata)
    {
        FieldConstraint ip = FieldConstraint.NO_APPLICABLE;
        FieldConstraint port = FieldConstraint.NO_APPLICABLE;
        FieldConstraint credentials = FieldConstraint.NO_APPLICABLE;

        if (metadata != null)
        {
            ip = metadata.ip();
            port = metadata.port();
            credentials = metadata.credentials();
        }

        return ImmutableMap.<ConstraintKey, String> builder()
            .put(ConstraintKey.AGENT_IP, ip.name()).put(ConstraintKey.AGENT_PORT, port.name())
            .put(ConstraintKey.AGENT_CREDENTIALS, credentials.name()).build();
    }
View Full Code Here

    }

    private Map<ConstraintKey, String> loadConnectionConstraints(
        final CloudProviderConnectionMetadata metadata)
    {
        FieldConstraint endpoint = FieldConstraint.NO_APPLICABLE;
        FieldConstraint credentials = FieldConstraint.NO_APPLICABLE;

        if (metadata != null)
        {
            endpoint = metadata.endpoint();
            credentials = metadata.credentials();
        }

        return ImmutableMap.<ConstraintKey, String> builder()
            .put(ConstraintKey.ENDPOINT, endpoint.name())
            .put(ConstraintKey.PROVIDER_CREDENTIALS, credentials.name()).build();
    }
View Full Code Here

    }

    private Map<ConstraintKey, String> loadConnectionConstraints(
        final HostConnectionMetadata metadata)
    {
        FieldConstraint ip = FieldConstraint.NO_APPLICABLE;
        FieldConstraint port = FieldConstraint.NO_APPLICABLE;
        FieldConstraint credentials = FieldConstraint.NO_APPLICABLE;

        if (metadata != null)
        {
            ip = metadata.ip();
            port = metadata.port();
            credentials = metadata.credentials();
        }

        return ImmutableMap.<ConstraintKey, String> builder().put(ConstraintKey.HOST_IP, ip.name())
            .put(ConstraintKey.HOST_PORT, port.name())
            .put(ConstraintKey.HOST_CREDENTIALS, credentials.name()).build();
    }
View Full Code Here

    }

    private Map<ConstraintKey, String> loadConnectionConstraints(
        final ManagerConnectionMetadata metadata)
    {
        FieldConstraint ip = FieldConstraint.NO_APPLICABLE;
        FieldConstraint port = FieldConstraint.NO_APPLICABLE;
        FieldConstraint credentials = FieldConstraint.NO_APPLICABLE;

        if (metadata != null)
        {
            ip = metadata.ip();
            port = metadata.port();
            credentials = metadata.credentials();
        }

        return ImmutableMap.<ConstraintKey, String> builder()
            .put(ConstraintKey.MANAGER_IP, ip.name()).put(ConstraintKey.MANAGER_PORT, port.name())
            .put(ConstraintKey.MANAGER_CREDENTIALS, credentials.name()).build();
    }
View Full Code Here

    }

    private Map<ConstraintKey, String> loadConnectionConstraints(
        final AgentConnectionMetadata metadata)
    {
        FieldConstraint ip = FieldConstraint.NO_APPLICABLE;
        FieldConstraint port = FieldConstraint.NO_APPLICABLE;
        FieldConstraint credentials = FieldConstraint.NO_APPLICABLE;

        if (metadata != null)
        {
            ip = metadata.ip();
            port = metadata.port();
            credentials = metadata.credentials();
        }

        return ImmutableMap.<ConstraintKey, String> builder()
            .put(ConstraintKey.AGENT_IP, ip.name()).put(ConstraintKey.AGENT_PORT, port.name())
            .put(ConstraintKey.AGENT_CREDENTIALS, credentials.name()).build();
    }
View Full Code Here

TOP

Related Classes of com.abiquo.hypervisor.plugin.enumerator.FieldConstraint

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.