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


Java SettableJargonProperties类代码示例

本文整理汇总了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;
}
 
开发者ID:iterate-ch,项目名称:cyberduck,代码行数:16,代码来源:IRODSSession.java

示例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


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