|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.functions.FunctionProvider
org.mmbase.module.core.MMTable
org.mmbase.module.core.MMObjectBuilder
org.mmbase.module.builders.MMServers
| Field Summary | |
protected Function |
getUpTime
Function uptime |
protected NodeSearchQuery |
query
|
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
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_PARAMETERS, guiFunction, infoFunction, internalVersion, nodeCache, oType, searchAge, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, temporaryNodes, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunction |
| Fields inherited from class org.mmbase.module.core.MMTable |
maxNodesFromQuery, mmb, storageConnector, tableName |
| Fields inherited from class org.mmbase.util.functions.FunctionProvider |
functions |
| Fields inherited from interface org.mmbase.datatypes.resources.StateConstants |
ACTIVE, ERROR, INACTIVE, UNKNOWN |
| Constructor Summary | |
MMServers()
|
|
| Method Summary | |
boolean |
equals(MMObjectNode o1,
MMObjectNode o2)
MMServer object are field by field equals. |
List |
getActiveServers()
|
long |
getIntervalTime()
|
MMObjectNode |
getMMServerNode(String name)
|
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 |
run()
run, checkup probe runs every intervaltime to set the state of the server (used in clusters) |
void |
setCheckService(String name)
|
protected void |
start()
Starts the thread for the task scheduler |
String |
toString(MMObjectNode n)
Implements for MMObjectNode |
| Methods inherited from class org.mmbase.module.core.MMTable |
count, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, size |
| Methods inherited from class org.mmbase.util.functions.FunctionProvider |
addFunction, createParameters, getFunction, getFunctions, getFunctionValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.module.core.MMBaseObserver |
nodeLocalChanged, nodeRemoteChanged |
| Field Detail |
protected Function getUpTime
protected NodeSearchQuery query
| Constructor Detail |
public MMServers()
| Method Detail |
public boolean init()
MMObjectBuilder
init in class MMObjectBuilderMMObjectBuilder.create()protected void start()
public 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 addiitonal 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 requested
public void run()
run in interface Runnablepublic void setCheckService(String name)
public String getMMServerProperty(String mmserver,
String key)
public MMObjectNode getMMServerNode(String name)
public long getIntervalTime()
public boolean equals(MMObjectNode o1,
MMObjectNode o2)
equals in class MMObjectBuilderpublic String toString(MMObjectNode n)
MMObjectBuilder
toString in class MMObjectBuilderpublic List getActiveServers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||