Package com.asakusafw.yaess.core

Examples of com.asakusafw.yaess.core.VariableResolver


                        "1.url", "http://www.example.com/jobqueue/1",
                        "2.url", "http://www.example.com/jobqueue/2",
                        "2.user", "u2",
                        "2.password", "p2",
                }),
                new ProfileContext(getClass().getClassLoader(), new VariableResolver(map(new String[] {
                }))));
        JobClientProfile profile = JobClientProfile.convert(original);
        assertThat(profile.getPrefix(), is("testing"));
        assertThat(profile.getTimeout(), is(JobClientProfile.DEFAULT_TIMEOUT + 1));
        assertThat(profile.getPollingInterval(), is(JobClientProfile.DEFAULT_POLLING_INTERVAL + 2));
View Full Code Here


                        JobClientProfile.KEY_POLLING_INTERVAL, "${pollingInterval}",
                        "1.url", "${url}",
                        "1.user", "${user}",
                        "1.password", "${password}",
                }),
                new ProfileContext(getClass().getClassLoader(), new VariableResolver(map(new String[] {
                        "timeout", "1234",
                        "pollingInterval", "567",
                        "url", "http://www.example.com/jq",
                        "user", "u",
                        "password", "p",
View Full Code Here

                QueueHadoopScriptHandler.class,
                map(new String[] {
                        JobClientProfile.KEY_TIMEOUT, "?",
                        "1.url", "http://www.example.com/jobqueue/",
                }),
                new ProfileContext(getClass().getClassLoader(), new VariableResolver(map(new String[] {
                }))));
        JobClientProfile.convert(original);
    }
View Full Code Here

                QueueHadoopScriptHandler.class,
                map(new String[] {
                        JobClientProfile.KEY_TIMEOUT, "-1",
                        "1.url", "http://www.example.com/jobqueue/",
                }),
                new ProfileContext(getClass().getClassLoader(), new VariableResolver(map(new String[] {
                }))));
        JobClientProfile.convert(original);
    }
View Full Code Here

                QueueHadoopScriptHandler.class,
                map(new String[] {
                        JobClientProfile.KEY_POLLING_INTERVAL, "?",
                        "1.url", "http://www.example.com/jobqueue/",
                }),
                new ProfileContext(getClass().getClassLoader(), new VariableResolver(map(new String[] {
                }))));
        JobClientProfile.convert(original);
    }
View Full Code Here

                QueueHadoopScriptHandler.class,
                map(new String[] {
                        JobClientProfile.KEY_POLLING_INTERVAL, "-1",
                        "1.url", "http://www.example.com/jobqueue/",
                }),
                new ProfileContext(getClass().getClassLoader(), new VariableResolver(map(new String[] {
                }))));
        JobClientProfile.convert(original);
    }
View Full Code Here

        ServiceProfile<?> original = new ServiceProfile<HadoopScriptHandler>(
                "testing",
                QueueHadoopScriptHandler.class,
                map(new String[] {
                }),
                new ProfileContext(getClass().getClassLoader(), new VariableResolver(map(new String[] {
                }))));
        JobClientProfile.convert(original);
    }
View Full Code Here

                "testing",
                QueueHadoopScriptHandler.class,
                map(new String[] {
                        "1.user", "u",
                }),
                new ProfileContext(getClass().getClassLoader(), new VariableResolver(map(new String[] {
                }))));
        JobClientProfile.convert(original);
    }
View Full Code Here

                "testing",
                QueueHadoopScriptHandler.class,
                map(new String[] {
                        "?.url", "http://www.example.com/jobqueue/",
                }),
                new ProfileContext(getClass().getClassLoader(), new VariableResolver(map(new String[] {
                }))));
        JobClientProfile.convert(original);
    }
View Full Code Here

                "testing",
                QueueHadoopScriptHandler.class,
                map(new String[] {
                        "1.url", "${__UNDEF__}",
                }),
                new ProfileContext(getClass().getClassLoader(), new VariableResolver(map(new String[] {
                }))));
        JobClientProfile.convert(original);
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.yaess.core.VariableResolver

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.