|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CompassGpsDevice
A Compass Gps Device is responsible for interacting with a data source and reflecting it in a compass index. A data source can be a file system, or a database through the use of ORM tool (like hibernate).
A device should be able to provide the ability to index the data source, which usually means iterating through the device data and indexing it. It might also provide "real time" monitoring of changes in the device, and applying them to the index as well.
A CompassGpsDevice can not operate as a standalone, and must be a part of a
CompassGps instance (even if we have only one
device), since the device requires the Compass and the Batch Compass
instances in order to apply the changes to the index.
The device has a name associated with it, and the name must be unique among all the devices within a single CompassGps instance.
| Method Summary | |
|---|---|
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 |
isPerformingIndexOperation()
Retuns true if the devide performs the index operaiton. |
boolean |
isRunning()
Returns if the device is running. |
void |
refresh()
Refresh the given device. |
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. |
| Method Detail |
|---|
String getName()
void setName(String name)
void injectGps(CompassGps compassGps)
CompassGps getGps()
void start()
throws CompassGpsException
CompassGpsException
void stop()
throws CompassGpsException
CompassGpsException
void refresh()
throws CompassGpsException
CompassGpsExceptionboolean isRunning()
true if theh device is running
void index(IndexPlan indexPlan)
throws CompassGpsException,
IllegalStateException
CompassGpsException
IllegalStateExceptionboolean isPerformingIndexOperation()
true if the devide performs the index operaiton.
boolean shouldMirrorDataChanges()
true if the device is required to perform mirror operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||