|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.portal.HouseKeeper
public class HouseKeeper
The House Keeper is a messaging object that periodically wakes itself up to look for routine maintenance tasks requiring attention.
| Field Summary | |
|---|---|
static Integer |
DEFAULT_TIMEOUT
Default timeout = 5 mins |
static String |
QUEUE_ID
House Keeping queue |
| Constructor Summary | |
|---|---|
HouseKeeper()
Constructor required by ServiceLoader. |
|
| Method Summary | |
|---|---|
void |
confirmMessage(String actionId)
Confirm and remove a message/action |
String |
getId()
Return the ID string for this listener |
Map<String,Map<String,String>> |
getQueueStats()
Get the latest statistics on message queues. |
List<UserAction> |
getUserMessages()
Get the messages to display for the user |
void |
init(JsonSimpleConfig config)
Initialization method |
void |
onMessage(javax.jms.Message message)
Callback function for incoming messages sent directly to housekeeping. |
void |
run()
Start thread running |
void |
setPriority(int newPriority)
Sets the priority level for the thread. |
void |
start()
Start the queue |
void |
stop()
Stop the House Keeper. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String QUEUE_ID
public static final Integer DEFAULT_TIMEOUT
| Constructor Detail |
|---|
public HouseKeeper()
| Method Detail |
|---|
public void run()
run in interface Runnable
public void init(JsonSimpleConfig config)
throws Exception
init in interface GenericListenerconfig - Configuration to use
Exception - for any failurepublic String getId()
getId in interface GenericListener
public void start()
throws Exception
start in interface GenericListenerException - if an error occurred starting the JMS connections
public void stop()
throws Exception
stop in interface GenericListenerExceptionpublic void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenermessage - The incoming messagepublic List<UserAction> getUserMessages()
public void confirmMessage(String actionId)
throws Exception
actionId - The ID of the action to remove
Exceptionpublic void setPriority(int newPriority)
setPriority in interface GenericListenernewPriority - The priority level to set the thread atpublic Map<String,Map<String,String>> getQueueStats()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||