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


Java ServiceApplication类代码示例

本文整理汇总了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));
}
 
开发者ID:lisaglendenning,项目名称:zookeeper-lite,代码行数:10,代码来源:Main.java

示例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));
}
 
开发者ID:lisaglendenning,项目名称:zookeeper-clients,代码行数:9,代码来源:GetSetClient.java

示例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));
}
 
开发者ID:lisaglendenning,项目名称:zookeeper-clients,代码行数:9,代码来源:ThroughputClients.java

示例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));
}
 
开发者ID:lisaglendenning,项目名称:zookeeper-clients,代码行数:9,代码来源:TraceIteratingClient.java

示例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));
}
 
开发者ID:lisaglendenning,项目名称:zookeeper-clients,代码行数:9,代码来源:MeasuringClient.java

示例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));
}
 
开发者ID:lisaglendenning,项目名称:zookeeper-clients,代码行数:9,代码来源:TraceGeneratingCacheClient.java

示例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));
}
 
开发者ID:lisaglendenning,项目名称:zookeeper-proxy,代码行数:10,代码来源:Main.java

示例8: newMain

import edu.uw.zookeeper.common.ServiceApplication; //导入依赖的package包/类
protected Main newMain(Shell shell) {
    return new Main(ServiceApplication.forService(getRuntimeModule().getServiceMonitor()));
}
 
开发者ID:lisaglendenning,项目名称:zookeeper-lite,代码行数:4,代码来源:Main.java


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