com.googlecode.fascinator.portal.services.impl
Class HouseKeepingManagerImpl

java.lang.Object
  extended by com.googlecode.fascinator.portal.services.impl.HouseKeepingManagerImpl
All Implemented Interfaces:
HouseKeepingManager, EventListener, org.apache.tapestry5.ioc.services.RegistryShutdownListener

public class HouseKeepingManagerImpl
extends Object
implements HouseKeepingManager

Implements the House Keeping Manager interface, providing access to the housekeeping message queue and its outputs.

Author:
Greg Pendlebury

Constructor Summary
HouseKeepingManagerImpl()
          Basic constructor, run by Tapestry through injection.
 
Method Summary
 void confirmMessage(String actionId)
          Confirm and remove a message/action
 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 registryDidShutdown()
          Tapestry notification that server is shutting down
 void requestRestart()
          Request a low priority restart from HouseKeeping.
 void requestUrgentRestart()
          Request a high priority restart from HouseKeeping.
 void sendMessage(String message)
          Send a message to HouseKeeping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HouseKeepingManagerImpl

public HouseKeepingManagerImpl()
Basic constructor, run by Tapestry through injection.

Method Detail

registryDidShutdown

public void registryDidShutdown()
Tapestry notification that server is shutting down

Specified by:
registryDidShutdown in interface org.apache.tapestry5.ioc.services.RegistryShutdownListener

getUserMessages

public List<UserAction> getUserMessages()
Get the messages to display for the user

Specified by:
getUserMessages in interface HouseKeepingManager

confirmMessage

public void confirmMessage(String actionId)
                    throws Exception
Confirm and remove a message/action

Specified by:
confirmMessage in interface HouseKeepingManager
Parameters:
actionId - The ID of the action to remove
Throws:
Exception

sendMessage

public void sendMessage(String message)
                 throws MessagingException
Send a message to HouseKeeping.

Specified by:
sendMessage in interface HouseKeepingManager
Throws:
MessagingException

requestRestart

public void requestRestart()
                    throws MessagingException
Request a low priority restart from HouseKeeping.

Specified by:
requestRestart in interface HouseKeepingManager
Throws:
MessagingException

requestUrgentRestart

public void requestUrgentRestart()
                          throws MessagingException
Request a high priority restart from HouseKeeping. High priority will stop all user actions until the restart occurs.

Specified by:
requestUrgentRestart in interface HouseKeepingManager
Throws:
MessagingException

getQueueStats

public Map<String,Map<String,String>> getQueueStats()
Get the latest statistics on message queues.

Specified by:
getQueueStats in interface HouseKeepingManager
Returns:
Map> of all queues and their statistics


Copyright © 2009-2012. All Rights Reserved.