|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.mmbase.module.Module
|
+--org.mmbase.module.ProcessorModule
|
+--org.mmbase.module.core.MMBase
The module which provides access to the MMBase database defined by the provided name/setup. It holds the overal object cloud made up of builders, objects and relations and all the needed tools to use them.
| Field Summary | |
java.lang.String |
baseName
Base name for the database to be accessed using this instance of MMBase. |
InsRel |
InsRel
Reference to the InsRel builder. |
MMBaseChangeInterface |
mmc
Builds a MultiCast Thread to receive and send changes from other MMBase Servers. |
java.util.Hashtable |
mmobjs
The table that contains all loaded builders. |
static java.lang.String |
multicasthost
Defines what 'channel' we are talking to when using multicast. |
static int |
multicastport
Determines on what port does this multicast talking between nodes take place. |
OAlias |
OAlias
Reference to the OALias builder. |
RelDef |
RelDef
Reference to the RelDef builder. |
TypeDef |
TypeDef
Reference to the TypeDef builder. |
TypeRel |
TypeRel
Reference to the TypeRel builder. |
| Constructor Summary | |
MMBase()
Constructor to create the MMBase root module. |
|
| Method Summary | |
boolean |
addLocalObserver(java.lang.String type,
MMBaseObserver obs)
Adds a local observer to a specified builder. |
boolean |
addRemoteObserver(java.lang.String type,
MMBaseObserver obs)
Adds a remote observer to a specified builder. |
MMObjectNode |
castNode(MMObjectNode node)
Deprecated. Not necessary in most cases, with the possible exception of lists obtained from InsRel. However, in the later case using this method is probably too costly. |
void |
checkUserLevel()
Checks and switches the user/grouplevel in which MMBase runs. |
void |
closeConnection(MultiConnection con,
java.sql.Statement stmt)
Safely close a database connection and/or a database statement. |
java.lang.String |
doGetAgeMarker(java.util.StringTokenizer tok)
Deprecated. SCAN related, should not be in this module. |
void |
doProbeRun()
Callback method, called from MMBaseProbe. |
java.lang.String |
getAuthType()
Retrieves the autorisation type. |
java.lang.Object |
getBaseModule(java.lang.String name)
Retrieves a (mmbase) module by name. |
java.lang.String |
getBaseName()
Retrieves the database base name |
ClusterBuilder |
getClusterBuilder()
Returns a reference to the cluster builder. |
MultiConnection |
getConnection()
Get a database connection that is multiplexed and checked. |
java.lang.String |
getCookieDomain()
Retrieves the cookiedomain (whatever that is) This value is set using the configuration file. |
MMJdbc2NodeInterface |
getDatabase()
Returns a reference to the database used. |
int |
getDBKey()
Retrieves an unique key to use for a new node's number. |
java.sql.Connection |
getDirectConnection()
Get a direct database connection. |
java.lang.String |
getDTDBase()
Retrieves the DTD base url. |
java.lang.String |
getHost()
Retrieves the host name or ip number This value is set using the configuration file. |
InsRel |
getInsRel()
Returns a reference to the InsRel builder. |
java.lang.String |
getLanguage()
Retrieves the current language. |
java.lang.String |
getMachineName()
Retrieves the machine name. |
MMBaseCop |
getMMBaseCop()
Retrieves the loaded security manager(MMBaseCop). |
MMObjectBuilder |
getMMObject(java.lang.String name)
Retrieves a specified builder |
java.util.Enumeration |
getMMObjects()
Retrieves the loaded builders. |
OAlias |
getOAlias()
Returns a reference to the OAlias builder. |
RelDef |
getRelDef()
Returns a reference to the RelDef builder. |
java.util.Hashtable |
getSearchHash(java.util.Vector se,
java.lang.String mapper)
Converts a vector containing nodes to a hashmap, using a specified (unique) integer field as the hash key. |
SendMailInterface |
getSendMail()
Retrieves a reference to the sendmail module. |
boolean |
getState()
Retrieves whether this mmbase module is running. |
TypeDef |
getTypeDef()
Returns a reference to the TypeDef builder. |
TypeRel |
getTypeRel()
Returns a reference to the TypeRel builder. |
java.lang.String |
getWhereList(java.util.Vector se,
java.lang.String mapper)
Converts a vector containing nodes to a comma seperated list of values, obtained from a specified integer field. |
void |
init()
Initializes the MMBase module. |
void |
maintainance()
Performs periodic maintenance. |
void |
onload()
Started when the module is loaded. |
void |
shutdown()
unused (?) |
void |
stop()
Unused. |
void |
unload()
unused (?) |
| Methods inherited from class org.mmbase.module.ProcessorModule |
cacheCheck, getList, getListBuilder, getNodeList, process, reload, replace, replace |
| Methods inherited from class org.mmbase.module.Module |
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, 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 |
| Field Detail |
public static java.lang.String multicasthost
public static int multicastport
public MMBaseChangeInterface mmc
public java.lang.String baseName
public TypeDef TypeDef
public RelDef RelDef
public OAlias OAlias
public InsRel InsRel
public TypeRel TypeRel
public java.util.Hashtable mmobjs
| Constructor Detail |
public MMBase()
| Method Detail |
public void init()
init in class ProcessorModulepublic void onload()
onload in class ProcessorModulepublic void unload()
unload in class ProcessorModulepublic void shutdown()
shutdown in class ProcessorModulepublic MMObjectBuilder getMMObject(java.lang.String name)
name - The name of the builder to retrieveMMObjectBuilder if found, null otherwisepublic MMBaseCop getMMBaseCop()
public java.util.Enumeration getMMObjects()
Enumeration listing the loaded builderspublic InsRel getInsRel()
InsRel builder if defined, null otherwisepublic RelDef getRelDef()
RelDef builder if defined, null otherwisepublic TypeDef getTypeDef()
TypeDef builder if defined, null otherwisepublic TypeRel getTypeRel()
TypeRel builder if defined, null otherwisepublic OAlias getOAlias()
OAlias builder if defined, null otherwisepublic ClusterBuilder getClusterBuilder()
ClusterBuilderpublic MultiConnection getConnection()
MultiConnection if the connection succeeded, null if it failed.
public void closeConnection(MultiConnection con,
java.sql.Statement stmt)
con - The connection to close. Can be null.stmt - The statement to close, prior to closing the connection. Can be null.public java.sql.Connection getDirectConnection()
public java.lang.String getBaseName()
Stringpublic void doProbeRun()
maintainance() call.public void maintainance()
doProbeRun().
The reference to the thread is cleared when it dies (scehduled every 10 minutes), prompting
the system to start a new thread.maintainance in class ModuleMMBaseProbe
public java.util.Hashtable getSearchHash(java.util.Vector se,
java.lang.String mapper)
se - The vector containing the nodesmapper - the name of the (integer) field that determines the hash key, i.e. "number"Hashtable
public java.lang.String getWhereList(java.util.Vector se,
java.lang.String mapper)
se - The vector containing the nodesmapper - the name of the (integer) field whose value to include in the listStringpublic SendMailInterface getSendMail()
SendMailInterface object if the module was loaded, null otherwise.public java.lang.String getMachineName()
Stringpublic java.lang.String getHost()
Stringpublic java.lang.String getCookieDomain()
String
public boolean addRemoteObserver(java.lang.String type,
MMBaseObserver obs)
true if adding the observer succeeded, false otherwise.
public boolean addLocalObserver(java.lang.String type,
MMBaseObserver obs)
true if adding the observer succeeded, false otherwise.public java.lang.String doGetAgeMarker(java.util.StringTokenizer tok)
public int getDBKey()
Sychronized so the same number cannot be dealt out to different nodes.
Does possibly not work well with multiple mmbase systems that work on the same database.int valuepublic java.lang.Object getBaseModule(java.lang.String name)
Object if it exists, null otherwisepublic void stop()
public java.lang.String getDTDBase()
Stringpublic MMJdbc2NodeInterface getDatabase()
MMJdbc2NodeInterface which holds the appropriate database classpublic MMObjectNode castNode(MMObjectNode node)
public java.lang.String getAuthType()
String identifying the typepublic java.lang.String getLanguage()
Stringpublic boolean getState()
true if the module has been initialized and all builders loaded, false otherwise.public void checkUserLevel()
private.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||