本文整理了Java中org.jvnet.solaris.libzfs.ZFSException
类的一些代码示例,展示了ZFSException
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZFSException
类的具体详情如下:
包路径:org.jvnet.solaris.libzfs.ZFSException
类名称:ZFSException
[英]Indicates an error in ZFS operation.
[中]表示ZFS操作中出现错误。
代码示例来源:origin: jenkinsci/jenkins
hudson.share();
} catch (ZFSException e) {
listener.error("Failed to share the file systems: "+e.getCode());
代码示例来源:origin: org.kohsuke/libzfs
private void check(int r) {
if(r!=0)
throw new ZFSException(library);
}
代码示例来源:origin: org.jvnet.libzfs/libzfs
private void check(int r) {
if(r!=0)
throw new ZFSException(library);
}
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Share this dataset.
*/
public void share() {
if (LIBZFS.zfs_share(handle) != 0) {
throw new ZFSException(library);
}
}
代码示例来源:origin: jenkinsci/jenkins
if(ze.getCode()==ErrorCode.EZFS_PERM) {
代码示例来源:origin: org.kohsuke/libzfs
/**
* Share this dataset.
*/
public void share() {
if (LIBZFS.zfs_share(handle) != 0) {
throw new ZFSException(library);
}
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
hudson.share();
} catch (ZFSException e) {
listener.error("Failed to share the file systems: "+e.getCode());
代码示例来源:origin: org.kohsuke/libzfs
/**
* Share this dataset.
*/
public void shareISCSI() {
if (LIBZFS.zfs_share_iscsi(handle) != 0) {
throw new ZFSException(library);
}
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
hudson.share();
} catch (ZFSException e) {
listener.error("Failed to share the file systems: "+e.getCode());
代码示例来源:origin: org.kohsuke/libzfs
/**
* Unshare this dataset.
*/
public void unshareISCSI() {
if (LIBZFS.zfs_unshare_iscsi(handle) != 0) {
throw new ZFSException(library);
}
}
代码示例来源:origin: hudson/hudson-2.x
hudson.share();
} catch (ZFSException e) {
listener.error("Failed to share the file systems: "+e.getCode());
代码示例来源:origin: org.kohsuke/libzfs
/**
* Unshare this dataset.
*/
public void unshare() {
if (LIBZFS.zfs_unshare(handle) != 0) {
throw new ZFSException(library);
}
}
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
if(ze.getCode()==ErrorCode.EZFS_PERM) {
代码示例来源:origin: org.jvnet.libzfs/libzfs
ZFSObject(final LibZFS library, final zfs_handle_t handle) {
this.library = library;
if (handle == null) {
throw new ZFSException(library);
}
this.handle = handle;
this.name = LIBZFS.zfs_get_name(this.handle);
}
代码示例来源:origin: hudson/hudson-2.x
if(ze.getCode()==ErrorCode.EZFS_PERM) {
代码示例来源:origin: org.kohsuke/libzfs
ZFSObject(final LibZFS library, final zfs_handle_t handle) {
this.library = library;
if (handle == null) {
throw new ZFSException(library);
}
this.handle = handle;
this.name = LIBZFS.zfs_get_name(this.handle);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
if(ze.getCode()==ErrorCode.EZFS_PERM) {
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Unshare this dataset.
*/
public void unshare() {
if (LIBZFS.zfs_unshare(handle) != 0) {
throw new ZFSException(library);
}
}
}
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Wipes out the dataset and all its data. Very dangerous.
*
* <p>
* If this dataset contains nested datasets, this method fails with
* {@link ErrorCode#EZFS_EXISTS}.
*/
public void destory() {
if (LIBZFS.zfs_destroy(handle) != 0)
throw new ZFSException(library,"Failed to destroy "+getName());
}
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Unmounts this file system.
*
* @param flags
* See {@link MountFlags}.
*/
public void unmount(int flags) {
if (LIBZFS.zfs_unmount(handle, null, flags) != 0) {
throw new ZFSException(library,"Failed to unmount "+getName());
}
}
内容来源于网络,如有侵权,请联系作者删除!