Package com.hierynomus.smbj.share
Class Open<S extends Share>
- java.lang.Object
-
- com.hierynomus.smbj.share.Open<S>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Open.LockBuilder
-
Field Summary
Fields Modifier and Type Field Description protected SMB2FileId
fileId
protected org.slf4j.Logger
logger
protected SmbPath
name
private OperationBuckets
operationBuckets
protected S
share
-
Constructor Summary
Constructors Constructor Description Open(SMB2FileId fileId, SmbPath name, S share)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
closeSilently()
SMB2FileId
getFileId()
(package private) void
lockRequest(java.util.List<SMB2LockElement> lockElements)
Send a lock request for an Open.Open.LockBuilder
requestLock()
3.2.4.19 Application Requests Locking of an Array of Byte Ranges
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
fileId
protected SMB2FileId fileId
-
name
protected SmbPath name
-
operationBuckets
private OperationBuckets operationBuckets
-
-
Constructor Detail
-
Open
Open(SMB2FileId fileId, SmbPath name, S share)
-
-
Method Detail
-
requestLock
public Open.LockBuilder requestLock()
3.2.4.19 Application Requests Locking of an Array of Byte Ranges- Returns:
-
lockRequest
void lockRequest(java.util.List<SMB2LockElement> lockElements)
Send a lock request for an Open. This could be lock/unlock operation. 2.2.26 SMB2 LOCK Request- Parameters:
lockElements
- List (an array) of LockCount (2.2.26.1 SMB2_LOCK_ELEMENT Structure) structures.
-
getFileId
public SMB2FileId getFileId()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
closeSilently
public void closeSilently()
-
-