org.safehaus.penrose.engine
Class DefaultEngine

java.lang.Object
  extended byorg.safehaus.penrose.engine.Engine
      extended byorg.safehaus.penrose.engine.DefaultEngine

public class DefaultEngine
extends Engine

Author:
Endi S. Dewata

Field Summary
static java.lang.String DEFAULT_CACHE_CLASS
           
 
Fields inherited from class org.safehaus.penrose.engine.Engine
connectionManager, connector, engineConfig, engineFilterTool, entryCache, interpreterManager, joinEngine, loadEngine, locks, log, mergeEngine, partitionManager, penroseConfig, queue, schemaManager, stopping, transformEngine
 
Constructor Summary
DefaultEngine()
           
 
Method Summary
 int add(Partition partition, Entry parent, EntryMapping entryMapping, java.lang.String dn, javax.naming.directory.Attributes attributes)
           
 int bind(Partition partition, Entry entry, java.lang.String password)
           
 int delete(Partition partition, Entry entry)
           
 int expand(Partition partition, java.util.Collection parentPath, AttributeValues parentSourceValues, EntryMapping entryMapping, java.lang.String baseDn, Filter filter, PenroseSearchControls sc, PenroseSearchResults results)
           
 SearchEngine getSearchEngine()
           
 void init()
           
 int modify(Partition partition, Entry entry, java.util.Collection modifications)
           
 int modrdn(Partition partition, Entry entry, java.lang.String newRdn)
           
 int search(Partition partition, java.util.Collection path, AttributeValues parentSourceValues, EntryMapping entryMapping, java.lang.String baseDn, Filter filter, PenroseSearchControls sc, PenroseSearchResults results)
           
 void setSearchEngine(SearchEngine searchEngine)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.safehaus.penrose.engine.Engine
computeAttributeValues, computeAttributeValues, computeAttributeValues, computeDns, computeDns, computeRdn, createFilter, createFilter, generateFilter, generateFilter, getConnectingRelationship, getConnectionManager, getConnector, getEngineConfig, getEngineFilterTool, getEntryCache, getFilterTool, getGraph, getInterpreterManager, getJoinEngine, getLoadEngine, getLock, getMergeEngine, getParentSourceValues, getPartitionManager, getPrimarySource, getSchemaManager, getServerConfig, getStartingSourceName, getThreadManager, getTransformEngine, isStatic, isStopping, isUnique, load, merge, setConnectionManager, setConnector, setEngineConfig, setEngineFilterTool, setEntryCache, setFilterTool, setInterpreterFactory, setJoinEngine, setLoadEngine, setMergeEngine, setPartitionManager, setPenroseConfig, setSchemaManager, setThreadManager, setTransformEngine, shiftParentSourceValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CACHE_CLASS

public static final java.lang.String DEFAULT_CACHE_CLASS
Constructor Detail

DefaultEngine

public DefaultEngine()
Method Detail

init

public void init()
          throws java.lang.Exception
Overrides:
init in class Engine
Throws:
java.lang.Exception

bind

public int bind(Partition partition,
                Entry entry,
                java.lang.String password)
         throws java.lang.Exception
Specified by:
bind in class Engine
Throws:
java.lang.Exception

add

public int add(Partition partition,
               Entry parent,
               EntryMapping entryMapping,
               java.lang.String dn,
               javax.naming.directory.Attributes attributes)
        throws java.lang.Exception
Specified by:
add in class Engine
Throws:
java.lang.Exception

delete

public int delete(Partition partition,
                  Entry entry)
           throws java.lang.Exception
Specified by:
delete in class Engine
Throws:
java.lang.Exception

modrdn

public int modrdn(Partition partition,
                  Entry entry,
                  java.lang.String newRdn)
           throws java.lang.Exception
Specified by:
modrdn in class Engine
Throws:
java.lang.Exception

modify

public int modify(Partition partition,
                  Entry entry,
                  java.util.Collection modifications)
           throws java.lang.Exception
Specified by:
modify in class Engine
Throws:
java.lang.Exception

getSearchEngine

public SearchEngine getSearchEngine()

setSearchEngine

public void setSearchEngine(SearchEngine searchEngine)

start

public void start()
           throws java.lang.Exception
Overrides:
start in class Engine
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Overrides:
stop in class Engine
Throws:
java.lang.Exception

expand

public int expand(Partition partition,
                  java.util.Collection parentPath,
                  AttributeValues parentSourceValues,
                  EntryMapping entryMapping,
                  java.lang.String baseDn,
                  Filter filter,
                  PenroseSearchControls sc,
                  PenroseSearchResults results)
           throws java.lang.Exception
Specified by:
expand in class Engine
Throws:
java.lang.Exception

search

public int search(Partition partition,
                  java.util.Collection path,
                  AttributeValues parentSourceValues,
                  EntryMapping entryMapping,
                  java.lang.String baseDn,
                  Filter filter,
                  PenroseSearchControls sc,
                  PenroseSearchResults results)
           throws java.lang.Exception
Specified by:
search in class Engine
Throws:
java.lang.Exception