public class HazelCastAccessToken extends java.lang.Object implements java.io.Serializable, FileAccessToken
File access token used by the grantFileAccess()/releaseFileAccess() methods of the clustered state cache
Modifier | Constructor and Description |
---|---|
|
HazelCastAccessToken()
Default constructor
|
protected |
HazelCastAccessToken(ClusterNode clNode,
int pid)
Class constructor
|
protected |
HazelCastAccessToken(java.lang.String clName,
int pid)
Class constructor
|
protected |
HazelCastAccessToken(java.lang.String clName,
int pid,
int oplock,
boolean oplockNotAvail)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
finalize()
Finalize
|
java.lang.String |
getNetworkFilePath()
Return the associated network file path
|
int |
getOpLockType()
Return the oplock type
|
java.lang.String |
getOwnerName()
Return the owner name
|
int |
getProcessId()
Return the process id
|
boolean |
isAttributesOnly()
Check if the access token is on attributes only file open
|
boolean |
isOplockAvailable()
Check if the oplock was available
|
boolean |
isReleased()
Check if the access token has been released
|
void |
setAttributesOnly(boolean attrOnly)
Set/clear the attributes only flag
|
void |
setNetworkFilePath(java.lang.String path)
Set the associated network file path
|
void |
setOpLockType(int oplock)
Set the oplock type granted
|
void |
setReleased(boolean released)
Set the released state of the access token
|
java.lang.String |
toString()
Return the access token as a string
|
public HazelCastAccessToken()
protected HazelCastAccessToken(java.lang.String clName, int pid)
clName
- Stringpid
- intprotected HazelCastAccessToken(ClusterNode clNode, int pid)
clNode
- ClusterNodepid
- intprotected HazelCastAccessToken(java.lang.String clName, int pid, int oplock, boolean oplockNotAvail)
clName
- Stringpid
- intoplock
- intoplockNotAvailable
- booleanpublic final java.lang.String getOwnerName()
public final int getProcessId()
public final boolean isOplockAvailable()
public final int getOpLockType()
public final void setOpLockType(int oplock)
oplock
- intpublic final boolean isReleased()
public final void setReleased(boolean released)
released
- booleanpublic final java.lang.String getNetworkFilePath()
public final void setNetworkFilePath(java.lang.String path)
path
- Stringpublic final boolean isAttributesOnly()
public final void setAttributesOnly(boolean attrOnly)
attrOnly
- booleanpublic java.lang.String toString()
toString
in class java.lang.Object
public void finalize()
finalize
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.