public class Netfiles extends MMObjectBuilder
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)| Modifier and Type | Field and Description |
|---|---|
(package private) NetFileSrv |
netfilesrv
Reference to the NetFileServ builder
|
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
|
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_INDICATOR, GUI_PARAMETERS, guiFunction, infoFunction, internalVersion, nodeCache, oType, pluralNames, searchAge, singularNames, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, temporaryNodes, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunctionmaxNodesFromQuery, mmb, storageConnector, tableNamefunctions| Constructor and Description |
|---|
Netfiles() |
| Modifier and Type | Method and Description |
|---|---|
String |
getGUIIndicator(String field,
MMObjectNode node)
What should a GUI display for this node/field combo.
|
boolean |
nodeLocalChanged(String machine,
String number,
String builder,
String ctype)
Called when a local node is changed.
|
boolean |
nodeRemoteChanged(String machine,
String number,
String builder,
String ctype)
Called when a remote node is changed.
|
addEventListener, addField, addLocalObserver, addRemoteObserver, broadcastChanges, checkAddTmpField, clearBlobCache, commit, create, createAlias, createAlias, createIfNotExists, delete, equals, equals, executeFunction, executeFunction, fieldLocalChanged, getAncestors, getBlobCache, getClassName, getConfigFile, getConfigResource, getDataTypeCollector, getDBState, getDBType, getDefaultTeaser, getDefaultUrl, getDescendants, getDescription, getDescription, getDescriptions, getEmptyNode, getField, getFieldNames, getFields, getFields, getFunction, getFunctionParameters, getFunctions, getGUIIndicator, getGUIIndicator, getHTML, getInitParameter, getInitParameters, getInitParameters, getInternalVersion, getList, getLocaleGUIIndicator, getLocaleGUIIndicator, getMachineName, getMaintainer, getNewNode, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNodeFromCache, getNodeGUIIndicator, getNumber, getObjectType, getObjectValue, getParentBuilder, getPluralName, getPluralName, getPluralNames, getRelations_main, getSearchAge, getShort, getShortedByte, getShortedInputStream, getShortedText, getSingularName, getSingularName, getSingularNames, getSmartPath, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, hasField, hashCode, hashCode, hostname_function, init, insert, insert, isExtensionOf, isNodeCached, isNull, isVirtual, loadInitParameters, newFunctionInstance, notify, notify, preCommit, process, removeEventListener, removeField, removeLocalObserver, removeNode, removeRelations, removeRemoteObserver, removeSyncNodes, replace, safeCache, sendFieldChangeSignal, setDefaults, setDescription, setDescriptions, setFields, setInitParameter, setMaintainer, setPluralNames, setSearchAge, setSingularNames, setUniqueValue, setUniqueValue, setValue, setValue, setVersion, setXMLPath, shutdown, testValidData, toString, toString, update, updateFields, wrapcount, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, sizeaddFunction, createParameters, getFunction, getFunctions, getFunctionValuepublic 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
NetFileSrv netfilesrv
public String getGUIIndicator(String field, MMObjectNode node)
null.getGUIIndicator in class MMObjectBuildernode - The node to displayfield - the name field of the field to displayString, null if not specifiedpublic boolean nodeRemoteChanged(String machine, String number, String builder, 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) otherwisepublic boolean nodeLocalChanged(String machine, String number, String builder, 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) otherwiseMMBase 1.9-SNAPSHOT - ${javadoctimestamp}