|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.mmbase.module.core.MMTable
|
+--org.mmbase.module.core.MMObjectBuilder
|
+--org.mmbase.module.builders.Vwms
Virtual WebMasterS (VWMS) are agents within MMBase.
To be able to start a VWMS the following things have to be done:
- Create a VWMS that does the work
- Start the VWMS in the VWMS-Builder.
- Make a relation from the Vwm object to a MMserver.
- start the VWMS-Builder if it isn't already running.
In the Vwms builder you have to insert the following information:
Name: name of the Vwm
Machine: machine on which the VwmM is running (wanted_cpu)
Maintenance_Time: This is the interval time in which the Vwm is invoked
State: inactive means Vwm is off. active means Vwm is on.
Description: just a description
ClassName: the classname of the actual VWM that is performing the task.
Note that currently, vwms are only started during startup.
| Field Summary | |
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 (?) |
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
broadcastChanges, className, database, debug, description, descriptions, fields, NODE_MAX_SIZE, nodeCache, obj2type, OBJ2TYPE_MAX_SIZE, oType, replaceCache, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual |
| Fields inherited from class org.mmbase.module.core.MMTable |
mmb, tableName |
| Constructor Summary | |
Vwms()
|
|
| Method Summary | |
java.lang.String |
getGUIIndicator(java.lang.String field,
MMObjectNode node)
Returns gui information for a field. |
VwmInterface |
getVwm(java.lang.String vwmname)
Retrieve a currently active vwm by name. |
boolean |
init()
Initializes the vwms builder. |
boolean |
nodeLocalChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
Passes a local change of a vwms node to the appropriate (active) vwm. |
boolean |
nodeRemoteChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
Passes a remote change of a vwms node to the appropriate (active) vwm. |
boolean |
putTask(java.lang.String vwmname,
MMObjectNode node)
Passes a task to a vwm. |
boolean |
sendMail(java.lang.String who,
java.lang.String subject,
java.lang.String msg)
Send mail, using this builder's email settings. |
boolean |
sendMail(java.lang.String who,
java.lang.String to,
java.lang.String subject,
java.lang.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. |
| Methods inherited from class org.mmbase.module.core.MMTable |
size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int STATUS_INACTIVE
public static final int STATUS_ACTIVE
public static final int STATUS_REFRESH
| Constructor Detail |
public Vwms()
| Method Detail |
public boolean init()
sendMail(java.lang.String, java.lang.String, java.lang.String) method.init in class MMObjectBuilder
public java.lang.String getGUIIndicator(java.lang.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(java.lang.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(java.lang.String who,
java.lang.String subject,
java.lang.String msg)
who - email address (?) of the sendersubject - subject of the messagemsg - the message itselftrue if the mail was send, false otherwise
public boolean sendMail(java.lang.String who,
java.lang.String to,
java.lang.String subject,
java.lang.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(java.lang.String vwmname)
vwmname - the name of the vwm to retrieve
public boolean nodeRemoteChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.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 documentedtrue
public boolean nodeLocalChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.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 documentedtrue
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||