|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.impl.AbstractCompassGps
org.compass.gps.impl.DualCompassGps
SingleCompassGps.
public class DualCompassGps
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.
| 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,
CascadeMapping.Cascade cascade)
Deprecated. Returns true if there is mapping for the given class when
performing the mirror operation. |
boolean |
hasMappingForEntityForMirror(String name,
CascadeMapping.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 |
|---|
public DualCompassGps()
public DualCompassGps(Compass indexCompass,
Compass mirrorCompass)
| Method Detail |
|---|
protected void doStart()
throws CompassGpsException
doStart in class AbstractCompassGpsCompassGpsException
protected void doStop()
throws CompassGpsException
doStop in class AbstractCompassGpsCompassGpsException
protected void doIndex(IndexPlan indexPlan)
throws CompassGpsException
doIndex in class AbstractCompassGpsCompassGpsException
public void executeForIndex(CompassCallback callback)
throws CompassException
CompassGpsInterfaceDevice
CompassException
public void executeForMirror(CompassCallback callback)
throws CompassException
CompassGpsInterfaceDevice
CompassException
public boolean hasMappingForEntityForIndex(Class clazz)
throws CompassException
CompassGpsInterfaceDevicetrue if there is mapping for the given class when
performing the index operation.
CompassException
public boolean hasMappingForEntityForIndex(String name)
throws CompassException
CompassGpsInterfaceDevicetrue if there is mapping for the given name (alias
or class name) when performing the index operation.
CompassException
public boolean hasMappingForEntityForMirror(Class clazz,
CascadeMapping.Cascade cascade)
throws CompassException
CompassGpsInterfaceDevicetrue if there is mapping for the given class when
performing the mirror operation.
CompassException
public boolean hasMappingForEntityForMirror(String name,
CascadeMapping.Cascade cascade)
throws CompassException
CompassGpsInterfaceDevicetrue if there is mapping for the given name (alias
or class name) when performing the mirror operation.
CompassException
public ResourceMapping getMappingForEntityForIndex(String name)
throws CompassException
CompassGpsInterfaceDevice
CompassException
public ResourceMapping getMappingForEntityForIndex(Class clazz)
throws CompassException
CompassGpsInterfaceDevice
CompassExceptionpublic Compass getIndexCompass()
CompassGpsInterfaceDeviceCompass instance used for indexing. Note that
no operations that will affect the index should be made using it, use
CompassGpsInterfaceDevice.executeForIndex(CompassCallback) operation instead.
public void setIndexCompass(Compass indexCompass)
public Compass getMirrorCompass()
CompassGpsInterfaceDeviceCompass instance used for mirroring. Note that
no operations that will affect the index should be made using it, use
CompassGpsInterfaceDevice.executeForMirror(CompassCallback) operation instead.
public void setMirrorCompass(Compass mirrorCompass)
public CompassTemplate getIndexCompassTemplate()
public CompassTemplate getMirrorCompassTemplate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||