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


Java PropertiesClientConfig类代码示例

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


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


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