public class MMServers extends MMObjectBuilder implements MMBaseObserver, StateConstants
| Modifier and Type | Field and Description |
|---|---|
protected Function<Long> |
getUpTime
Function uptime
|
protected NodeSearchQuery |
query |
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, tableNamefunctionsACTIVE, ERROR, INACTIVE, UNKNOWN| Constructor and Description |
|---|
MMServers() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(MMObjectNode o1,
MMObjectNode o2)
MMServer object are field by field equals.
|
List<MMObjectNode> |
getActiveServers() |
long |
getIntervalTime() |
MMObjectNode |
getMMServerNode(String name) |
MMObjectNode |
getMMServerNode(String name,
String host) |
List<MMObjectNode> |
getMMServerNodes()
Returns all the nodes from the builder without loading it in the nodes cache of MMBase.
|
String |
getMMServerProperty(String mmserver,
String key) |
Object |
getValue(MMObjectNode node,
String field)
Provides additional functionality when obtaining field values.
|
boolean |
init()
Initializes this builder
The property 'mmb' needs to be set for the builder before this method can be called.
|
void |
setCheckService(String name) |
void |
shutdown()
clean all acquired resources, because system is shutting down
|
protected void |
start()
Starts the thread for the task scheduler
|
String |
toString(MMObjectNode n)
Implements for MMObjectNode
|
addEventListener, addField, addLocalObserver, addRemoteObserver, broadcastChanges, checkAddTmpField, clearBlobCache, commit, create, createAlias, createAlias, createIfNotExists, delete, 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, 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, getVersion, getWAP, getXMLPath, hasField, hashCode, hashCode, hostname_function, insert, insert, isExtensionOf, isNodeCached, isNull, isVirtual, loadInitParameters, newFunctionInstance, nodeLocalChanged, nodeRemoteChanged, 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, testValidData, toString, update, updateFields, wrapcount, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, sizeaddFunction, createParameters, getFunction, getFunctions, getFunctionValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitnodeLocalChanged, nodeRemoteChangedprotected NodeSearchQuery query
public boolean init()
MMObjectBuilderinit in class MMObjectBuilderMMObjectBuilder.create()protected void start()
public void shutdown()
MMObjectBuildershutdown in class MMObjectBuilderpublic Object getValue(MMObjectNode node, String field)
MMObjectBuilderMMObjectBuilder.executeFunction(org.mmbase.module.core.MMObjectNode, java.lang.String, java.util.List<?>) method to handle it.
Functions in fieldnames can be given in the format 'functionname(fieldname)'. An old format allows 'functionname_fieldname' instead,
though this only applies to the text functions 'short', 'html', and 'wap'.
Functions can be nested, i.e. 'html(shorted(body))'.
Derived builders should override this method only if they want to provide virtual fieldnames. To provide additonal functions,
call FunctionProvider.addFunction(org.mmbase.util.functions.Function<?>) instead. See also the source code for ExampleBuilder.getValue in class MMObjectBuildernode - the node whos efields are queriesfield - the fieldname that is requestedpublic List<MMObjectNode> getMMServerNodes() throws SearchQueryException
SearchQueryException - when something fails on database level.public void setCheckService(String name)
public MMObjectNode getMMServerNode(String name)
public MMObjectNode getMMServerNode(String name, String host)
public long getIntervalTime()
public boolean equals(MMObjectNode o1, MMObjectNode o2)
equals in class MMObjectBuilderpublic String toString(MMObjectNode n)
MMObjectBuildertoString in class MMObjectBuilderpublic List<MMObjectNode> getActiveServers()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}