org.norther.tammi.core.base
Interface MBeanDelegate

All Superinterfaces:
NotificationBroadcaster, NotificationEmitter
All Known Implementing Classes:
AbstractAuthenticatorFilter, AbstractChartGenerator, AbstractCommonFactory, AbstractCommonSecureFactory, AbstractExecutor, AbstractLogger, AbstractMediaContentKeyFilter, AbstractNumericConverter, AbstractPersisterFactory, AbstractRealm, AbstractReportEngine, AbstractRepositoryParser, AbstractSecureSocketFactory, AbstractSocketFactory, AbstractStreamConfigurator, AbstractTemplateEngine, AbstractThreadedLogger, Adaptee, Chapter, DefaultAccessController, DefaultBeanRepositoryClient, DefaultBeanRepositoryFilter, DefaultBranchFilter, DefaultBroker, DefaultCacheClient, DefaultCachedAuthFilter, DefaultCachedMediaProvider, DefaultCacheMonitor, DefaultCGIBinFilter, DefaultChannelConnector, DefaultChartFilter, DefaultClosingFilter, DefaultCOMObjectFactory, DefaultConfigurable, DefaultConfigurableConverter, DefaultConfigurableFactory, DefaultConfigurator, DefaultConnector, DefaultContainer, DefaultContainerFilter, DefaultContainerKeyFilter, DefaultContentFilter, DefaultContentKeyFilter, DefaultContentTypeMap, DefaultContextToolFilter, DefaultConverter, DefaultDateConverter, DefaultDirectExecutor, DefaultDomain, DefaultDOMBuilderFactory, DefaultEnumConverter, DefaultExecutable, DefaultExecutableConnector, DefaultFactory, DefaultFallbackMap, DefaultFilter, DefaultFinalizer, DefaultFlowFilter, DefaultFormFilter, DefaultForwardEngine, DefaultFreemarkerEngine, DefaultHibernateFactory, DefaultHostFilter, DefaultHttpBasicAuthFilter, DefaultHttpDigestAuthFilter, DefaultHttpFilter, DefaultHttpFormAuthFilter, DefaultHttpRelayFilter, DefaultHttpServiceAuthFilter, DefaultHttpSspiAuthFilter, DefaultIdentityConverter, DefaultInternetAddressConverter, DefaultIpMaskFilter, DefaultJasperReports, DefaultJFCFactory, DefaultJFreeCharts, DefaultJFreeReports, DefaultJndiRealm, DefaultJSPEngine, DefaultKeyCacheClient, DefaultKeyFilter, DefaultKeyStoreFactory, DefaultKeyStoreLoader, DefaultLayoutFilter, DefaultLibrary, DefaultLinkFilter, DefaultLobConverter, DefaultLobFactory, DefaultLocalConnector, DefaultLocaleConverter, DefaultLocaleFilter, DefaultLocationConverter, DefaultMailbot, DefaultMailbotFilter, DefaultMailer, DefaultMediaContentFilter, DefaultMediaContentKeyFilter, DefaultMediaProvider, DefaultMemoryRealm, DefaultMessageDigestFactory, DefaultMoneyConverter, DefaultMonitorFilter, DefaultMsisdnAuthFilter, DefaultMultiRepositoryClient, DefaultMultiRepositoryFilter, DefaultNamingContextFactory, DefaultNativeRealm, DefaultNumberConverter, DefaultObjectConverter, DefaultObjectFactory, DefaultObjectNameConverter, DefaultOJBFactory, DefaultPageFilter, DefaultPathFinder, DefaultPermissionConverter, DefaultPipe, DefaultPipeFilter, DefaultPool, DefaultPooledExecutor, DefaultPropertyConfigurator, DefaultRegistry, DefaultReportFilter, DefaultRepositoryClient, DefaultRepositoryFilter, DefaultRepositoryRealm, DefaultResourceFilter, DefaultResourceFinder, DefaultResourceMap, DefaultRMIConnector, DefaultSAXParserFactory, DefaultSchedulable, DefaultScheduler, DefaultScripter, DefaultSecureContainer, DefaultSecureContainerFilter, DefaultSecureContainerKeyFilter, DefaultSecuredFilter, DefaultSecureFilter, DefaultSecureKeyFilter, DefaultSecureServerChannelFactory, DefaultSecureServerSocketFactory, DefaultSecureSocketFactory, DefaultServerChannelFactory, DefaultServerSocketFactory, DefaultServiceFilter, DefaultServletConnector, DefaultServletEngine, DefaultServletMediaProvider, DefaultSessionFactory, DefaultSkinFilter, DefaultSocketConnector, DefaultSocketFactory, DefaultSSLCertAuthFilter, DefaultStartup, DefaultStartupContext, DefaultTaskFilter, DefaultTaskLoader, DefaultTCPConnector, DefaultTerminalFilter, DefaultThreadedExecutor, DefaultThreadFactory, DefaultTimeout, DefaultUploadFilter, DefaultVariableConverter, DefaultVelocityEngine, DefaultXMLConfigurator, ElementVariableConverter, JDK4Logger, Log4JLogger, Referable

public interface MBeanDelegate
extends NotificationEmitter

An interface to referable MBean adapter delegates.

Version:
$Id: MBeanDelegate.java,v 1.22 2009/09/28 15:08:42 cvsimp Exp $
Author:
Ilkka Priha

Method Summary
 Broker getBroker()
          Gets the referent of the broker MBean.
 Domain getDomain()
          Gets the referent of the domain MBean.
 Factory getFactory()
          Gets the referent of the factory MBean.
 Loader getLoader()
          Gets the referent of the loader MBean.
 Log getLog()
          Gets an anonymous log.
 Log getLog(Object object)
          Gets an object specific log.
 MBeanReference<?> getMBean()
          Gets a reference to the adapter MBean.
 long getRegistrationTime()
          Gets the registration time.
 long getSequenceNumber()
          Gets the notification sequence number.
 boolean hasListeners()
          Checks whether there are registered notification listeners.
 void sendNotification(Notification notif)
          Sends the specified notification.
 void sendNotification(String message)
          Sends a generic notification.
 void sendNotification(String message, Object data)
          Sends a generic notification with data.
 void sendNotification(String message, String name, String type, Object... values)
          Sends a modification notification.
 void unregister()
          Unregisters this MBean if it is still registered.
 
Methods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Method Detail

getMBean

MBeanReference<?> getMBean()
Gets a reference to the adapter MBean.

Returns:
a reference to the adapter MBean.

getLoader

Loader getLoader()
Gets the referent of the loader MBean.

Returns:
the loader MBean referent.

getDomain

Domain getDomain()
Gets the referent of the domain MBean.

Returns:
the domain MBean referent.

getBroker

Broker getBroker()
Gets the referent of the broker MBean.

Returns:
the broker MBean referent.

getFactory

Factory getFactory()
Gets the referent of the factory MBean.

Returns:
the factory MBean referent.

getLog

Log getLog(Object object)
Gets an object specific log.

Parameters:
object - the object.
Returns:
an object specific log.

getLog

Log getLog()
Gets an anonymous log.

Returns:
an anonymous log.

getRegistrationTime

long getRegistrationTime()
Gets the registration time.

Returns:
the registration time in msecs.

unregister

void unregister()
Unregisters this MBean if it is still registered.


getSequenceNumber

long getSequenceNumber()
Gets the notification sequence number.

Returns:
the sequence number.

sendNotification

void sendNotification(Notification notif)
Sends the specified notification.

Parameters:
notif - the notification to send.

sendNotification

void sendNotification(String message)
Sends a generic notification.

Parameters:
message - the notification message.

sendNotification

void sendNotification(String message,
                      Object data)
Sends a generic notification with data.

Parameters:
message - the notification message.
data - a user data object of any type.

sendNotification

void sendNotification(String message,
                      String name,
                      String type,
                      Object... values)
Sends a modification notification.

Not that changed attribute values need not to be passed to the notification. Null type is replaced with java.lang.Object.

Parameters:
message - the notification message.
name - the attribute name.
type - the attribute type.
values - the old and new value of the attribute.

hasListeners

boolean hasListeners()
Checks whether there are registered notification listeners.

Returns:
true if notications can be send, otherwise false.


Copyright © 2004 The Norther Organization. All rights reserved.