org.compass.gps.impl
Class DualCompassGps

java.lang.Object
  extended by org.compass.gps.impl.AbstractCompassGps
      extended by org.compass.gps.impl.DualCompassGps
All Implemented Interfaces:
CompassGps, CompassGpsInterfaceDevice

Deprecated. Please use SingleCompassGps.

public class DualCompassGps
extends AbstractCompassGps

A CompassGps implementation that holds two Compass instances. One, called indexCompass is responsible for index operation. The other, called mirrorCompass is responsible for mirror operations.

The index compass settings should probably work in batch insert mode and disable cascading.

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.gps.impl.AbstractCompassGps
devices, log
 
Constructor Summary
DualCompassGps()
          Deprecated.  
DualCompassGps(Compass indexCompass, Compass mirrorCompass)
          Deprecated.  
 
Method Summary
protected  void doIndex(IndexPlan indexPlan)
          Deprecated.  
protected  void doStart()
          Deprecated.  
protected  void doStop()
          Deprecated.  
 void executeForIndex(CompassCallback callback)
          Deprecated. Executes the given callback for index operations.
 void executeForMirror(CompassCallback callback)
          Deprecated. Executes the given callback for mirror operations.
 Compass getIndexCompass()
          Deprecated. Returns the Compass instance used for indexing.
 CompassTemplate getIndexCompassTemplate()
          Deprecated.  
 ResourceMapping getMappingForEntityForIndex(Class clazz)
          Deprecated. Returns the mapping for the given class name when performing the index operation.
 ResourceMapping getMappingForEntityForIndex(String name)
          Deprecated. Returns the mapping of the given name (alias or class name) when performing the index operation.
 Compass getMirrorCompass()
          Deprecated. Returns the Compass instance used for mirroring.
 CompassTemplate getMirrorCompassTemplate()
          Deprecated.  
 boolean hasMappingForEntityForIndex(Class clazz)
          Deprecated. Returns true if there is mapping for the given class when performing the index operation.
 boolean hasMappingForEntityForIndex(String name)
          Deprecated. Returns true if there is mapping for the given name (alias or class name) when performing the index operation.
 boolean hasMappingForEntityForMirror(Class clazz, Cascade cascade)
          Deprecated. Returns true if there is mapping for the given class when performing the mirror operation.
 boolean hasMappingForEntityForMirror(String name, Cascade cascade)
          Deprecated. Returns true if there is mapping for the given name (alias or class name) when performing the mirror operation.
 void setIndexCompass(Compass indexCompass)
          Deprecated. Sets the index compass instance, used for the indexing operations.
 void setMirrorCompass(Compass mirrorCompass)
          Deprecated. Sets the mirror compass instance, used for the mirroring operations.
 
Methods inherited from class org.compass.gps.impl.AbstractCompassGps
addGpsDevice, finalize, getGpsDevice, getMappingForEntity, getRootMappingForEntity, getRootMappingForEntity, hasMappingForEntity, hasMappingForEntity, hasRootMappingForEntity, hasRootMappingForEntity, index, index, index, index, isPerformingIndexOperation, isRunning, refresh, setGpsDevices, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DualCompassGps

public DualCompassGps()
Deprecated. 

DualCompassGps

public DualCompassGps(Compass indexCompass,
                      Compass mirrorCompass)
Deprecated. 
Method Detail

doStart

protected void doStart()
                throws CompassGpsException
Deprecated. 
Specified by:
doStart in class AbstractCompassGps
Throws:
CompassGpsException

doStop

protected void doStop()
               throws CompassGpsException
Deprecated. 
Specified by:
doStop in class AbstractCompassGps
Throws:
CompassGpsException

doIndex

protected void doIndex(IndexPlan indexPlan)
                throws CompassGpsException
Deprecated. 
Specified by:
doIndex in class AbstractCompassGps
Throws:
CompassGpsException

executeForIndex

public void executeForIndex(CompassCallback callback)
                     throws CompassException
Deprecated. 
Description copied from interface: CompassGpsInterfaceDevice
Executes the given callback for index operations.

Throws:
CompassException

executeForMirror

public void executeForMirror(CompassCallback callback)
                      throws CompassException
Deprecated. 
Description copied from interface: CompassGpsInterfaceDevice
Executes the given callback for mirror operations.

Throws:
CompassException

hasMappingForEntityForIndex

public boolean hasMappingForEntityForIndex(Class clazz)
                                    throws CompassException
Deprecated. 
Description copied from interface: CompassGpsInterfaceDevice
Returns true if there is mapping for the given class when performing the index operation.

Throws:
CompassException

hasMappingForEntityForIndex

public boolean hasMappingForEntityForIndex(String name)
                                    throws CompassException
Deprecated. 
Description copied from interface: CompassGpsInterfaceDevice
Returns true if there is mapping for the given name (alias or class name) when performing the index operation.

Throws:
CompassException

hasMappingForEntityForMirror

public boolean hasMappingForEntityForMirror(Class clazz,
                                            Cascade cascade)
                                     throws CompassException
Deprecated. 
Description copied from interface: CompassGpsInterfaceDevice
Returns true if there is mapping for the given class when performing the mirror operation.

Throws:
CompassException

hasMappingForEntityForMirror

public boolean hasMappingForEntityForMirror(String name,
                                            Cascade cascade)
                                     throws CompassException
Deprecated. 
Description copied from interface: CompassGpsInterfaceDevice
Returns true if there is mapping for the given name (alias or class name) when performing the mirror operation.

Throws:
CompassException

getMappingForEntityForIndex

public ResourceMapping getMappingForEntityForIndex(String name)
                                            throws CompassException
Deprecated. 
Description copied from interface: CompassGpsInterfaceDevice
Returns the mapping of the given name (alias or class name) when performing the index operation.

Throws:
CompassException

getMappingForEntityForIndex

public ResourceMapping getMappingForEntityForIndex(Class clazz)
                                            throws CompassException
Deprecated. 
Description copied from interface: CompassGpsInterfaceDevice
Returns the mapping for the given class name when performing the index operation.

Throws:
CompassException

getIndexCompass

public Compass getIndexCompass()
Deprecated. 
Description copied from interface: CompassGpsInterfaceDevice
Returns the Compass instance used for indexing. Note that no operations that will affect the index should be made using it, use CompassGpsInterfaceDevice.executeForIndex(CompassCallback) operation instead.


setIndexCompass

public void setIndexCompass(Compass indexCompass)
Deprecated. 
Sets the index compass instance, used for the indexing operations.


getMirrorCompass

public Compass getMirrorCompass()
Deprecated. 
Description copied from interface: CompassGpsInterfaceDevice
Returns the Compass instance used for mirroring. Note that no operations that will affect the index should be made using it, use CompassGpsInterfaceDevice.executeForMirror(CompassCallback) operation instead.


setMirrorCompass

public void setMirrorCompass(Compass mirrorCompass)
Deprecated. 
Sets the mirror compass instance, used for the mirroring operations.


getIndexCompassTemplate

public CompassTemplate getIndexCompassTemplate()
Deprecated. 

getMirrorCompassTemplate

public CompassTemplate getMirrorCompassTemplate()
Deprecated. 


Copyright (c) 2004-2009 The Compass Project.