本文整理汇总了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();
}
示例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()));
}
示例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));
}
示例4: RequesterServiceRaw
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
@Deprecated
protected RequesterServiceRaw() {
this(new PropertiesClientConfig());
}
示例5: MyHIT
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public MyHIT() {
service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
示例6: SiteCategory
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public SiteCategory() {
service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
示例7: FullSurvey
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public FullSurvey() {
service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
示例8: ScreenerQuestion
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public ScreenerQuestion() {
service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
示例9: Responses
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public Responses() {
service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
示例10: QualifyScreenerRespondents
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
public QualifyScreenerRespondents() {
service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
示例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);
}
示例12: Reviewer
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/**
* Constructor
*
*/
public Reviewer() {
service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
filenames = Utils.getAuthors40();
}
示例13: ReadabilityPusher
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/** Constructor. */
public ReadabilityPusher() {
service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
}
示例14: TranslationFixReadabilityPusher
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/** Constructor. */
public TranslationFixReadabilityPusher() {
service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
}
示例15: TranslationFixPusher
import com.amazonaws.mturk.util.PropertiesClientConfig; //导入依赖的package包/类
/** Constructor. */
public TranslationFixPusher() {
service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
hittypes = new String[5];
}