public abstract class ClusterBase extends Object implements ClusterInterface
| Modifier and Type | Field and Description |
|---|---|
static String |
DefaultClusterName |
static long |
DefaultLowPriorityQueueInterval |
| Constructor and Description |
|---|
ClusterBase(ClusterFileStateCache stateCache,
String clusterName,
ThreadRequestPool threadPool)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClusterName()
Return the cluster name
|
ClusterNode |
getLocalNode()
Return the local node details
|
ClusterNodeList |
getNodeList()
Return the list of nodes
|
NotifyChangeHandler |
getNotifyChangeHandler()
Return the change notification handler, if configured for the filesystem
|
OpLockManager |
getOpLockManager()
Return the oplock manager
|
ClusterFileStateCache |
getStateCache()
Return the associated cluster state cache
|
ThreadRequestPool |
getThreadPool()
Return the thread pool
|
boolean |
hasDebug()
Check if debug output is enabled
|
boolean |
hasSendNotExistStates()
Check if none existent file/folder states should be sent to the cluster
|
abstract void |
requestOplockBreak(ClusterNode clNode,
ClusterFileState clState)
Request an oplock break
|
void |
setLocalNode(ClusterNode localNode)
Set the local cluster node
|
void |
setNodeList(ClusterNodeList nodeList)
Set the cluster node list
|
void |
setNotifyChangeHandler(NotifyChangeHandler notifyHandler)
Set the change notification handler
|
void |
setOpLockManager(OpLockManager oplockMgr)
Set the oplock manager
|
void |
setSendNotExistStates(boolean notExist)
Set the send none existent file/folder states to the cluster
|
abstract void |
shutdownCluster()
Shutdown the cluster
|
abstract void |
startCluster()
Start the cluster
|
public static final String DefaultClusterName
public static final long DefaultLowPriorityQueueInterval
public ClusterBase(ClusterFileStateCache stateCache, String clusterName, ThreadRequestPool threadPool)
stateCache - ClusterFileStateCacheclusterName - StringthreadPool - ThreadRequestPoolpublic abstract void startCluster()
throws Exception
startCluster in interface ClusterInterfaceExceptionpublic abstract void shutdownCluster()
throws Exception
shutdownCluster in interface ClusterInterfaceExceptionpublic final String getClusterName()
getClusterName in interface ClusterInterfacepublic final ClusterNodeList getNodeList()
getNodeList in interface ClusterInterfacepublic final ClusterNode getLocalNode()
getLocalNode in interface ClusterInterfacepublic final ClusterFileStateCache getStateCache()
getStateCache in interface ClusterInterfacepublic final ThreadRequestPool getThreadPool()
getThreadPool in interface ClusterInterfacepublic final boolean hasDebug()
hasDebug in interface ClusterInterfacepublic final boolean hasSendNotExistStates()
hasSendNotExistStates in interface ClusterInterfacepublic final OpLockManager getOpLockManager()
getOpLockManager in interface ClusterInterfacepublic final NotifyChangeHandler getNotifyChangeHandler()
getNotifyChangeHandler in interface ClusterInterfacepublic final void setSendNotExistStates(boolean notExist)
setSendNotExistStates in interface ClusterInterfacenotExist - booleanpublic final void setOpLockManager(OpLockManager oplockMgr)
setOpLockManager in interface ClusterInterfaceoplockMgr - OpLockManagerpublic final void setNotifyChangeHandler(NotifyChangeHandler notifyHandler)
setNotifyChangeHandler in interface ClusterInterfacenotifyHandler - NotifyChangeHandlerpublic final void setNodeList(ClusterNodeList nodeList)
setNodeList in interface ClusterInterfacenodeList - ClusterNodeListpublic final void setLocalNode(ClusterNode localNode)
setLocalNode in interface ClusterInterfacelocalNode - ClusterNodepublic abstract void requestOplockBreak(ClusterNode clNode, ClusterFileState clState) throws IOException
clNode - ClusterNodeclState - ClusterFileStateIOExceptionCopyright © 2005–2015 Alfresco Software. All rights reserved.