BrightSide Workbench Full Report + Source Code
org.turro.mail.reader.MailCheck Class Reference
Inheritance diagram for org.turro.mail.reader.MailCheck:
Collaboration diagram for org.turro.mail.reader.MailCheck:

Public Member Functions

String getName ()
 
void run ()
 
String getDataLabel ()
 
- Public Member Functions inherited from org.turro.scheduler.motor.DefaultTask
boolean isSystem ()
 
boolean isDone ()
 
boolean isActive ()
 
void setActive (boolean active)
 
Constraints getConstraints ()
 
IConstructor getConstructor ()
 
String getData ()
 
void setData (String data)
 
String getDescription ()
 
void setDescription (String value)
 
Date getEndDate ()
 
void setEndDate (Date endDate)
 
String getImplementation ()
 
void setImplementation (String value)
 
Date getStartDate ()
 
void setStartDate (Date startDate)
 
void setLastExecuted (Date lastExecuted)
 
boolean shouldRun (Date now)
 
void doRun (Motor motor)
 
void stop ()
 
void readXML (Element root)
 
void writeXML (Element root)
 
- Public Member Functions inherited from org.turro.elephant.impl.abstracts.AbstractImplementation
 AbstractImplementation ()
 
void setElement (IElement element)
 
void setConstructor (IConstructor constructor)
 
void setConfiguration (Element configuration)
 
KeyValueMap getAttributes ()
 
Long getLongAttribute (String key)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.elephant.impl.abstracts.AbstractImplementation
IElement iel
 
IConstructor constructor
 
Element configuration
 
Map attributes
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file MailCheck.java.

Member Function Documentation

◆ getDataLabel()

String org.turro.mail.reader.MailCheck.getDataLabel ( )

Reimplemented from org.turro.scheduler.motor.DefaultTask.

Definition at line 51 of file MailCheck.java.

51  {
52  return null;
53  }

◆ getName()

String org.turro.mail.reader.MailCheck.getName ( )

Reimplemented from org.turro.scheduler.motor.DefaultTask.

Definition at line 31 of file MailCheck.java.

31  {
32  return "Mail reader";
33  }

◆ run()

void org.turro.mail.reader.MailCheck.run ( )

Reimplemented from org.turro.scheduler.motor.DefaultTask.

Definition at line 36 of file MailCheck.java.

36  {
37  ContextFactory.getImplementationNamesByType("IMailReader_").forEach((s) -> {
38  MailReader reader = (MailReader) ContextFactory.getImplementation(constructor, (String) s);
39  if(reader != null) {
40  Message[] messages = reader.getMessages();
41  if(messages != null) {
42  for(Message message : messages) {
43  MailReaders.processMessage(reader, message);
44  }
45  }
46  }
47  });
48  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: