Package com.sun.enterprise.util.cluster

Examples of com.sun.enterprise.util.cluster.RemoteType


    private void validateRemote(ParameterMap map, String nodehost) throws
            CommandValidationException {

        // guaranteed to either get a valid type -- or a CommandValidationException
        RemoteType type = parseType(map);

        if (type == RemoteType.SSH)
            validateSsh(map, nodehost);

        // bn: shouldn't this be something more sophisticated than just the standard string?!?
View Full Code Here


     *
     * @param node  Node to connect to
     * @throws CommandValidationException
     */
    void pingRemoteConnection(Node node) throws CommandValidationException {
        RemoteType type = RemoteType.valueOf(node.getType());
        validateHostName(node.getNodeHost());

        switch (type) {
            case SSH:
                pingSSHConnection(node);
View Full Code Here

    }

    private void validateRemoteConnection(ParameterMap map) throws
            CommandValidationException {
        // guaranteed to either get a valid type -- or a CommandValidationException
        RemoteType type = parseType(map);

        // just too difficult to refactor now...
        if (type == RemoteType.SSH)
            validateSSHConnection(map);
        else if (type == RemoteType.DCOM)
View Full Code Here

            final String remoteNodeDir,
            final String instance,
            final Node node,
            final Logger logger) throws BootstrapException {

        RemoteType type = null;

        try {
            // this also handles the case where node is null
            type = RemoteType.valueOf(node.getType());
        }
        catch (Exception e) {
            throw new IllegalArgumentException(
                    Strings.get("internal.error", "unknown type"));
        }

        switch (type) {
            case SSH:
                return new SSHHelper(
                        habitat,
                        DASInstanceDir,
                        remoteNodeDir,
                        instance,
                        node,
                        logger);
            case DCOM:
                return new DCOMHelper(
                        habitat,
                        DASInstanceDir,
                        remoteNodeDir,
                        instance,
                        node,
                        logger);
            default:
                throw new IllegalArgumentException(
                        Strings.get("internal.error", "A new type must have "
                        + "been added --> unknown type: " + type.toString()));
        }
    }
View Full Code Here

            final String remoteNodeDir,
            final String instance,
            final Node node,
            final Logger logger) throws BootstrapException {

        RemoteType type = null;

        try {
            // this also handles the case where node is null
            type = RemoteType.valueOf(node.getType());
        }
        catch (Exception e) {
            throw new IllegalArgumentException(
                    Strings.get("internal.error", "unknown type"));
        }

        switch (type) {
            case SSH:
                return new SSHHelper(
                        habitat,
                        DASInstanceDir,
                        remoteNodeDir,
                        instance,
                        node,
                        logger);
            case DCOM:
                return new DCOMHelper(
                        habitat,
                        DASInstanceDir,
                        remoteNodeDir,
                        instance,
                        node,
                        logger);
            default:
                throw new IllegalArgumentException(
                        Strings.get("internal.error", "A new type must have "
                        + "been added --> unknown type: " + type.toString()));
        }
    }
View Full Code Here

    private void validateRemote(ParameterMap map, String nodehost) throws
            CommandValidationException {

        // guaranteed to either get a valid type -- or a CommandValidationException
        RemoteType type = parseType(map);

        if (type == RemoteType.SSH)
            validateSsh(map, nodehost);

        // bn: shouldn't this be something more sophisticated than just the standard string?!?
View Full Code Here

     *
     * @param node  Node to connect to
     * @throws CommandValidationException
     */
    void pingRemoteConnection(Node node) throws CommandValidationException {
        RemoteType type = RemoteType.valueOf(node.getType());
        validateHostName(node.getNodeHost());

        switch (type) {
            case SSH:
                pingSSHConnection(node);
View Full Code Here

    }

    private void validateRemoteConnection(ParameterMap map) throws
            CommandValidationException {
        // guaranteed to either get a valid type -- or a CommandValidationException
        RemoteType type = parseType(map);

        // just too difficult to refactor now...
        if (type == RemoteType.SSH)
            validateSSHConnection(map);
        else if (type == RemoteType.DCOM)
View Full Code Here

            final String remoteNodeDir,
            final String instance,
            final Node node,
            final Logger logger) throws BootstrapException {

        RemoteType type = null;

        try {
            // this also handles the case where node is null
            type = RemoteType.valueOf(node.getType());
        }
        catch (Exception e) {
            throw new IllegalArgumentException(
                    Strings.get("internal.error", "unknown type"));
        }

        switch (type) {
            case SSH:
                return new SSHHelper(
                        habitat,
                        DASInstanceDir,
                        remoteNodeDir,
                        instance,
                        node,
                        logger);
            case DCOM:
                return new DCOMHelper(
                        habitat,
                        DASInstanceDir,
                        remoteNodeDir,
                        instance,
                        node,
                        logger);
            default:
                throw new IllegalArgumentException(
                        Strings.get("internal.error", "A new type must have "
                        + "been added --> unknown type: " + type.toString()));
        }
    }
View Full Code Here

    private void validateRemote(ParameterMap map, String nodehost) throws
            CommandValidationException {

        // guaranteed to either get a valid type -- or a CommandValidationException
        RemoteType type = parseType(map);

        if (type == RemoteType.SSH)
            validateSsh(map, nodehost);

        // bn: shouldn't this be something more sophisticated than just the standard string?!?
View Full Code Here

TOP

Related Classes of com.sun.enterprise.util.cluster.RemoteType

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.