com.pmease.quickbuild.entitymanager
Interface AlertManager

All Superinterfaces:
EntityManager<Alert>
All Known Implementing Classes:
DefaultAlertManager

public interface AlertManager
extends EntityManager<Alert>


Field Summary
static AlertManager instance
           
 
Method Summary
 void alert(Alert alert)
          Save the alert and notify those subscriber
 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 interface com.pmease.quickbuild.entitymanager.EntityManager
count, count, delete, get, getAll, getAll, load, save, search, searchIds
 

Field Detail

instance

static final AlertManager instance
Method Detail

save

void save(java.util.List<Alert> alerts)
Batch save alerts

Parameters:
alerts -

alert

void alert(Alert alert)
Save the alert and notify those subscriber

Parameters:
alert -

publish

void publish(NodeAlertEvent event)
Publish a node alert event to all notifiers. Additionally, it will store the alerts to the cache

Parameters:
event -

getLastNFromCache

java.util.List<Alert> getLastNFromCache(int n)
Returns last N (at most 4096) records from cache

Parameters:
n -
Returns:

start

void start()

stop

void stop()

maintain

void maintain()


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.