org.nuxeo.ecm.core.storage.sql.reload
Class RepositoryReloader
java.lang.Object
org.nuxeo.ecm.core.storage.sql.reload.RepositoryReloader
- All Implemented Interfaces:
- EventListener
public class RepositoryReloader
- extends Object
- implements EventListener
- Author:
- Bogdan Stefanescu
RepositoryReloader
public RepositoryReloader()
aboutToHandleEvent
public boolean aboutToHandleEvent(Event event)
- Description copied from interface:
EventListener
- Notified about an event about to be processed.
Returns false to cancel the event.
- Specified by:
aboutToHandleEvent
in interface EventListener
- Parameters:
event
- the event
- Returns:
- false to cancel the event or true otherwise
handleEvent
public void handleEvent(Event event)
- Description copied from interface:
EventListener
- An event was received.
- Specified by:
handleEvent
in interface EventListener
getRepositories
public static List<Repository> getRepositories()
throws NamingException
- Throws:
NamingException
closeRepositories
public static void closeRepositories()
throws Exception
- Throws:
Exception
locateJBoss
public static MBeanServer locateJBoss()
flushJCAPool
public static void flushJCAPool()
throws Exception
- Throws:
Exception
reloadRepositories
public static void reloadRepositories()
throws Exception
- Reload core repositories.
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.