public abstract class ClusterBase extends java.lang.Object implements ClusterInterface
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DefaultClusterName |
static long |
DefaultLowPriorityQueueInterval |
| Constructor and Description |
|---|
ClusterBase(ClusterFileStateCache stateCache,
java.lang.String clusterName,
ThreadRequestPool threadPool)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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 java.lang.String DefaultClusterName
public static final long DefaultLowPriorityQueueInterval
public ClusterBase(ClusterFileStateCache stateCache, java.lang.String clusterName, ThreadRequestPool threadPool)
stateCache - ClusterFileStateCacheclusterName - StringthreadPool - ThreadRequestPoolpublic abstract void startCluster()
throws java.lang.Exception
startCluster in interface ClusterInterfacejava.lang.Exceptionpublic abstract void shutdownCluster()
throws java.lang.Exception
shutdownCluster in interface ClusterInterfacejava.lang.Exceptionpublic final java.lang.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 java.io.IOException
clNode - ClusterNodeclState - ClusterFileStatejava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.