|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.mmbase.module.builders.vwms.Vwm
|
+--org.mmbase.module.builders.vwms.PageMaster
A VWM that manages the files by scheduling them to be send to one or more mirror sites.
Requests for scheduling is done in the netfile builder.
This VWM handles those netfile requests whose service is 'pages'. Available subservices are 'main' and 'mirror'.
Requests for file copy are checked periodically.
This results in one or more requests for a 'mirror' service,
which then result in a file copy request, which is handled in a separate thread.
This VWM also has methods for recalculating pages and handling page changes (which in turn result in
a request for file copy.)
Entry point for these requests are the FileChange methods from the VwmServiceInterface.
| Fields inherited from class org.mmbase.module.builders.vwms.Vwm |
name, probe, sleeptime, Vwms, wvmnode |
| Constructor Summary | |
PageMaster()
Constructor for the PageMaster VWM. |
|
| Method Summary | |
void |
calcPage(java.lang.String url)
Recalculate a page. |
boolean |
doMainRequest(MMObjectNode filenode)
Handles a main subservice on a page. |
boolean |
fileChange(java.lang.String number,
java.lang.String ctype)
Handles a service-request on a file, registered in the netfiles builder. |
boolean |
fileChange(java.lang.String service,
java.lang.String subservice,
java.lang.String filename)
Schedules a service-request on a file. |
java.util.Vector |
getMirrorNodes(java.lang.String service)
Retrieves a list of Mirror Servers. |
java.lang.String |
getProperty(java.lang.String machine,
java.lang.String key)
Retrieves a named property of a server. |
boolean |
handleMain(MMObjectNode filenode,
int status,
java.lang.String ctype)
Handles a pages/main service request. |
void |
handleMainCheck(java.lang.String service,
java.lang.String subservice,
java.lang.String filename)
Schedules a netfile object to be send to its mirror sites. |
boolean |
handleMirror(MMObjectNode filenode,
int status,
java.lang.String ctype)
Handles a pages/mirror service request. |
boolean |
nodeChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
Called when a local or remote node is changed. |
boolean |
nodeLocalChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
Called when a local node is changed. |
boolean |
nodeRemoteChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
Called when a remote node is changed. |
boolean |
probeCall()
Performs general periodic maintenance. |
| Methods inherited from class org.mmbase.module.builders.vwms.Vwm |
addClient, claim, debug, failed, getName, getVwmNode, init, parseProperties, performed, performTask, putTask, releaseClient, rollback, run, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mmbase.module.builders.vwms.VwmInterface |
addClient, init, releaseClient |
| Constructor Detail |
public PageMaster()
| Method Detail |
public boolean probeCall()
probeCall in class Vwmtrue if maintenance was performed, false otherwise
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 Vwmmachine - Name of the machine that changed the node.number - Number of the changed node as a Stringbuilder - type of the changed nodectype - command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=newtrue
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 Vwmmachine - Name of the machine that changed the node.number - Number of the changed node as a Stringbuilder - type of the changed nodectype - command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=newtrue
public boolean nodeChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
machine - Name of the machine that changed the node.number - Number of the changed node as a Stringbuilder - type of the changed nodectype - command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=newtrue
public boolean fileChange(java.lang.String service,
java.lang.String subservice,
java.lang.String filename)
probeCall() method.fileChange in interface VwmServiceInterfaceservice - the service to be performedsubservice - the subservice to be performedfilename - the filename to servicetrue if maintenance was performed, false otherwise
public boolean fileChange(java.lang.String number,
java.lang.String ctype)
handleMirror(org.mmbase.module.core.MMObjectNode, int, java.lang.String)
or handleMain(org.mmbase.module.core.MMObjectNode, int, java.lang.String).fileChange in interface VwmServiceInterfacenumber - Number of the node in the netfiles buidler than contain service request information.ctype - the type of change on that node ("c" : node was changed)true
public boolean handleMirror(MMObjectNode filenode,
int status,
java.lang.String ctype)
node - the filenet node that contains the service requeststatus - the current status of the nodectype - the type of change on that node ("c" : node was changed)true
public boolean handleMain(MMObjectNode filenode,
int status,
java.lang.String ctype)
node - the filenet node that contains the service requeststatus - the current status of the nodectype - the type of change on that node ("c" : node was changed)truepublic boolean doMainRequest(MMObjectNode filenode)
filenode - the netfiles node with the original (main) request
public void handleMainCheck(java.lang.String service,
java.lang.String subservice,
java.lang.String filename)
service - the service to be performedsubservice - the subservice to be performedfilename - the filename to service
public java.lang.String getProperty(java.lang.String machine,
java.lang.String key)
machine - name of the serverkey - name of the property to retrievepublic void calcPage(java.lang.String url)
the - url of the page to cachepublic java.util.Vector getMirrorNodes(java.lang.String service)
service - preseumably the service to query for. Unused.Vector containing mmserver nodes that act as mirror server for this service
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||