|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pmease.quickbuild.entitymanager.impl.AbstractEntityManager<Alert>
com.pmease.quickbuild.entitymanager.impl.DefaultAlertManager
public class DefaultAlertManager
| Field Summary |
|---|
| Fields inherited from interface com.pmease.quickbuild.entitymanager.AlertManager |
|---|
instance |
| Method Summary | |
|---|---|
void |
alert(Alert alert)
Save the alert and notify those subscriber |
java.util.List<Alert> |
getLastN(int n)
|
java.util.List<Alert> |
getLastNFromCache(int n)
Returns last N (at most 4096) records from cache |
void |
maintain()
|
void |
publish(NodeAlertEvent event)
Publish a node alert event to all notifiers. |
void |
save(java.util.List<Alert> alerts)
Batch save alerts |
void |
start()
|
void |
stop()
|
| Methods inherited from class com.pmease.quickbuild.entitymanager.impl.AbstractEntityManager |
|---|
count, count, countEntities, delete, get, getAll, getAll, getSession, load, save, search, searchEntities, searchEntityIds, searchIds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.pmease.quickbuild.entitymanager.EntityManager |
|---|
count, count, delete, get, getAll, getAll, load, save, search, searchIds |
| Method Detail |
|---|
public void start()
start in interface AlertManagerpublic java.util.List<Alert> getLastN(int n)
public void stop()
stop in interface AlertManagerpublic void publish(NodeAlertEvent event)
AlertManager
publish in interface AlertManagerpublic void alert(Alert alert)
AlertManager
alert in interface AlertManagerpublic java.util.List<Alert> getLastNFromCache(int n)
AlertManager
getLastNFromCache in interface AlertManagerpublic void maintain()
maintain in interface AlertManagerpublic void save(java.util.List<Alert> alerts)
AlertManager
save in interface AlertManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||