- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jvnet.solaris.libzfs.ZFSException.<init>()
方法的一些代码示例,展示了ZFSException.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZFSException.<init>()
方法的具体详情如下:
包路径:org.jvnet.solaris.libzfs.ZFSException
类名称:ZFSException
方法名:<init>
暂无
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Share this dataset.
*/
public void share() {
if (LIBZFS.zfs_share(handle) != 0) {
throw new ZFSException(library);
}
}
代码示例来源:origin: org.kohsuke/libzfs
/**
* Share this dataset.
*/
public void share() {
if (LIBZFS.zfs_share(handle) != 0) {
throw new ZFSException(library);
}
}
代码示例来源:origin: org.kohsuke/libzfs
/**
* Share this dataset.
*/
public void shareISCSI() {
if (LIBZFS.zfs_share_iscsi(handle) != 0) {
throw new ZFSException(library);
}
}
代码示例来源:origin: org.kohsuke/libzfs
/**
* Unshare this dataset.
*/
public void unshareISCSI() {
if (LIBZFS.zfs_unshare_iscsi(handle) != 0) {
throw new ZFSException(library);
}
}
代码示例来源:origin: org.kohsuke/libzfs
/**
* Unshare this dataset.
*/
public void unshare() {
if (LIBZFS.zfs_unshare(handle) != 0) {
throw new ZFSException(library);
}
}
}
代码示例来源: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: 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.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());
}
}
代码示例来源:origin: org.kohsuke/libzfs
/**
* Mounts this file system.
*
* @param flags
* See {@link MountFlags}.
*/
public void mount(int flags) {
int r = LIBZFS.zfs_mount(handle, null, flags);
if (r != 0)
throw new ZFSException(library,"Failed to mount "+getName()+": code="+r);
}
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Mounts this file system.
*
* @param flags
* See {@link MountFlags}.
*/
public void mount(int flags) {
if (LIBZFS.zfs_mount(handle, null, flags) != 0)
throw new ZFSException(library,"Failed to mount "+getName());
}
代码示例来源:origin: org.kohsuke/libzfs
/**
* Renames this data set to another name.
*
* @return
* {@link ZFSObject} representing the new renamed dataset.
*/
public ZFSObject rename(String fullName, boolean recursive) {
if (LIBZFS.zfs_rename(handle, fullName, recursive) != 0)
throw new ZFSException(library);
return library.open(fullName);
}
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Renames this data set to another name.
*
* @return
* {@link ZFSObject} representing the new renamed dataset.
*/
public ZFSObject rename(String fullName, boolean recursive) {
if (LIBZFS.zfs_rename(handle, fullName, recursive) != 0)
throw new ZFSException(library);
return library.open(fullName);
}
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Sets a user-defined property.
*/
public void setProperty(String key, String value) {
if (LIBZFS.zfs_prop_set(handle, key, value) != 0)
throw new ZFSException(library,"Failed to set property "+key+" on "+getName());
}
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Revokes the specified set of permissions to this dataset.
*/
public void unallow(ACLBuilder acl) {
for (PermissionBuilder b : acl.builders) {
if(LIBZFS.zfs_perm_remove(handle,b.toNativeFormat(this))!=0)
throw new ZFSException(library);
}
}
代码示例来源:origin: org.kohsuke/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());
}
}
代码示例来源:origin: org.kohsuke/libzfs
/**
* Sets a user-defined property.
*/
public void setProperty(String key, String value) {
if (LIBZFS.zfs_prop_set(handle, key, value) != 0)
throw new ZFSException(library,"Failed to set property "+key+" on "+getName());
}
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Grants the specified set of permissions to this dataset.
*/
public void allow(ACLBuilder acl) {
for (PermissionBuilder b : acl.builders) {
if(LIBZFS.zfs_perm_set(handle,b.toNativeFormat(this))!=0)
throw new ZFSException(library);
}
}
代码示例来源:origin: org.jvnet.libzfs/libzfs
/**
* Clears the given property on this dataset, causing it to be inherited from its parent.
*/
public void inheritProperty(String key) {
if (LIBZFS.zfs_prop_inherit(handle, key) != 0)
throw new ZFSException(library);
// libzfs doesn't show us a new value until we reopen the handle, so do it now
dispose();
handle = LIBZFS.zfs_open(library.getHandle(), name, zfs_type_t.DATASET);
}
本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem类的一些代码示例,展示了ZFSFileSystem类的具体用法。这些代码示例主要来源于Github/St
本文整理了Java中org.jvnet.solaris.libzfs.ZFSException类的一些代码示例,展示了ZFSException类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中org.jvnet.solaris.libzfs.ZFSPool类的一些代码示例,展示了ZFSPool类的具体用法。这些代码示例主要来源于Github/Stackoverflow/
本文整理了Java中org.jvnet.solaris.libzfs.ZFSObject类的一些代码示例,展示了ZFSObject类的具体用法。这些代码示例主要来源于Github/Stackoverf
本文整理了Java中org.jvnet.solaris.libzfs.jna.zfs_prop_t类的一些代码示例,展示了zfs_prop_t类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem.getMountPoint()方法的一些代码示例,展示了ZFSFileSystem.getMountP
本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem.allow()方法的一些代码示例,展示了ZFSFileSystem.allow()的具体用法。这些代码
本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem.setMountPoint()方法的一些代码示例,展示了ZFSFileSystem.setMountP
本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem.getZfsProperty()方法的一些代码示例,展示了ZFSFileSystem.getZfsPr
本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem.mount()方法的一些代码示例,展示了ZFSFileSystem.mount()的具体用法。这些代码
本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem.getName()方法的一些代码示例,展示了ZFSFileSystem.getName()的具体用法。
本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem.share()方法的一些代码示例,展示了ZFSFileSystem.share()的具体用法。这些代码
本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem.setProperty()方法的一些代码示例,展示了ZFSFileSystem.setProperty
本文整理了Java中org.jvnet.solaris.libzfs.ZFSFileSystem.destory()方法的一些代码示例,展示了ZFSFileSystem.destory()的具体用法。
本文整理了Java中org.jvnet.solaris.libzfs.ZFSException.()方法的一些代码示例,展示了ZFSException.()的具体用法。这些代码示例主要来源于Githu
本文整理了Java中org.jvnet.solaris.libzfs.ZFSPool.check()方法的一些代码示例,展示了ZFSPool.check()的具体用法。这些代码示例主要来源于Githu
本文整理了Java中org.jvnet.solaris.libzfs.ZFSPool.getAvailableSize()方法的一些代码示例,展示了ZFSPool.getAvailableSize()
本文整理了Java中org.jvnet.solaris.libzfs.ZFSPool.disableDatasets()方法的一些代码示例,展示了ZFSPool.disableDatasets()的具
本文整理了Java中org.jvnet.solaris.libzfs.ZFSPool.toSize()方法的一些代码示例,展示了ZFSPool.toSize()的具体用法。这些代码示例主要来源于Git
本文整理了Java中org.jvnet.solaris.libzfs.ZFSPool.()方法的一些代码示例,展示了ZFSPool.()的具体用法。这些代码示例主要来源于Github/Stackove
我是一名优秀的程序员,十分优秀!