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


Java DroidClientConfig类代码示例

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


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

示例1: getClient

import com.searchly.jestdroid.DroidClientConfig; //导入依赖的package包/类
/**
 * Gets the jest client for the profiles storage using the application.
 * 
 * @return this.mClient The client(user) of the application.
 */
public JestClient getClient() {
	JestClient client;
	DroidClientConfig clientConfig = new DroidClientConfig.Builder(
			SEARCHLY_CLUSTER).build();

	JestClientFactory jestClientFactory = new JestClientFactory();
	jestClientFactory.setDroidClientConfig(clientConfig);
	client = jestClientFactory.getObject();
	return client;
}
 
开发者ID:CMPUT301W14T05,项目名称:Team5GeoTopics,代码行数:16,代码来源:GeoTopicsApplication.java

示例2: getProfileClient

import com.searchly.jestdroid.DroidClientConfig; //导入依赖的package包/类
/**
 * Gets the jest client using the application.
 * 
 * @return this.mClient The client(user) of the application.
 */
public JestClient getProfileClient() {
	JestClient client;
	DroidClientConfig clientConfig = new DroidClientConfig.Builder(
			SEARCHLY_PROFILES).build();

	JestClientFactory jestClientFactory = new JestClientFactory();
	jestClientFactory.setDroidClientConfig(clientConfig);
	client = jestClientFactory.getObject();
	return client;
}
 
开发者ID:CMPUT301W14T05,项目名称:Team5GeoTopics,代码行数:16,代码来源:GeoTopicsApplication.java

示例3: ElasticSearchHandler

import com.searchly.jestdroid.DroidClientConfig; //导入依赖的package包/类
/**
 * And constructor with optional parameters to connect to a different server,
 * index, or type. Used for testing so questions aren't pushed to
 * the main index when tests are run.
 * @param URL The URL of the server to connect to
 * @param Index The index within the server to reference
 * @param Type The type i the index to save to
 */
public ElasticSearchHandler(String URL,String Index,String Type){
	this.URL = URL;
	INDEX=Index;
	TYPE=Type;
	this.queryAll="{\"query\":{\"match_all\":{}}}";
	this.gson=new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").create();
	JestClientFactory f=new JestClientFactory();
	f.setDroidClientConfig(new DroidClientConfig.Builder(URL).discoveryEnabled(true)
			.discoveryFrequency(120, TimeUnit.SECONDS).connTimeout(10000).multiThreaded(true).build());
	client=f.getObject();
}
 
开发者ID:CMPUT301F14T09,项目名称:Team09Project,代码行数:20,代码来源:ElasticSearchHandler.java

示例4: ElasticSearchHelper

import com.searchly.jestdroid.DroidClientConfig; //导入依赖的package包/类
public ElasticSearchHelper(){
    JestClientFactory factory = new JestClientFactory();
    factory.setDroidClientConfig(new DroidClientConfig.Builder(Constants.CONNECTION_URL).build());
    
    conn = factory.getObject();
}
 
开发者ID:TravelTracker,项目名称:TravelTracker,代码行数:7,代码来源:ElasticSearchHelper.java


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