public abstract class ClusterFileStateCache extends FileStateCache
DefaultExpireCheckInterval, DefaultFileStateExpireInterval, MinimumExpireCheckInterval, MinimumFileStateExpireInterval| Constructor and Description |
|---|
ClusterFileStateCache()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNodeToPurgeList(ClusterNode clNode)
Add a node to the state cache purge list, as it has left the cluster
|
abstract boolean |
canReadFile(ClusterFileState clState,
long offset,
long len,
int pid)
Check if the file is readable for the specified section of the file and process id
|
abstract boolean |
canWriteFile(ClusterFileState clState,
long offset,
long len,
int pid)
Check if the file is writeable for the specified section of the file and process id
|
void |
clusterRunning()
Cluster connection is running
|
ClusterInterface |
getCluster()
Return the associated cluster view
|
abstract PerNodeState |
getPerNodeState(ClusterFileState fState,
boolean createState)
Return the per node state for a file state, and optionally create a new per node state
|
abstract PerNodeState |
getPerNodeState(java.lang.String path,
boolean createState)
Return the per node state for a file state, and optionally create a new per node state
|
boolean |
isClusteredCache()
Determine if the cache is a clustered cache
|
protected void |
setCluster(ClusterInterface cluster)
Set the associated cluster
|
void |
setDriverDetails(DiskSharedDevice diskDev)
Set the filesystem driver and driver context details, if required by the cache
|
void |
stateCacheShuttingDown()
Cache shutting down
|
void |
stateCacheStarted()
Cache started
|
abstract void |
updateFileState(ClusterFileState clState,
int updateMask)
Update a file state, notify the cluster of the updates
|
addLock, addOpLock, addStateCacheListener, addStateListener, changeOpLockType, clearOpLock, createFileLockObject, dumpCache, findFileState, findFileState, findFileState, getCheckInterval, getFileStateExpireInterval, getFileStateProxy, getOpLock, getStateCacheListener, getStateListener, grantFileAccess, hasActiveLocks, hasDebug, hasDebugExpiredStates, hasDumpOnShutdown, hasStateCacheListener, hasStateListener, initializeCache, isCaseSensitive, numberOfStates, releaseFileAccess, removeAllFileStates, removeExpiredFileStates, removeFileState, removeLock, removeStateCacheListener, removeStateListener, renameFileState, requestOplockBreak, setCaseSensitive, setCheckInterval, setDataUpdateCompleted, setDataUpdateInProgress, setDebug, setDebugExpiredStates, setDumpOnShutdown, setFileStateExpireIntervalpublic boolean isClusteredCache()
isClusteredCache in class FileStateCachepublic abstract PerNodeState getPerNodeState(ClusterFileState fState, boolean createState)
fState - ClusterFileStatecreateState - booleanpublic abstract PerNodeState getPerNodeState(java.lang.String path, boolean createState)
path - StringcreateState - booleanpublic abstract boolean canReadFile(ClusterFileState clState, long offset, long len, int pid)
clState - ClusterFileStateoffset - longlen - longpid - intpublic abstract boolean canWriteFile(ClusterFileState clState, long offset, long len, int pid)
clState - ClusterFileStateoffset - longlen - longpid - intpublic abstract void updateFileState(ClusterFileState clState, int updateMask)
clState - ClusterFileStateupdateMask - intpublic void setDriverDetails(DiskSharedDevice diskDev)
setDriverDetails in class FileStateCachediskDev - DiskSharedDevicepublic final ClusterInterface getCluster()
protected final void setCluster(ClusterInterface cluster)
cluster - ClusterInterfacepublic void stateCacheStarted()
stateCacheStarted in class FileStateCachepublic void stateCacheShuttingDown()
stateCacheShuttingDown in class FileStateCacheprotected final void addNodeToPurgeList(ClusterNode clNode)
clNode - ClusterNodepublic final void clusterRunning()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.