gpt4 book ai didi

org.jvnet.solaris.libzfs.ZFSException类的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 06:15:31 26 4
gpt4 key购买 nike

本文整理了Java中org.jvnet.solaris.libzfs.ZFSException类的一些代码示例,展示了ZFSException类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZFSException类的具体详情如下:
包路径:org.jvnet.solaris.libzfs.ZFSException
类名称: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());
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com