org.ehcache.jcache.tck
Class TCKMBeanServerBuilder.RIMBeanServerDelegate

java.lang.Object
  extended by javax.management.MBeanServerDelegate
      extended by org.ehcache.jcache.tck.TCKMBeanServerBuilder.RIMBeanServerDelegate
All Implemented Interfaces:
MBeanServerDelegateMBean, NotificationBroadcaster, NotificationEmitter
Enclosing class:
TCKMBeanServerBuilder

public class TCKMBeanServerBuilder.RIMBeanServerDelegate
extends MBeanServerDelegate

A decorator around the MBeanServerDelegate which sets the mBeanServerId to the value of the org.jsr107.tck.management.agentId system property so that the TCK can precisely identify the correct MBeanServer when running tests.


Field Summary
 
Fields inherited from class javax.management.MBeanServerDelegate
DELEGATE_NAME
 
Constructor Summary
TCKMBeanServerBuilder.RIMBeanServerDelegate(MBeanServerDelegate delegate)
          Constructor
 
Method Summary
 void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 String getImplementationName()
           
 String getImplementationVendor()
           
 String getImplementationVersion()
           
 String getMBeanServerId()
           
 MBeanNotificationInfo[] getNotificationInfo()
           
 String getSpecificationName()
           
 String getSpecificationVendor()
           
 String getSpecificationVersion()
           
 void removeNotificationListener(NotificationListener listener)
           
 void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void sendNotification(Notification notification)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCKMBeanServerBuilder.RIMBeanServerDelegate

public TCKMBeanServerBuilder.RIMBeanServerDelegate(MBeanServerDelegate delegate)
Constructor

Parameters:
delegate - the provided delegate
Method Detail

getSpecificationName

public String getSpecificationName()
Specified by:
getSpecificationName in interface MBeanServerDelegateMBean
Overrides:
getSpecificationName in class MBeanServerDelegate

getSpecificationVersion

public String getSpecificationVersion()
Specified by:
getSpecificationVersion in interface MBeanServerDelegateMBean
Overrides:
getSpecificationVersion in class MBeanServerDelegate

getSpecificationVendor

public String getSpecificationVendor()
Specified by:
getSpecificationVendor in interface MBeanServerDelegateMBean
Overrides:
getSpecificationVendor in class MBeanServerDelegate

getImplementationName

public String getImplementationName()
Specified by:
getImplementationName in interface MBeanServerDelegateMBean
Overrides:
getImplementationName in class MBeanServerDelegate

getImplementationVersion

public String getImplementationVersion()
Specified by:
getImplementationVersion in interface MBeanServerDelegateMBean
Overrides:
getImplementationVersion in class MBeanServerDelegate

getImplementationVendor

public String getImplementationVendor()
Specified by:
getImplementationVendor in interface MBeanServerDelegateMBean
Overrides:
getImplementationVendor in class MBeanServerDelegate

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface NotificationBroadcaster
Overrides:
getNotificationInfo in class MBeanServerDelegate

addNotificationListener

public void addNotificationListener(NotificationListener listener,
                                    NotificationFilter filter,
                                    Object handback)
                             throws IllegalArgumentException
Specified by:
addNotificationListener in interface NotificationBroadcaster
Overrides:
addNotificationListener in class MBeanServerDelegate
Throws:
IllegalArgumentException

removeNotificationListener

public void removeNotificationListener(NotificationListener listener,
                                       NotificationFilter filter,
                                       Object handback)
                                throws ListenerNotFoundException
Specified by:
removeNotificationListener in interface NotificationEmitter
Overrides:
removeNotificationListener in class MBeanServerDelegate
Throws:
ListenerNotFoundException

removeNotificationListener

public void removeNotificationListener(NotificationListener listener)
                                throws ListenerNotFoundException
Specified by:
removeNotificationListener in interface NotificationBroadcaster
Overrides:
removeNotificationListener in class MBeanServerDelegate
Throws:
ListenerNotFoundException

sendNotification

public void sendNotification(Notification notification)
Overrides:
sendNotification in class MBeanServerDelegate

getMBeanServerId

public String getMBeanServerId()
Specified by:
getMBeanServerId in interface MBeanServerDelegateMBean
Overrides:
getMBeanServerId in class MBeanServerDelegate


Copyright © 2014 Terracotta. All Rights Reserved.