|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.functions.FunctionProvider
org.mmbase.module.core.MMTable
org.mmbase.module.core.MMObjectBuilder
org.mmbase.module.builders.NetFileSrv
public class NetFileSrv
The NetFileServ builder contains information on services available to NetFile objects.
It contains a list of possible service/subservice tasks. These tasks are then attached
to entries in the VWMs builder, so it is possible to search for a VWM to handle a
service/subservice request.
The fields of NetFileServ are:
service : 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 net netfile entries), while 'mirror'
performs the actual transfer to a mirroroptions : Currently unused (?)
| Field Summary | |
|---|---|
(package private) Hashtable<String,Object> |
service2bot
Cache of VWMS as they are related to a service. |
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
|---|
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, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunction |
| Fields inherited from class org.mmbase.module.core.MMTable |
|---|
maxNodesFromQuery, mmb, storageConnector, tableName |
| Fields inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
functions |
| Constructor Summary | |
|---|---|
NetFileSrv()
|
|
| Method Summary | |
|---|---|
boolean |
fileChange(String number,
String ctype)
Handles a change of a netfiles node. |
boolean |
fileChange(String service,
String subservice,
String filename)
Handles a service request on a file. |
Object |
getAttachedBot(String service,
String subservice)
Retrieve a vwm (a 'bot') for the service/subservice combination. |
String |
getGUIIndicator(MMObjectNode node)
What should a GUI display for this node. |
| Methods inherited from class org.mmbase.module.core.MMTable |
|---|
count, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, size |
| Methods inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
addFunction, createParameters, getFunction, getFunctions, getFunctionValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
Hashtable<String,Object> service2bot
| Constructor Detail |
|---|
public NetFileSrv()
| Method Detail |
|---|
public String getGUIIndicator(MMObjectNode node)
getGUIIndicator in class MMObjectBuildernode - The node to display
String
public boolean fileChange(String number,
String ctype)
PageMaster) is invoked.
This method is called from the Netfiles builder whenever a local or remote node change occurs.
number - 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 fileChange(String service,
String subservice,
String filename)
PageMaster) is invoked.
This method is called from the scancache module to handle page caching.
The VWM invoked is responsible for creating NetFile entries (if needed).
service - the service to be performedsubservice - the subservice to be performedfilename - the filename to service
true if maintenance was performed, false otherwise
public Object getAttachedBot(String service,
String subservice)
service - the service to search forsubservice - the subservice to search for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||