public class PipeShare extends Share
session, smbPath, treeConnect| Constructor and Description |
|---|
PipeShare(SmbPath smbPath,
TreeConnect treeConnect) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeFileId(SMB2FileId fileId) |
NamedPipe |
open(java.lang.String name,
SMB2ImpersonationLevel impersonationLevel,
java.util.Set<AccessMask> accessMask,
java.util.Set<FileAttributes> attributes,
java.util.Set<SMB2ShareAccess> shareAccesses,
SMB2CreateDisposition createDisposition,
java.util.Set<SMB2CreateOptions> createOptions) |
SMB2FileId |
openFileId(java.lang.String name,
SMB2ImpersonationLevel impersonationLevel,
java.util.Set<AccessMask> accessMask,
java.util.Set<FileAttributes> fileAttributes,
java.util.Set<SMB2ShareAccess> shareAccess,
SMB2CreateDisposition createDisposition,
java.util.Set<SMB2CreateOptions> createOptions) |
boolean |
waitForPipe(java.lang.String name)
Requests that the server wait until an instance of the specified named pipe is available for connection.
|
boolean |
waitForPipe(java.lang.String name,
long timeout,
java.util.concurrent.TimeUnit timeoutUnit)
Requests that the server wait until an instance of the specified named pipe is available for connection.
|
close, getCreateStatusHandler, getSmbPath, getTreeConnect, ioctl, ioctl, ioctl, ioctlAsync, isConnectedpublic PipeShare(SmbPath smbPath, TreeConnect treeConnect)
public boolean waitForPipe(java.lang.String name)
Name must not include the "\pipe\", so if the operation was on \\server\pipe\pipename, the name would be "pipename".
This method requests that the server wait indefinitely. To specify a maximum wait time use waitForPipe(String, long, TimeUnit).
name - the name of the named pipe.SMBApiException - if an error occurs while waiting for an instance of the pipe to become availablepublic boolean waitForPipe(java.lang.String name,
long timeout,
java.util.concurrent.TimeUnit timeoutUnit)
Name must not include the "\pipe\", so if the operation was on \\server\pipe\pipename, the name would be "pipename".
name - the name of the named pipe.timeout - the amount of time to wait until an instance is availabletimeoutUnit - the unit in which timeout is specifiedSMBApiException - if an error occurs while waiting for an instance of the pipe to become availablepublic NamedPipe open(java.lang.String name, SMB2ImpersonationLevel impersonationLevel, java.util.Set<AccessMask> accessMask, java.util.Set<FileAttributes> attributes, java.util.Set<SMB2ShareAccess> shareAccesses, SMB2CreateDisposition createDisposition, java.util.Set<SMB2CreateOptions> createOptions)
public SMB2FileId openFileId(java.lang.String name, SMB2ImpersonationLevel impersonationLevel, java.util.Set<AccessMask> accessMask, java.util.Set<FileAttributes> fileAttributes, java.util.Set<SMB2ShareAccess> shareAccess, SMB2CreateDisposition createDisposition, java.util.Set<SMB2CreateOptions> createOptions)
public void closeFileId(SMB2FileId fileId) throws SMBApiException
SMBApiException