|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.device.AbstractGpsDevice
public abstract class AbstractGpsDevice
A general abstract device which can be used by all types of devices.
Provides support for device name, state managementisRunning(), as well as general helper methods.
| Field Summary | |
|---|---|
protected CompassGpsInterfaceDevice |
compassGps
|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
AbstractGpsDevice()
|
|
| Method Summary | |
|---|---|
String |
buildMessage(String message)
|
protected abstract void |
doIndex(CompassSession session,
IndexPlan indexPlan)
Derived devices must implement the method to perform the actual indexing operation. |
protected void |
doStart()
Derived devices can implement it in case of start event notification. |
protected void |
doStop()
Derived devices can implement it in case of stop event notification. |
CompassGps |
getGps()
Returns the CompassGps that manages the device. |
String |
getName()
Returns the name associated with the device. |
void |
index(IndexPlan indexPlan)
Index the device using the given index plan |
void |
injectGps(CompassGps compassGps)
Sets the CompassGps that manages the device. |
boolean |
isFilteredForIndex(String entity)
|
boolean |
isPerformingIndexOperation()
Retuns true if the devide performs the index operaiton. |
boolean |
isRunning()
Returns if the device is running. |
void |
refresh()
A no op. |
void |
setFilteredEntitiesForIndex(String[] filteredEntitiesForIndex)
|
void |
setName(String name)
Sets the name associated with the device. |
boolean |
shouldMirrorDataChanges()
Returns true if the device is required to perform mirror operation. |
void |
start()
Starts the device. |
void |
stop()
Stops the device. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.logging.Log log
protected CompassGpsInterfaceDevice compassGps
| Constructor Detail |
|---|
public AbstractGpsDevice()
| Method Detail |
|---|
public String getName()
CompassGpsDevice
getName in interface CompassGpsDevicepublic void setName(String name)
CompassGpsDevice
setName in interface CompassGpsDevicepublic CompassGps getGps()
CompassGpsDevice
getGps in interface CompassGpsDevicepublic void injectGps(CompassGps compassGps)
CompassGpsDevice
injectGps in interface CompassGpsDevicepublic void setFilteredEntitiesForIndex(String[] filteredEntitiesForIndex)
public String buildMessage(String message)
public boolean isFilteredForIndex(String entity)
public void index(IndexPlan indexPlan)
throws CompassGpsException
CompassGpsDevice
index in interface CompassGpsDeviceCompassGpsException
protected abstract void doIndex(CompassSession session,
IndexPlan indexPlan)
throws CompassGpsException
CompassGpsException
public void start()
throws CompassGpsException
CompassGpsDevice
start in interface CompassGpsDeviceCompassGpsException
protected void doStart()
throws CompassGpsException
CompassGpsException
public void stop()
throws CompassGpsException
CompassGpsDevice
stop in interface CompassGpsDeviceCompassGpsException
protected void doStop()
throws CompassGpsException
CompassGpsException
public void refresh()
throws CompassGpsException
refresh in interface CompassGpsDeviceCompassGpsExceptionpublic boolean isRunning()
CompassGpsDevice
isRunning in interface CompassGpsDevicetrue if theh device is runningpublic boolean isPerformingIndexOperation()
CompassGpsDevicetrue if the devide performs the index operaiton.
isPerformingIndexOperation in interface CompassGpsDevicepublic boolean shouldMirrorDataChanges()
CompassGpsDevicetrue if the device is required to perform mirror operation.
shouldMirrorDataChanges in interface CompassGpsDevice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||