本文整理汇总了Java中edu.uw.zookeeper.common.ServiceApplication类的典型用法代码示例。如果您正苦于以下问题:Java ServiceApplication类的具体用法?Java ServiceApplication怎么用?Java ServiceApplication使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ServiceApplication类属于edu.uw.zookeeper.common包,在下文中一共展示了ServiceApplication类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doBuild
import edu.uw.zookeeper.common.ServiceApplication; //导入依赖的package包/类
@Override
protected Main doBuild() {
getRuntimeModule().getConfiguration().getArguments().setDescription(getDescription());
ServiceMonitor monitor = getRuntimeModule().getServiceMonitor();
for (Service service: delegate.build()) {
monitor.add(service);
}
return new Main(ServiceApplication.forService(monitor));
}
示例2: doBuild
import edu.uw.zookeeper.common.ServiceApplication; //导入依赖的package包/类
@Override
protected GetSetClient doBuild() {
ServiceMonitor monitor = getRuntimeModule().getServiceMonitor();
for (Service service: delegate.build()) {
monitor.add(service);
}
return new GetSetClient(ServiceApplication.forService(monitor));
}
示例3: doBuild
import edu.uw.zookeeper.common.ServiceApplication; //导入依赖的package包/类
@Override
protected ThroughputClients doBuild() {
ServiceMonitor monitor = getRuntimeModule().getServiceMonitor();
for (Service service: delegate.build()) {
monitor.add(service);
}
return new ThroughputClients(ServiceApplication.forService(monitor));
}
示例4: doBuild
import edu.uw.zookeeper.common.ServiceApplication; //导入依赖的package包/类
@Override
protected TraceIteratingClient doBuild() {
ServiceMonitor monitor = getRuntimeModule().getServiceMonitor();
for (Service service: delegate.build()) {
monitor.add(service);
}
return new TraceIteratingClient(ServiceApplication.forService(monitor));
}
示例5: doBuild
import edu.uw.zookeeper.common.ServiceApplication; //导入依赖的package包/类
@Override
protected MeasuringClient doBuild() {
ServiceMonitor monitor = getRuntimeModule().getServiceMonitor();
for (Service service: delegate.build()) {
monitor.add(service);
}
return new MeasuringClient(ServiceApplication.forService(monitor));
}
示例6: doBuild
import edu.uw.zookeeper.common.ServiceApplication; //导入依赖的package包/类
@Override
protected TraceGeneratingCacheClient doBuild() {
ServiceMonitor monitor = getRuntimeModule().getServiceMonitor();
for (Service service: delegate.build()) {
monitor.add(service);
}
return new TraceGeneratingCacheClient(ServiceApplication.forService(monitor));
}
示例7: doBuild
import edu.uw.zookeeper.common.ServiceApplication; //导入依赖的package包/类
@Override
protected Main doBuild() {
getRuntimeModule().getConfiguration().getArguments().setDescription(DESCRIPTION);
ServiceMonitor monitor = getRuntimeModule().getServiceMonitor();
for (Service service: delegate.build()) {
monitor.add(service);
}
return new Main(ServiceApplication.forService(monitor));
}
示例8: newMain
import edu.uw.zookeeper.common.ServiceApplication; //导入依赖的package包/类
protected Main newMain(Shell shell) {
return new Main(ServiceApplication.forService(getRuntimeModule().getServiceMonitor()));
}