public class Vwms extends MMObjectBuilder implements MMBaseObserver
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_ACTIVE
Status value for a VWM that it is active
|
static int |
STATUS_INACTIVE
Status value for a VWM that it is inactive
|
static int |
STATUS_REFRESH
Status value for a VWM that it is being refreshed (?)
|
(package private) Hashtable<String,VwmInterface> |
vwm_cache
Cache of VWMs, by name.
|
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 |
|---|
Vwms() |
| Modifier and Type | Method and Description |
|---|---|
String |
getGUIIndicator(String field,
MMObjectNode node)
Returns gui information for a field.
|
VwmInterface |
getVwm(String vwmname)
Retrieve a currently active vwm by name.
|
boolean |
init()
Initializes the vwms builder.
|
boolean |
nodeLocalChanged(String machine,
String number,
String builder,
String ctype)
Passes a local change of a vwms node to the appropriate (active) vwm.
|
boolean |
nodeRemoteChanged(String machine,
String number,
String builder,
String ctype)
Passes a remote change of a vwms node to the appropriate (active) vwm.
|
boolean |
putTask(String vwmname,
MMObjectNode node)
Passes a task to a vwm.
|
boolean |
sendMail(String who,
String subject,
String msg)
Send mail, using this builder's email settings.
|
boolean |
sendMail(String who,
String to,
String subject,
String msg)
Send mail, using this builder's email settings.
|
void |
startVwms()
Starts all vwms whose 'entries are related to the current server (entry in mmservers),
and that are marked as 'active'.
|
void |
startVwmsByField()
Deprecated.
Unused. Use startVwms() instead.
|
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, 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, notify, notify, preCommit, 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_INACTIVE
public static final int STATUS_ACTIVE
public static final int STATUS_REFRESH
Hashtable<String,VwmInterface> vwm_cache
public boolean init()
sendMail(java.lang.String, java.lang.String, java.lang.String) method.init in class MMObjectBuilderMMObjectBuilder.create()public 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 specifiedpublic void startVwmsByField()
public void startVwms()
public boolean putTask(String vwmname, MMObjectNode node)
vwmname - the name of the vwm to pass the tasknode - the node to apss as a tasktrue if the task was passed, false if the vwm did not exist.public boolean sendMail(String who, String subject, String msg)
who - email address (?) of the sendersubject - subject of the messagemsg - the message itselftrue if the mail was send, false otherwisepublic boolean sendMail(String who, String to, String subject, String msg)
who - email address (?) of the senderto - email address of the receiversubject - subject of the messagemsg - the message itselftrue if the mail was send, false otherwisepublic VwmInterface getVwm(String vwmname)
vwmname - the name of the vwm to retrievepublic boolean nodeRemoteChanged(String machine, String number, String builder, String ctype)
nodeRemoteChanged in interface MMBaseObservernodeRemoteChanged in class MMObjectBuildermachine - Name of the machine that changed the node.number - Number of the changed node as a Stringbuilder - type of the changed nodectype - command type, not very well documentedtruepublic boolean nodeLocalChanged(String machine, String number, String builder, String ctype)
nodeLocalChanged in interface MMBaseObservernodeLocalChanged in class MMObjectBuildermachine - Name of the machine that changed the node.number - Number of the changed node as a Stringbuilder - type of the changed nodectype - command type, not very well documentedtrueMMBase 1.9-SNAPSHOT - ${javadoctimestamp}