public class GrantFileAccessTask extends RemoteStateTask<FileAccessToken>
Check if the specified file can be accessed using the requested sharing mode, access mode. Return a file sharing exception if the access cannot be granted.
TaskDebug, TaskLockState, TaskNoUpdate, TaskTiming
Constructor and Description |
---|
GrantFileAccessTask()
Default constructor
|
GrantFileAccessTask(String mapName,
String key,
GrantAccessParams params,
boolean debug,
boolean timingDebug)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
protected FileAccessToken |
runRemoteTaskAgainstState(com.hazelcast.core.IMap<String,ClusterFileState> stateCache,
ClusterFileState fState)
Run a remote task against a file state
|
call, getHazelcastInstance, getKey, getMapName, getTaskName, hasDebug, hasOption, hasTimingDebug, setHazelcastInstance
public GrantFileAccessTask()
public GrantFileAccessTask(String mapName, String key, GrantAccessParams params, boolean debug, boolean timingDebug)
mapName
- Stringkey
- Stringparams
- GrantAccessParamsdebug
- booleantimingDebug
- booleanprotected FileAccessToken runRemoteTaskAgainstState(com.hazelcast.core.IMap<String,ClusterFileState> stateCache, ClusterFileState fState) throws Exception
runRemoteTaskAgainstState
in class RemoteStateTask<FileAccessToken>
stateCache
- IMapfState
- HazelCastFileStateException
Copyright © 2005–2017 Alfresco Software. All rights reserved.