本文整理汇总了Java中org.irods.jargon.core.connection.SettableJargonProperties类的典型用法代码示例。如果您正苦于以下问题:Java SettableJargonProperties类的具体用法?Java SettableJargonProperties怎么用?Java SettableJargonProperties使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SettableJargonProperties类属于org.irods.jargon.core.connection包,在下文中一共展示了SettableJargonProperties类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import org.irods.jargon.core.connection.SettableJargonProperties; //导入依赖的package包/类
protected IRODSFileSystem configure(final IRODSFileSystem client) {
final SettableJargonProperties properties = new SettableJargonProperties(client.getJargonProperties());
properties.setEncoding(host.getEncoding());
final int timeout = preferences.getInteger("connection.timeout.seconds") * 1000;
properties.setIrodsSocketTimeout(timeout);
properties.setIrodsParallelSocketTimeout(timeout);
properties.setGetBufferSize(PreferencesFactory.get().getInteger("connection.chunksize"));
properties.setPutBufferSize(PreferencesFactory.get().getInteger("connection.chunksize"));
if(log.isDebugEnabled()) {
log.debug(String.format("Configure client %s with properties %s", client, properties));
}
client.getIrodsSession().setJargonProperties(properties);
client.getIrodsSession().setX509TrustManager(trust);
return client;
}
示例2: overrideJargonProperties
import org.irods.jargon.core.connection.SettableJargonProperties; //导入依赖的package包/类
private void overrideJargonProperties(SettableJargonProperties properties) {
String maxThreads = configuration.getProperty(B2SAFE_CONFIGURATION.IRODS_TRANSFER_MAX_THREADS.name()).trim();
if(maxThreads!=null) {
try{
properties.setMaxParallelThreads(Integer.parseInt(maxThreads));
}catch(Exception ex) {
}
}
}
开发者ID:EUDAT-B2SAFE,项目名称:B2SAFE-repository-package,代码行数:12,代码来源:ReplicationServiceIrodsGenericImpl.java
示例3: getSettableJargonProperties
import org.irods.jargon.core.connection.SettableJargonProperties; //导入依赖的package包/类
protected SettableJargonProperties getSettableJargonProperties() {
IRODSSession irodsSession = irodsFileSystem.getIrodsSession();
overrideJargonProperties = new SettableJargonProperties(
irodsSession.getJargonProperties());
return overrideJargonProperties;
}
开发者ID:EUDAT-B2SAFE,项目名称:B2SAFE-repository-package,代码行数:7,代码来源:ReplicationServiceIrodsGenericImpl.java