Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql.reload
Class RepositoryReloader

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.reload.RepositoryReloader
All Implemented Interfaces:
EventListener

public class RepositoryReloader
extends Object
implements EventListener

Author:
Bogdan Stefanescu

Constructor Summary
RepositoryReloader()
           
 
Method Summary
 boolean aboutToHandleEvent(Event event)
          Notified about an event about to be processed.
static void closeRepositories()
           
static void flushJCAPool()
           
static List<Repository> getRepositories()
           
 void handleEvent(Event event)
          An event was received.
static MBeanServer locateJBoss()
           
static void reloadRepositories()
          Reload core repositories.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryReloader

public RepositoryReloader()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.