|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.core.MMTable
org.mmbase.module.core.MMObjectBuilder
org.mmbase.module.builders.Netfiles
The Netfiles builder stores information on files that need to be transferred
to other servers.
It is used in the CACHE PAGE routine, that is used to cache SCAN pages.
Information in NetFiles is used by a number of VWMs (i.e. PageMaster and ImageMaster), which schedules the transfer
of the files.
Each NetFile entry contains the following information:
filename : the name of the filemmserver : the server that should handle the file transferservice : the main 'service' to be performed.
Together with subservice, this determines the VWM that handles the transfer,
i.e. 'pages/main' is handled by the PageMaster VWM.subservice : the subservice to perform. i.e. in PageMaster, 'main' determines mirror sites and
schedules tasks for mirroring (by creating netfile entries), while 'mirror'
performs the actual transfer to a mirrorfilesize : the size of the file. Not currently used, value is always -1ctime : probably the time of creation. Currently not used (for future development). ntime : probably the last change time. Currently not used (for future development).status : The state of the netfile entry. This can be a STATUS_REQUEST when a file waits to be transferred,
STATUS_ON_ITS_WAY when it is being transferred, STATUS_DONE when
the transfer was handled, STATUS_CHANGED when a change occured in a file, (indicating it may
become elligible for resending), and STATUS_CALC_PAGE when the page needs to be recalculated
(by SCAN).crc : Cyclic Redundancy Check. For use in checking file validity. Currently not used (for future development)
| Field Summary | |
static int |
STATUS_CALC_PAGE
Status for a netfile indicating a request to be recalculated |
static int |
STATUS_CHANGED
Status for a netfile indicating a change |
static int |
STATUS_DONE
Status for a netfile indicating its request has been handled |
static int |
STATUS_ON_ITS_WAY
Status for a netfile indicating its request is being handled |
static int |
STATUS_REQUEST
Status for a netfile indicating a service request |
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
AGE_PARAMETERS, broadcastChanges, database, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, fields, GUI_PARAMETERS, listCache, nodeCache, OBJ2TYPE_MAX_SIZE, oType, REPLACE_CACHE, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual |
| Fields inherited from class org.mmbase.module.core.MMTable |
mmb, tableName |
| Constructor Summary | |
Netfiles()
|
|
| Method Summary | |
java.lang.String |
getGUIIndicator(java.lang.String field,
MMObjectNode node)
What should a GUI display for this node/field combo. |
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. |
| Methods inherited from class org.mmbase.module.core.MMTable |
created, getFullTableName, getTableName, size |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int STATUS_REQUEST
public static final int STATUS_ON_ITS_WAY
public static final int STATUS_DONE
public static final int STATUS_CHANGED
public static final int STATUS_CALC_PAGE
| Constructor Detail |
public Netfiles()
| Method Detail |
public java.lang.String getGUIIndicator(java.lang.String field,
MMObjectNode node)
null.
getGUIIndicator in class MMObjectBuildernode - The node to displayfield - the name field of the field to display
String, null if not specified
public boolean nodeRemoteChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
nodeRemoteChanged in class MMObjectBuildernumber - Number of the changed node as a Stringbuilder - type of the changed nodectype - command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=newmachine - Name of the machine that changed the node.
true if maintenance was performed, false (the default) otherwise
public boolean nodeLocalChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
nodeLocalChanged in class MMObjectBuildernumber - Number of the changed node as a Stringbuilder - type of the changed nodectype - command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=newmachine - Name of the machine that changed the node.
true if maintenance was performed, false (the default) otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||