public class Vwmtasks extends MMObjectBuilder implements Runnable
| Modifier and Type | Field and Description |
|---|---|
(package private) Thread |
kicker
Thread in which the task scheduler runms
|
(package private) int |
lastchecked
Time (in seconds since 1/1/1970) that the builder last checked for new tasknodes to en handled
|
boolean |
replaceCache |
static int |
SLEEP_TIME
The interval (in seconds) between checks for new nodes by the task scheduler.
|
static int |
STATUS_CLAIMED
Status value for a task that is being performed
|
static int |
STATUS_DONE
Status value for a task that was succesfully performed
|
static int |
STATUS_ERROR
Status value for a task that failed to be performed
|
static int |
STATUS_REQUEST
Status value for a task that requests to be performed
|
static int |
STATUS_TIMEOUT
Status value for a task that timed out
|
(package private) Hashtable |
vwm_cache |
(package private) Vwms |
vwms
Reference to the VWMs builder
|
AGE_PARAMETERS, broadCastChanges, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, EVENT_TYPE_LOCAL, EVENT_TYPE_REMOTE, FIELD_NUMBER, FIELD_OBJECT_TYPE, FIELD_OWNER, fields, genericBlobCache, getFunctions, GUI_INDICATOR, GUI_PARAMETERS, guiFunction, infoFunction, internalVersion, nodeCache, oType, pluralNames, searchAge, singularNames, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, temporaryNodes, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunctionmaxNodesFromQuery, mmb, storageConnector, tableNamefunctions| Constructor and Description |
|---|
Vwmtasks() |
| Modifier and Type | Method and Description |
|---|---|
String |
getGUIIndicator(MMObjectNode node)
What should a GUI display for this node.
|
String |
getGUIIndicator(String field,
MMObjectNode node)
What should a GUI display for this node/field combo.
|
protected void |
getVwmTasks()
Task scheduling routine.
|
boolean |
init()
Initializes this builder
The property 'mmb' needs to be set for the builder before this method can be called.
|
MMObjectNode |
preCommit(MMObjectNode node)
This method is called just before an actual write to the database is performed.
|
void |
run()
VWM maintenance scheduler.
|
void |
start()
Starts the thread for the task scheduler
|
void |
stop()
Stops the thread for the task scheduler
Sets the kicker field to null, which causes the run method to terminate.
|
addEventListener, addField, addLocalObserver, addRemoteObserver, broadcastChanges, checkAddTmpField, clearBlobCache, commit, create, createAlias, createAlias, createIfNotExists, delete, equals, equals, executeFunction, executeFunction, fieldLocalChanged, getAncestors, getBlobCache, getClassName, getConfigFile, getConfigResource, getDataTypeCollector, getDBState, getDBType, getDefaultTeaser, getDefaultUrl, getDescendants, getDescription, getDescription, getDescriptions, getEmptyNode, getField, getFieldNames, getFields, getFields, getFunction, getFunctionParameters, getFunctions, getGUIIndicator, getHTML, getInitParameter, getInitParameters, getInitParameters, getInternalVersion, getList, getLocaleGUIIndicator, getLocaleGUIIndicator, getMachineName, getMaintainer, getNewNode, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNodeFromCache, getNodeGUIIndicator, getNumber, getObjectType, getObjectValue, getParentBuilder, getPluralName, getPluralName, getPluralNames, getRelations_main, getSearchAge, getShort, getShortedByte, getShortedInputStream, getShortedText, getSingularName, getSingularName, getSingularNames, getSmartPath, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, hasField, hashCode, hashCode, hostname_function, insert, insert, isExtensionOf, isNodeCached, isNull, isVirtual, loadInitParameters, newFunctionInstance, nodeLocalChanged, nodeRemoteChanged, notify, notify, process, removeEventListener, removeField, removeLocalObserver, removeNode, removeRelations, removeRemoteObserver, removeSyncNodes, replace, safeCache, sendFieldChangeSignal, setDefaults, setDescription, setDescriptions, setFields, setInitParameter, setMaintainer, setPluralNames, setSearchAge, setSingularNames, setUniqueValue, setUniqueValue, setValue, setValue, setVersion, setXMLPath, shutdown, testValidData, toString, toString, update, updateFields, wrapcount, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, sizeaddFunction, createParameters, getFunction, getFunctions, getFunctionValuepublic static final int STATUS_REQUEST
public static final int STATUS_CLAIMED
public static final int STATUS_DONE
public static final int STATUS_TIMEOUT
public static final int STATUS_ERROR
public static final int SLEEP_TIME
public boolean replaceCache
Thread kicker
Vwms vwms
Hashtable vwm_cache
int lastchecked
public boolean init()
MMObjectBuilderinit in class MMObjectBuilderMMObjectBuilder.create()public void start()
public void stop()
public void run()
getVwmTasks() method, after which the thread sleeps
for a number of seconds as set in SLEEP_TIME.public MMObjectNode preCommit(MMObjectNode node)
preCommit in class MMObjectBuildernode - The node to be committed.public String getGUIIndicator(MMObjectNode node)
getGUIIndicator in class MMObjectBuildernode - The node to displayStringpublic String getGUIIndicator(String field, MMObjectNode node)
getGUIIndicator in class MMObjectBuildernode - The node to displayfield - the name field of the field to displayString, null if not specifiedprotected void getVwmTasks()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}