|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sandev.basics.DataManager.DataManagerNodeDecl
org.sandev.basics.DataManager.DataManagerNodeBase
org.sandev.basics.DataManager.DataManagerNode
Implementation of the DataManagerNode
| Field Summary | |
protected Converter |
converter
Our structure recovery object instance |
protected DataManagerInfo |
dminfo
The DataManagerInfo instance we are using. |
protected Persister |
persister
Our worker object instance |
protected StringPersistConverter |
strPerstConv
Our StringPersistConverter instance for field translation |
protected UniqueIDManager |
uidmgr
The uniqueID management we are using |
| Fields inherited from class org.sandev.basics.DataManager.DataManagerNodeDecl |
maxQueryReturn, maxQueryReturnSizeKb, persisterDataSource, updateTimeBatchOverride |
| Constructor Summary | |
DataManagerNode()
|
|
| Method Summary | |
Converter |
getConverter()
accessor for converter |
java.lang.String |
getConverterClass()
Return the classname of the Converter we are using. |
java.lang.String |
getDataSource()
Return the name of the data source for the Persister to use. |
java.lang.String |
getGeneratorInfo()
Return a summary of the build settings in effect when persistency was generated. |
java.lang.String |
getImportExportSource()
Return the name of the import export source. |
SandPersistMessage |
getInstance(java.lang.String classname,
long id,
AuthUser user)
Call through to Persister implementation. |
Persister |
getPersister()
accessor for persister |
java.lang.String |
getPersisterClass()
Return the classname of the Persister we are using. |
StringPersistConverter |
getStrPerstConv()
accessor for strPerstConv |
java.lang.String |
getStrPerstConvClass()
Return the classname of the StringPersistConverter we are using. |
UniqueIDManager |
getUniqueIDManager()
accessor for uidmgr |
java.lang.String |
getUniqueIDManagerClass()
Return the classname of the UniqueIDManager we are using. |
protected void |
initPersister()
Init our Persister instance, or throw if it cannot be initialized. |
protected void |
initRetry(int seconds,
int tries)
Retry the Persister initialization until it works, or throw. |
protected Converter |
loadConverter(java.lang.String convClassName)
Get an instance of the specified Converter class to use. |
protected void |
loadDataManagerInfo()
Load the appropriate DataManagerInfo for our deployment. |
protected Persister |
loadPersister(java.lang.String pclassname)
Get an instance of the specified persister class to use. |
protected StringPersistConverter |
loadStrPerstConv(java.lang.String convClassName)
Get an instance of the specified StringPersistConverter class to use. |
protected UniqueIDManager |
loadUniqueIDManager(java.lang.String mgrclassname)
Get an instance of the specified persister class to use. |
protected SandMessage |
onReceive(SandMessage msg)
Process the incoming query or update. |
protected void |
onStartup()
Load our Persister and check everything is ready to roll. |
protected void |
retryPersisterInit(int seconds,
int attempts)
Retry initializing our Persister for the given number of tries waiting the given number of seconds between tries. |
void |
setConverter(Converter c)
mutator for converter |
void |
setPersister(Persister p)
mutator for persister |
void |
setStrPerstConv(StringPersistConverter spc)
mutator for strPerstConv |
void |
setUniqueIDManager(UniqueIDManager mgr)
mutator for uidmgr |
static void |
verifyRecordStatus(SandQueryMessage msg)
If recordStatus was not specified, then add a positive match for recordStatus ACTIVE. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Persister persister
protected UniqueIDManager uidmgr
protected Converter converter
protected StringPersistConverter strPerstConv
protected DataManagerInfo dminfo
DataManagerInfo instance we are using. This is loaded
once during startup.
| Constructor Detail |
public DataManagerNode()
| Method Detail |
public Persister getPersister()
public void setPersister(Persister p)
public UniqueIDManager getUniqueIDManager()
public void setUniqueIDManager(UniqueIDManager mgr)
public Converter getConverter()
public void setConverter(Converter c)
public StringPersistConverter getStrPerstConv()
public void setStrPerstConv(StringPersistConverter spc)
public java.lang.String getGeneratorInfo()
public java.lang.String getPersisterClass()
public java.lang.String getDataSource()
public java.lang.String getUniqueIDManagerClass()
public java.lang.String getConverterClass()
public java.lang.String getStrPerstConvClass()
public java.lang.String getImportExportSource()
protected void loadDataManagerInfo()
throws SandException
SandException
protected void onStartup()
throws SandException
onStartup in class DataManagerNodeBaseSandException
protected SandMessage onReceive(SandMessage msg)
throws SandException
onReceive in class DataManagerNodeBaseSandException
protected Persister loadPersister(java.lang.String pclassname)
throws PersisterException
PersisterExceptionprotected UniqueIDManager loadUniqueIDManager(java.lang.String mgrclassname)
protected Converter loadConverter(java.lang.String convClassName)
protected StringPersistConverter loadStrPerstConv(java.lang.String convClassName)
protected void initPersister()
throws SandException
SandException
protected void retryPersisterInit(int seconds,
int attempts)
throws SandException
SandException
protected void initRetry(int seconds,
int tries)
InitRetryThread
for details.
public static void verifyRecordStatus(SandQueryMessage msg)
An application may choose to show archived data, in which case they could choose to add a negative match for recordStatus DELETED, in order to include ARCHIVED information. Since the point of archiving is to be able to move data offline, this may not return any more listings. However an application may choose to move only some of their archived information offline, retaining a buffer of archived information online as an indication that more records exist.
public SandPersistMessage getInstance(java.lang.String classname,
long id,
AuthUser user)
throws SandException
getInstance in interface IDLookupSandException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||