|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.mmbase.module.core.MMTable
|
+--org.mmbase.module.core.MMObjectBuilder
|
+--org.mmbase.module.builders.Email
| Field Summary | |
static int |
STATE_DELIVERED
|
static int |
STATE_FAILED
|
static int |
STATE_QUEUED
|
static int |
STATE_SPAMGARDE
|
static int |
STATE_UNKNOWN
|
static int |
STATE_WAITING
|
static int |
TYPE_ONESHOT
|
static int |
TYPE_ONESHOTKEEP
|
static int |
TYPE_REPEATMAIL
|
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
broadcastChanges, className, database, debug, description, descriptions, fields, NODE_MAX_SIZE, nodeCache, obj2type, OBJ2TYPE_MAX_SIZE, oType, replaceCache, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual |
| Fields inherited from class org.mmbase.module.core.MMTable |
mmb, tableName |
| Constructor Summary | |
Email()
|
|
| Method Summary | |
void |
checkMailNode(MMObjectNode node)
check the message object |
void |
checkOneShotKeepMail(MMObjectNode node)
check the message object, now if state is 1 (oneshot) |
void |
checkOneShotMail(MMObjectNode node)
check the message object, now if state is 1 (oneshot) it mails and removed itself from the cloud when done |
void |
checkRepeatMail(MMObjectNode node)
check the message object, now if state is 1 (oneshot) it mails and removed itself from the cloud when done |
java.util.Vector |
getList(scanpage sp,
StringTagger tagger,
java.util.StringTokenizer tok)
some list commands for the email admin tool |
int |
getMaxNumberOfTasks()
return the maximum number of tasks we queue in memory |
int |
getMaxQueuedTime()
return the max time of queued messages |
java.util.Vector |
getMemTasks()
enum the tasks in memory for the admin tool |
int |
getNumberOfQueued()
return the number of queued messages |
int |
getNumberOfTasks()
return the number of tasks |
java.lang.String |
getPage(java.lang.String url)
getPage, using the scanparser (remember this is a hack to be replaced by a new version soon). |
int |
getQueueProbeTime()
return the time interval we check the database for queued messages |
boolean |
init()
init |
int |
insert(java.lang.String owner,
MMObjectNode node)
insert new email object |
boolean |
performTask(MMObjectNode node)
performTask, called by the email probe if a email object needs to be handled (mostly because its mail time has passed). |
java.lang.String |
replace(scanpage sp,
java.util.StringTokenizer tok)
some stat calls used by the email admin tool |
int |
sendMailNode(MMObjectNode node)
|
| Methods inherited from class org.mmbase.module.core.MMTable |
size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int STATE_UNKNOWN
public static final int STATE_WAITING
public static final int STATE_DELIVERED
public static final int STATE_FAILED
public static final int STATE_SPAMGARDE
public static final int STATE_QUEUED
public static final int TYPE_ONESHOT
public static final int TYPE_REPEATMAIL
public static final int TYPE_ONESHOTKEEP
| Constructor Detail |
public Email()
| Method Detail |
public boolean init()
init in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuilderMMObjectBuilder.create()
public int insert(java.lang.String owner,
MMObjectNode node)
insert in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuilderowner - The administrator creating the nodenode - The object to insert. The object need be of the same type as the current builder.int value which is the new object's unique number, -1 if the insert failed.public void checkOneShotMail(MMObjectNode node)
public void checkOneShotKeepMail(MMObjectNode node)
public void checkRepeatMail(MMObjectNode node)
public int sendMailNode(MMObjectNode node)
public void checkMailNode(MMObjectNode node)
public java.lang.String getPage(java.lang.String url)
public boolean performTask(MMObjectNode node)
public java.lang.String replace(scanpage sp,
java.util.StringTokenizer tok)
replace in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuildersp - The scanpage (containing http and user info) that calls the functiontok - a list of strings that describe the (sub)command to executeString
public java.util.Vector getList(scanpage sp,
StringTagger tagger,
java.util.StringTokenizer tok)
getList in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuildersp - The scanpage (containing http and user info) that calls the functiontagger - a Hashtable of parameters (name-value pairs) for the commandtok - a list of strings that describe the (sub)command to executeVector containing the result values as a Stringpublic java.util.Vector getMemTasks()
public int getNumberOfQueued()
public int getMaxQueuedTime()
public int getQueueProbeTime()
public int getNumberOfTasks()
public int getMaxNumberOfTasks()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||