org.mmbase.module
Class Stats
java.lang.Object
|
+--org.mmbase.module.Module
|
+--org.mmbase.module.ProcessorModule
|
+--org.mmbase.module.Stats
- All Implemented Interfaces:
- ProcessorInterface, StatisticsInterface
- public class Stats
- extends ProcessorModule
- implements StatisticsInterface
The module which provides access to a filesystem residing in
a database
- Author:
- Daniel Ockeloen
|
Constructor Summary |
Stats()
|
|
Method Summary |
void |
checkDirty()
|
boolean |
countSimpleEvent(java.lang.String eventname)
count simple events is a method that can only count how many times something
happend, but unlike other statistics nodes its very simple to use because
it autogenerates its nodes based an the name itself and caches this name for
speed. |
java.util.Vector |
doRange(java.util.StringTokenizer tok,
StringTagger tagger)
|
java.lang.String |
getAliasNumber(java.lang.String alias)
|
java.lang.String |
getCount(java.lang.String number)
|
java.util.Vector |
getList(scanpage sp,
StringTagger tagger,
java.lang.String value)
Generate a list of values from a command to the processor |
java.lang.String |
getModuleInfo()
provide some info on the module |
int |
getSliceNr(java.lang.String number)
|
void |
init()
Initializes the module. |
void |
maintainance()
maintainance call, will be called by the admin to perform managment
tasks. |
void |
NewStat(java.lang.String name,
java.lang.String description,
int timeslices,
int timeinterval,
int timeslice,
java.lang.String data,
int inc)
insert a new object, normally not used (only subtables are used) |
void |
onload()
|
boolean |
process(scanpage sp,
java.util.Hashtable cmds,
java.util.Hashtable vars)
Execute the commands provided in the form values |
java.lang.String |
replace(scanpage sp,
java.lang.String cmds)
Handle a $MOD command |
java.lang.String |
setAliasCount(java.lang.String alias,
int incr)
|
java.lang.String |
setCount(java.lang.String number,
int incr)
|
void |
shutdown()
|
void |
unload()
|
| Methods inherited from class org.mmbase.module.Module |
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, setClassName, setInitParameter, setMaintainer, setName, setVersion, startModule, startModules, state |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stats
public Stats()
init
public void init()
- Description copied from class:
Module
- Initializes the module.
Init can be overridden to read the environment variables it needs.
This method is called by Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
- Overrides:
init in class ProcessorModule
onload
public void onload()
- Overrides:
onload in class ProcessorModule
unload
public void unload()
- Overrides:
unload in class ProcessorModule
shutdown
public void shutdown()
- Overrides:
shutdown in class ProcessorModule
getList
public java.util.Vector getList(scanpage sp,
StringTagger tagger,
java.lang.String value)
throws ParseException
- Generate a list of values from a command to the processor
- Overrides:
getList in class ProcessorModule
- Following copied from class:
org.mmbase.module.ProcessorModule
- Parameters:
sp - the page contextparams - contains the attributes for the listcommand - the list command to execute.
doRange
public java.util.Vector doRange(java.util.StringTokenizer tok,
StringTagger tagger)
process
public boolean process(scanpage sp,
java.util.Hashtable cmds,
java.util.Hashtable vars)
- Execute the commands provided in the form values
- Overrides:
process in class ProcessorModule
replace
public java.lang.String replace(scanpage sp,
java.lang.String cmds)
- Handle a $MOD command
- Overrides:
replace in class ProcessorModule
getCount
public java.lang.String getCount(java.lang.String number)
- Specified by:
getCount in interface StatisticsInterface
getSliceNr
public int getSliceNr(java.lang.String number)
setAliasCount
public java.lang.String setAliasCount(java.lang.String alias,
int incr)
- Specified by:
setAliasCount in interface StatisticsInterface
getAliasNumber
public java.lang.String getAliasNumber(java.lang.String alias)
setCount
public java.lang.String setCount(java.lang.String number,
int incr)
- Specified by:
setCount in interface StatisticsInterface
getModuleInfo
public java.lang.String getModuleInfo()
- Description copied from class:
Module
- provide some info on the module
- Overrides:
getModuleInfo in class Module
checkDirty
public void checkDirty()
NewStat
public void NewStat(java.lang.String name,
java.lang.String description,
int timeslices,
int timeinterval,
int timeslice,
java.lang.String data,
int inc)
- insert a new object, normally not used (only subtables are used)
- Specified by:
NewStat in interface StatisticsInterface
maintainance
public void maintainance()
- maintainance call, will be called by the admin to perform managment
tasks. This can be used instead of its own thread.
- Overrides:
maintainance in class Module
countSimpleEvent
public boolean countSimpleEvent(java.lang.String eventname)
- count simple events is a method that can only count how many times something
happend, but unlike other statistics nodes its very simple to use because
it autogenerates its nodes based an the name itself and caches this name for
speed.
- Specified by:
countSimpleEvent in interface StatisticsInterface
MMBase 2001