ehcache

net.sf.ehcache.management
Class ManagementServerLoader

java.lang.Object
  extended by net.sf.ehcache.management.ManagementServerLoader

public class ManagementServerLoader
extends Object

ManagementServerLoader is a facility class to access the rest management interface One would use it form EhCache or QuartzScheduler to start or stop a new rest management interface or to simply register a cache or a scheduler to an already started management interface. It uses internally a ResourceClassLoader to load classes from a rest agent jar.

Author:
Anthony Dahanne

Constructor Summary
ManagementServerLoader()
           
 
Method Summary
static void register(CacheManager cacheManager, ManagementRESTServiceConfiguration managementRESTServiceConfiguration)
          Register a cacheManager to management rest server.
static void unregister(String registeredMgmtSvrBind, CacheManager cacheManager)
          Unregister a cache manager from a management rest server If it is the last cache manager bound to this server, stops the server too.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagementServerLoader

public ManagementServerLoader()
Method Detail

register

public static void register(CacheManager cacheManager,
                            ManagementRESTServiceConfiguration managementRESTServiceConfiguration)
Register a cacheManager to management rest server. If the server does not exist, starts it.

Parameters:
cacheManager -
managementRESTServiceConfiguration -

unregister

public static void unregister(String registeredMgmtSvrBind,
                              CacheManager cacheManager)
Unregister a cache manager from a management rest server If it is the last cache manager bound to this server, stops the server too.

Parameters:
registeredMgmtSvrBind -
cacheManager -

ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.