|
||||||||
| 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.ImageMaster
A VWM that manages image 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 'images'. Available subservices are 'main' and 'mirror'. Requests for file copy are checked periodically. The result is one or more requests for a 'mirror' service, which then result in a file copy request, which is handled in a separate thread. Before copying, images are retrieved from Icache and converted to an 'asis' file (this is the file that actually gets copied).
| Fields inherited from class org.mmbase.module.builders.vwms.Vwm |
name, probe, sleeptime, Vwms, wvmnode |
| Constructor Summary | |
ImageMaster()
Constructor for ImageMaster |
|
| Method Summary | |
boolean |
doMainRequest(MMObjectNode filenode)
Handles a main subservice on an image. |
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.lang.String |
getProperty(java.lang.String key)
Retrieves a named property of a server. |
boolean |
handleMain(MMObjectNode filenode,
int status,
java.lang.String ctype)
Handles a images/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 an images/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 ImageMaster()
| Method Detail |
public boolean probeCall()
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 servicepublic java.lang.String getProperty(java.lang.String key)
machine - name of the serverkey - name of the property to retrieve
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||