|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.basics.DataManager.DataManagerNodeDecl
public class DataManagerNodeDecl
DataManager accepts incoming updates and queries, and responds with
the updated or requested information. It functions as a general
persistence and ad hoc data retrieval interface.
More specifically, the DataManager receives any synchronous inbound
SandMessage
but will return an error for anything it does not understand. It is
generally expected to understand any
SandUpdateMessage or
SandQueryMessage generated
from a persistent struct,
AggregateUpdate messages,
and (optionally)
DataImportExport
messages. The bulk of the processing (including structural verification
of the persistent store and initial data verification) is accomplished
through the configured Persister.
The DataManager node locally broadcasts updates. Most configurations
will subscribe a
CacheManager, which
in turn notifies any subscribers when their cached information has gone
out of date.
distributed databases, clustering, and failover:
The DataManager provides an interface between the application
messaging and the capabilities of the configured Persister.
If the Persister supports clustering and failover (either by itself
or by virtue of connecting to a database with these capabilities), then
those capabilities extend to the DataManager. Likewise if the Persister
supports distributed updates and queries, then the DataManager will
support distributed updates and queries.
An application is typically configured with one DataManager node instance, but can be configured with several provided this is supported by the underlying Persister and the application semantics.
inbound synchronous message calls:
SandMessage onReceive(SandMessage msg)outbound asynchronous message sends:
void send(SandUpdateMessage msg)| Field Summary | |
|---|---|
protected int |
maxQueryReturn
The maximum number of instances to return in response to a query. |
protected int |
maxQueryReturnSizeKb
The maximum size of the returned information (in kilobytes). |
protected java.lang.String |
persisterDataSource
The data source for our Persister to use. |
protected int |
updateTimeBatchOverride
Override the last update timestamp processing. |
| Constructor Summary | |
|---|---|
DataManagerNodeDecl()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int maxQueryReturn
protected int maxQueryReturnSizeKb
protected int updateTimeBatchOverride
enumerated constant values:
OFF("off") = 0ON("on") = 1protected java.lang.String persisterDataSource
The dataSource can hold any value required by the Persister to set up and/or connect to whatever kind of supporting database it is using. This can be a single identifier, or formatted text containing a source plus username/password information. The Persister calls back to the DataManager to retrieve this text, and then uses the value to set up for work.
| Constructor Detail |
|---|
public DataManagerNodeDecl()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||