本文整理汇总了Java中org.apache.hadoop.fs.swift.exceptions.SwiftConnectionClosedException类的典型用法代码示例。如果您正苦于以下问题:Java SwiftConnectionClosedException类的具体用法?Java SwiftConnectionClosedException怎么用?Java SwiftConnectionClosedException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SwiftConnectionClosedException类属于org.apache.hadoop.fs.swift.exceptions包,在下文中一共展示了SwiftConnectionClosedException类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: seek
import org.apache.hadoop.fs.swift.exceptions.SwiftConnectionClosedException; //导入依赖的package包/类
@Override
public void seek(long pos) throws IOException {
if (pos < 0) {
throw new EOFException(FSExceptionMessages.NEGATIVE_SEEK);
}
if (in == null) {
throw new SwiftConnectionClosedException(FSExceptionMessages.STREAM_IS_CLOSED);
}
super.seek(pos);
}
开发者ID:naver,项目名称:hadoop,代码行数:11,代码来源:StrictBufferedFSInputStream.java
示例2: seek
import org.apache.hadoop.fs.swift.exceptions.SwiftConnectionClosedException; //导入依赖的package包/类
@Override
public void seek(long pos) throws IOException {
if (pos < 0) {
throw new IOException("Negative position");
}
if (in == null) {
throw new SwiftConnectionClosedException("Stream closed");
}
super.seek(pos);
}
开发者ID:Seagate,项目名称:hadoop-on-lustre2,代码行数:11,代码来源:StrictBufferedFSInputStream.java
示例3: assumeNotReleased
import org.apache.hadoop.fs.swift.exceptions.SwiftConnectionClosedException; //导入依赖的package包/类
/**
* Assume that the connection is not released: throws an exception if it is
* @throws SwiftConnectionClosedException
*/
private synchronized void assumeNotReleased() throws SwiftConnectionClosedException {
if (released || inStream == null) {
throw new SwiftConnectionClosedException(reasonClosed);
}
}
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:HttpInputStreamWithRelease.java
示例4: verifyOpen
import org.apache.hadoop.fs.swift.exceptions.SwiftConnectionClosedException; //导入依赖的package包/类
/**
* check that the output stream is open
*
* @throws SwiftException if it is not
*/
private synchronized void verifyOpen() throws SwiftException {
if (closed) {
throw new SwiftConnectionClosedException();
}
}
开发者ID:naver,项目名称:hadoop,代码行数:11,代码来源:SwiftNativeOutputStream.java
示例5: verifyOpen
import org.apache.hadoop.fs.swift.exceptions.SwiftConnectionClosedException; //导入依赖的package包/类
/**
* Assume that the connection is not closed: throws an exception if it is
* @throws SwiftConnectionClosedException
*/
private void verifyOpen() throws SwiftConnectionClosedException {
if (httpStream == null) {
throw new SwiftConnectionClosedException(reasonClosed);
}
}
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:SwiftNativeInputStream.java
注:本文中的org.apache.hadoop.fs.swift.exceptions.SwiftConnectionClosedException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论