|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.impl.AbstractCompassGps
public abstract class AbstractCompassGps
A simple base class for CompassGps
implementations.
| Field Summary | |
|---|---|
protected HashMap<String,CompassGpsDevice> |
devices
|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
AbstractCompassGps()
|
|
| Method Summary | |
|---|---|
void |
addGpsDevice(CompassGpsDevice gpsDevice)
Adds a CompassGpsDevice to be managed. |
protected abstract void |
doIndex(IndexPlan indexPlan)
|
protected abstract void |
doStart()
|
protected abstract void |
doStop()
|
protected void |
finalize()
|
protected CompassGpsDevice |
getGpsDevice(String name)
|
protected ResourceMapping |
getMappingForEntity(String name,
Compass checkedCompass)
|
protected ResourceMapping |
getRootMappingForEntity(Class clazz,
Compass checkedCompass)
|
protected ResourceMapping |
getRootMappingForEntity(String name,
Compass checkedCompass)
|
protected boolean |
hasMappingForEntity(Class clazz,
Compass checkedCompass,
CascadeMapping.Cascade cascade)
|
protected boolean |
hasMappingForEntity(String name,
Compass checkedCompass,
CascadeMapping.Cascade cascade)
|
protected boolean |
hasRootMappingForEntity(Class clazz,
Compass checkedCompass)
|
protected boolean |
hasRootMappingForEntity(String name,
Compass checkedCompass)
|
void |
index()
Indexes all the different devices (by calling their respective index() operation. |
void |
index(Class... types)
Index just the given types. |
void |
index(IndexPlan indexPlan)
Indexes all the different devices based on the given index plan. |
void |
index(String... aliases)
Index just the aliases. |
boolean |
isPerformingIndexOperation()
Retuns true if the devide performs the index operaiton. |
boolean |
isRunning()
Return true is started. |
void |
refresh()
|
void |
setGpsDevices(CompassGpsDevice[] devices)
Sets a list of CompassGpsDevices that will be managed. |
void |
start()
Start CompassGps (also starts all the devices). |
void |
stop()
Stops CompassGps (also starts all the devices). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.compass.gps.spi.CompassGpsInterfaceDevice |
|---|
executeForIndex, executeForMirror, getIndexCompass, getMappingForEntityForIndex, getMappingForEntityForIndex, getMirrorCompass, hasMappingForEntityForIndex, hasMappingForEntityForIndex, hasMappingForEntityForMirror, hasMappingForEntityForMirror |
| Field Detail |
|---|
protected org.apache.commons.logging.Log log
protected HashMap<String,CompassGpsDevice> devices
| Constructor Detail |
|---|
public AbstractCompassGps()
| Method Detail |
|---|
public void addGpsDevice(CompassGpsDevice gpsDevice)
CompassGpsCompassGpsDevice to be managed.
addGpsDevice in interface CompassGpspublic void setGpsDevices(CompassGpsDevice[] devices)
CompassGpsCompassGpsDevices that will be managed.
setGpsDevices in interface CompassGpsprotected CompassGpsDevice getGpsDevice(String name)
protected boolean hasRootMappingForEntity(Class clazz,
Compass checkedCompass)
protected boolean hasMappingForEntity(Class clazz,
Compass checkedCompass,
CascadeMapping.Cascade cascade)
protected boolean hasMappingForEntity(String name,
Compass checkedCompass,
CascadeMapping.Cascade cascade)
protected ResourceMapping getRootMappingForEntity(Class clazz,
Compass checkedCompass)
protected boolean hasRootMappingForEntity(String name,
Compass checkedCompass)
protected ResourceMapping getMappingForEntity(String name,
Compass checkedCompass)
protected ResourceMapping getRootMappingForEntity(String name,
Compass checkedCompass)
public void index()
throws CompassGpsException,
IllegalStateException
CompassGpsindex() operation.
Similar to calling the CompassGps.index(IndexPlan) with a new
instance of DefaultIndexPlan (and nothing else set).
index in interface CompassGpsCompassGpsException
IllegalStateException
public void index(Class... types)
throws CompassGpsException,
IllegalStateException
CompassGps
index in interface CompassGpsCompassGpsException
IllegalStateException
public void index(String... aliases)
throws CompassGpsException,
IllegalStateException
CompassGps
index in interface CompassGpsCompassGpsException
IllegalStateException
public void index(IndexPlan indexPlan)
throws CompassGpsException,
IllegalStateException
CompassGps
index in interface CompassGpsCompassGpsException
IllegalStateException
protected abstract void doIndex(IndexPlan indexPlan)
throws CompassGpsException
CompassGpsException
public void start()
throws CompassGpsException
CompassGpsCompassGps (also starts all the devices).
start in interface CompassGpsCompassGpsException
protected abstract void doStart()
throws CompassGpsException
CompassGpsException
protected abstract void doStop()
throws CompassGpsException
CompassGpsException
public void stop()
throws CompassGpsException
CompassGpsCompassGps (also starts all the devices).
stop in interface CompassGpsCompassGpsException
public void refresh()
throws CompassGpsException
CompassGpsExceptionpublic boolean isRunning()
CompassGpstrue is started.
isRunning in interface CompassGpspublic boolean isPerformingIndexOperation()
CompassGpstrue if the devide performs the index operaiton.
isPerformingIndexOperation in interface CompassGps
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||