This project has retired. For details please refer to its
        
        Attic page.
      
org.apache.jetspeed.cluster
Class NodeManagerImpl
java.lang.Object
   org.apache.jetspeed.cluster.NodeManagerImpl
org.apache.jetspeed.cluster.NodeManagerImpl
- All Implemented Interfaces: 
- org.apache.jetspeed.cluster.NodeManager, org.springframework.beans.factory.BeanFactoryAware
- public class NodeManagerImpl 
- extends Object- implements org.apache.jetspeed.cluster.NodeManager, org.springframework.beans.factory.BeanFactoryAware
Node Manager
- Version:
- Author:
- Hajo Birthelmer
 
| Fields inherited from interface org.apache.jetspeed.cluster.NodeManager | 
| INVALID_NODE_REQUEST, NODE_NEW, NODE_OUTDATED, NODE_SAVED | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
log
protected static final org.apache.commons.logging.Log log
beanFactory
private org.springframework.beans.factory.BeanFactory beanFactory
- added support for bean factory to create profile rules
 
 
nodes
private HashMap nodes
rootIndexDir
private File rootIndexDir
nodeInformationBean
private String nodeInformationBean
- the default criterion bean name
 
 
NodeManagerImpl
public NodeManagerImpl(String indexRoot,
                       String nodeInformationBean)
                throws Exception
- Throws:
- Exception
save
protected void save()
- 
 
- 
 
load
protected void load()
- 
 
- 
 
checkNode
public int checkNode(Long id,
                     String contextName)
- 
- Specified by:
- checkNodein interface- org.apache.jetspeed.cluster.NodeManager
 
- 
 
addNode
public void addNode(Long id,
                    String contextName)
             throws Exception
- 
- Specified by:
- addNodein interface- org.apache.jetspeed.cluster.NodeManager
 
- 
- Throws:
- Exception
 
removeNode
public void removeNode(String contextName)
                throws Exception
- 
- Specified by:
- removeNodein interface- org.apache.jetspeed.cluster.NodeManager
 
- 
- Throws:
- Exception
 
createNodeInformation
protected org.apache.jetspeed.cluster.NodeInformation createNodeInformation()
                                                                     throws ClassNotFoundException
- 
 
- 
- Throws:
- ClassNotFoundException
 
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
- 
- Specified by:
- setBeanFactoryin interface- org.springframework.beans.factory.BeanFactoryAware
 
- 
- Throws:
- org.springframework.beans.BeansException
 
getNumberOfNodes
public int getNumberOfNodes()
- 
- Specified by:
- getNumberOfNodesin interface- org.apache.jetspeed.cluster.NodeManager
 
- 
 
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.