本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}