|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.kernel.DSpaceKernelManager
public final class DSpaceKernelManager
Allows the DSpace kernel to be accessed if desired.
| Constructor Summary | |
|---|---|
DSpaceKernelManager()
|
|
| Method Summary | |
|---|---|
static String |
checkName(String name)
Ensure that we have a name suitable for an mbean. |
static DSpaceKernel |
getDefaultKernel()
|
DSpaceKernel |
getKernel()
Get the kernel. |
DSpaceKernel |
getKernel(String name)
Get the kernel. |
static void |
registerMBean(String mBeanName,
DSpaceKernel kernel)
Register a new kernel MBean with the given name or fail |
static void |
setDefaultKernel(DSpaceKernel kernel)
|
static boolean |
unregisterMBean(String mBeanName)
Unregister an MBean if possible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DSpaceKernelManager()
| Method Detail |
|---|
public static DSpaceKernel getDefaultKernel()
public static void setDefaultKernel(DSpaceKernel kernel)
public DSpaceKernel getKernel()
IllegalStateException - if the kernel is not availablepublic DSpaceKernel getKernel(String name)
name - this is the name of this kernel instance. If you do
not know what this is then use null.
IllegalStateException - if the kernel is not available or not runningpublic static String checkName(String name)
name - the name for the kernel
public static void registerMBean(String mBeanName,
DSpaceKernel kernel)
mBeanName - the bean name to usekernel - the kernel bean to register
IllegalStateException - if the MBean cannot be registeredpublic static boolean unregisterMBean(String mBeanName)
mBeanName - the bean name to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||