• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PropertiesClientConfig类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: MTurkSystem

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/**
 * Instantiating an MTurkSystem should be enough to handle your human worker issues. It handles the rest, as in
 * booting up the jetty server, the API server, and a payments thread to go through and make payments to workers.
 */
public MTurkSystem() {
    humanSourceServer = new HumanSourceServer();
    new Thread(humanSourceServer).start();

    jettyServer = new JettyServer();
    new Thread(jettyServer).start();

    paymentsThread = new PaymentsThread(((jobRecord, amountOwed) -> payWorker(jobRecord.workerID, jobRecord.assignmentID, amountOwed)));
    new Thread(paymentsThread).start();

    try {
        mturkService = new RequesterService(new PropertiesClientConfig("/home/keenon/.aws/mturk.properties"));
    }
    catch (Exception e) {

    }

    mTurkServer = new MTurkServer(this::hireWorkers, this::numWorkersPaidFor);
    new Thread(mTurkServer).start();
}
 
开发者ID:keenon,项目名称:lense,代码行数:25,代码来源:MTurkSystem.java


示例2: AbstractCrowdTask

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public AbstractCrowdTask(FileObject resultsFO, FileObject mTurkPropertiesFO,
        FileObject questionFO, FileObject propertiesFO, FileObject inputFO,
        List<CrowdTask> crowdTasks, GortEntityManager gem, EntityManager em) {
    this.resultsFO = resultsFO;
    this.mTurkPropertiesFO = mTurkPropertiesFO;
    this.questionFO = questionFO;
    this.taskPropertiesFO = propertiesFO;
    this.inputFO = inputFO;
    this.gem = gem;
    this.em = em;
    this.crowdTasks = crowdTasks;
    
    //instead of the aws requester serivce use the Gort reviewer service
    //that allows the use of assignment and hit review policies
    //service = new RequesterService(new PropertiesClientConfig(mTurkPropertiesFO.getPath()));
    service = new GortRequesterService(new PropertiesClientConfig(mTurkPropertiesFO.getPath()));
}
 
开发者ID:samini,项目名称:gort-public,代码行数:18,代码来源:AbstractCrowdTask.java


示例3: BestImage

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/**
 * Constructor
 *
 */
public BestImage(String mTurkProperties) {
    
  //service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
    Path currentRelativePath = Paths.get("");
    String s = currentRelativePath.toAbsolutePath().toString();
    System.out.println("Current relative path is: " + s);
    System.out.println(mTurkProperties);
    service = new RequesterService(new PropertiesClientConfig(mTurkProperties));
}
 
开发者ID:samini,项目名称:gort-public,代码行数:14,代码来源:BestImage.java


示例4: RequesterServiceRaw

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
@Deprecated
protected RequesterServiceRaw() {
  this(new PropertiesClientConfig());
}
 
开发者ID:dbarowy,项目名称:java-aws-mturk,代码行数:5,代码来源:RequesterServiceRaw.java


示例5: MyHIT

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public MyHIT() {
    service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
 
开发者ID:dbarowy,项目名称:java-aws-mturk,代码行数:4,代码来源:MyHIT.java


示例6: SiteCategory

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public SiteCategory() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
 
开发者ID:dbarowy,项目名称:java-aws-mturk,代码行数:4,代码来源:SiteCategory.java


示例7: FullSurvey

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public FullSurvey() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
 
开发者ID:depstein,项目名称:mturk-screening-presurvey,代码行数:4,代码来源:FullSurvey.java


示例8: ScreenerQuestion

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public ScreenerQuestion() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
 
开发者ID:depstein,项目名称:mturk-screening-presurvey,代码行数:4,代码来源:ScreenerQuestion.java


示例9: Responses

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public Responses() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
 
开发者ID:depstein,项目名称:mturk-screening-presurvey,代码行数:4,代码来源:Responses.java


示例10: QualifyScreenerRespondents

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public QualifyScreenerRespondents() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
 
开发者ID:depstein,项目名称:mturk-screening-presurvey,代码行数:4,代码来源:QualifyScreenerRespondents.java


示例11: MturkResponseManager

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public MturkResponseManager(MturkLibrary lib)
{
    this.config = new PropertiesClientConfig(lib.CONFIG);
    this.config.setServiceURL(lib.MTURK_URL);
    this.service = new RequesterService(config);
}
 
开发者ID:SurveyMan,项目名称:Runner,代码行数:7,代码来源:MturkResponseManager.java


示例12: Reviewer

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/**
 * Constructor
 *
 */
public Reviewer() {
  service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
  filenames = Utils.getAuthors40();
}
 
开发者ID:ekinoguz,项目名称:hiding,代码行数:9,代码来源:Reviewer.java


示例13: ReadabilityPusher

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/** Constructor. */
public ReadabilityPusher() {
  service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
}
 
开发者ID:ekinoguz,项目名称:hiding,代码行数:5,代码来源:ReadabilityPusher.java


示例14: TranslationFixReadabilityPusher

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/** Constructor. */
public TranslationFixReadabilityPusher() {
  service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
}
 
开发者ID:ekinoguz,项目名称:hiding,代码行数:5,代码来源:TranslationFixReadabilityPusher.java


示例15: TranslationFixPusher

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/** Constructor. */
public TranslationFixPusher() {
  service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
  hittypes = new String[5];
}
 
开发者ID:ekinoguz,项目名称:hiding,代码行数:6,代码来源:TranslationFixPusher.java


示例16: MovieSurvey

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/**
* Constructor
*/
public MovieSurvey()
{
      service = new RequesterService(new PropertiesClientConfig());
}
 
开发者ID:samini,项目名称:gort-public,代码行数:8,代码来源:MovieSurvey.java


示例17: MTurkHelloWorld

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/**
 * Constructor
 * 
 */
public MTurkHelloWorld() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
 
开发者ID:dbarowy,项目名称:java-aws-mturk,代码行数:8,代码来源:MTurkHelloWorld.java


示例18: SimpleSurvey

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/**
 * Constructor
 *
 */
public SimpleSurvey() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
 
开发者ID:dbarowy,项目名称:java-aws-mturk,代码行数:8,代码来源:SimpleSurvey.java


示例19: ReviewPolicyExample

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/**
 * Constructor
 * 
 */
public ReviewPolicyExample() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
 
开发者ID:dbarowy,项目名称:java-aws-mturk,代码行数:8,代码来源:ReviewPolicyExample.java


示例20: BestImage

import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/**
 * Constructor
 *
 */
public BestImage() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
 
开发者ID:dbarowy,项目名称:java-aws-mturk,代码行数:8,代码来源:BestImage.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SnsPostListener类代码示例发布时间:2022-05-22
下一篇:
Java StrategyConfig类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap