com.googlecode.fascinator.portal.services
Interface HouseKeepingManager

All Superinterfaces:
EventListener, org.apache.tapestry5.ioc.services.RegistryShutdownListener
All Known Implementing Classes:
HouseKeepingManagerImpl

public interface HouseKeepingManager
extends org.apache.tapestry5.ioc.services.RegistryShutdownListener

Provides an interface for the Portal to access House Keeping.

Author:
Greg Pendlebury

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 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 interface org.apache.tapestry5.ioc.services.RegistryShutdownListener
registryDidShutdown
 

Method Detail

getUserMessages

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


confirmMessage

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

Parameters:
actionId - The ID of the action to remove
Throws:
Exception

sendMessage

void sendMessage(String message)
Send a message to HouseKeeping.


requestRestart

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


requestUrgentRestart

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


getQueueStats

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

Returns:
Map> of all queues and their statistics


Copyright © 2009-2011. All Rights Reserved.