当前位置: 首页>>代码示例>>Java>>正文


Java FtCli类代码示例

本文整理汇总了Java中org.takes.http.FtCli的典型用法代码示例。如果您正苦于以下问题:Java FtCli类的具体用法?Java FtCli怎么用?Java FtCli使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FtCli类属于org.takes.http包,在下文中一共展示了FtCli类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: main

import org.takes.http.FtCli; //导入依赖的package包/类
/**
 * Main entry point.
 * @param args Arguments
 * @throws IOException If fails
 */
public static void main(final String... args) throws IOException {
    Sentry.init(Manifests.read("ThreeCopies-SentryDsn"));
    final Base base = new DyBase(new Dynamo());
    new Routine(
        base,
        new Shell.Safe(
            new Ssh(
                "d1.threecopies.com",
                Ssh.PORT,
                "threecopies",
                new TextOf(
                    new ResourceOf("com/threecopies/routine/ssh.key")
                ).asString()
            )
        ),
        new Region.Simple(
            Manifests.read("ThreeCopies-S3Key"),
            Manifests.read("ThreeCopies-S3Secret")
        ).bucket("logs.threecopies.com")
    ).start();
    new FtCli(new TkApp(base), args).start(Exit.NEVER);
}
 
开发者ID:yegor256,项目名称:threecopies,代码行数:28,代码来源:Entrance.java

示例2: main

import org.takes.http.FtCli; //导入依赖的package包/类
/**
 * Main entry point.
 * @param args Arguments
 * @throws IOException If fails
 */
public static void main(final String... args) throws IOException {
    Sentry.init(Manifests.read("Rehttp-SentryDsn"));
    final Base base = new DyBase(new Dynamo());
    Executors.newSingleThreadScheduledExecutor().scheduleWithFixedDelay(
        new RunnableOf<>(new VerboseCallable<Void>(new Retry(base), true)),
        1L, 1L, TimeUnit.MINUTES
    );
    new FtCli(new TkApp(base), args).start(Exit.NEVER);
}
 
开发者ID:yegor256,项目名称:rehttp,代码行数:15,代码来源:Entrance.java

示例3: main

import org.takes.http.FtCli; //导入依赖的package包/类
/**
 * Main Java entry point.
 * @param args Command line args
 * @throws IOException If fails
 */
public static void main(final String... args) throws IOException {
    Sentry.init(
        new PropertiesOf(
            new ResourceOf(
                "org/jpeek/jpeek.properties"
            )
        ).value().getProperty("org.jpeek.sentry")
    );
    new FtCli(
        new TkApp(Files.createTempDirectory("jpeek")),
        args
    ).start(Exit.NEVER);
}
 
开发者ID:yegor256,项目名称:jpeek,代码行数:19,代码来源:TkApp.java

示例4: main

import org.takes.http.FtCli; //导入依赖的package包/类
/**
 * Main entry point.
 * @param args Arguments
 * @throws IOException If fails
 */
public static void main(final String... args) throws IOException {
    Sentry.init(Manifests.read("Jare-SentryDsn"));
    final Base base = new CdBase(new DyBase());
    new Logs(
        base,
        new Region.Simple(
            Manifests.read("Jare-S3Key"),
            Manifests.read("Jare-S3Secret")
        ).bucket("logs.jare.io")
    );
    new FtCli(new TkApp(base), args).start(Exit.NEVER);
}
 
开发者ID:yegor256,项目名称:jare,代码行数:18,代码来源:Entrance.java

示例5: main

import org.takes.http.FtCli; //导入依赖的package包/类
/**
 * Main entry point.
 * @param args Arguments
 * @throws IOException If fails
 */
public static void main(final String... args) throws IOException {
    final Base base = new DyBase();
    try (final Routine routine = new Routine(base)) {
        routine.start();
        new FtCli(new TkApp(base), args).start(Exit.NEVER);
    }
}
 
开发者ID:yegor256,项目名称:wring,代码行数:13,代码来源:Entrance.java

示例6: main

import org.takes.http.FtCli; //导入依赖的package包/类
/**
 * Entry point.
 * @param args Arguments
 * @throws IOException If fails
 */
public static void main(final String... args) throws IOException {
    new FtCli(
        new App(new File(System.getProperty("user.dir"))),
        args
    ).start(Exit.NEVER);
}
 
开发者ID:yegor256,项目名称:takes,代码行数:12,代码来源:App.java

示例7: main

import org.takes.http.FtCli; //导入依赖的package包/类
public static void main(String[] args) throws Exception {

        Base base = new H2Base();
        new FtCli(new TkApp(base), args).start(Exit.NEVER);
    }
 
开发者ID:yaroska,项目名称:true_oop,代码行数:6,代码来源:Entry.java


注:本文中的org.takes.http.FtCli类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。