org.norther.tammi.core.base
Interface MBeanDelegate

All Superinterfaces:
NotificationBroadcaster, NotificationEmitter
All Known Implementing Classes:
AbstractAuthenticatorFilter, AbstractChartGenerator, AbstractCommonFactory, AbstractCommonSecureFactory, AbstractContainerFilter, AbstractContainerKeyFilter, AbstractExecutor, AbstractLogger, AbstractMediaContentFilter, AbstractMediaContentKeyFilter, AbstractPersisterFactory, AbstractRealm, AbstractReportEngine, AbstractSecureContainerFilter, AbstractSecureContainerKeyFilter, AbstractSecureSocketFactory, AbstractSocketFactory, AbstractStreamConfigurator, AbstractTemplateEngine, AbstractThreadedLogger, Adaptee, Chapter, DefaultAccessController, DefaultBaseQueryFactory, DefaultBeanRepositoryClient, DefaultBeanRepositoryFilter, DefaultBranchingFilter, DefaultBroker, DefaultCacheClient, DefaultCachedAuthFilter, DefaultCachedMediaProvider, DefaultCacheMonitor, DefaultCGIBinFilter, DefaultChannelConnector, DefaultChartFilter, DefaultClosingFilter, DefaultConfigurable, DefaultConfigurableConverter, DefaultConfigurableFactory, DefaultConfigurator, DefaultConnector, DefaultContainer, DefaultContainerFilter, DefaultContainerKeyFilter, DefaultContentTypeMap, DefaultContextFactory, DefaultContextToolFilter, DefaultConverter, DefaultDateConverter, DefaultDirectExecutor, DefaultDomain, DefaultDOMBuilderFactory, DefaultExecutable, DefaultExecutableConnector, DefaultFactory, DefaultFallbackMap, DefaultFileUploadFilter, DefaultFilter, DefaultFinalizer, DefaultFlowFilter, DefaultFormFilter, DefaultHibernatePersisterFactory, DefaultHostFilter, DefaultHttpBasicAuthFilter, DefaultHttpDigestAuthFilter, DefaultHttpFilter, DefaultHttpFormAuthFilter, DefaultHttpRelayFilter, DefaultHttpSspiAuthFilter, DefaultIdentityConverter, DefaultInternetAddressConverter, DefaultIpMaskFilter, DefaultJasperReports, DefaultJFCFactory, DefaultJFreeCharts, DefaultJFreeReports, DefaultJndiRealm, DefaultJSPEngine, DefaultKeyCacheClient, DefaultKeyFilter, DefaultKeyStoreFactory, DefaultKeyStoreLoader, DefaultLayoutFilter, DefaultLibrary, DefaultLinkFilter, DefaultLocalConnector, DefaultLocaleFilter, DefaultMailSender, DefaultMediaContentFilter, DefaultMediaContentKeyFilter, DefaultMediaProvider, DefaultMemoryRealm, DefaultMessageDigestFactory, DefaultMonitorFilter, DefaultMultiRepositoryClient, DefaultNativeRealm, DefaultNumberConverter, DefaultObjectConverter, DefaultObjectFactory, DefaultObjectNameConverter, DefaultOJBPersisterFactory, DefaultPageFilter, DefaultPathFinder, DefaultPermissionConverter, DefaultPipe, DefaultPipeFilter, DefaultPool, DefaultPooledExecutor, DefaultPropertyConfigurator, DefaultRegistry, DefaultReportFilter, DefaultReportQueryFactory, 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, DefaultTemporaryContentKeyFilter, DefaultTerminalAuthFilter, DefaultTerminalFilter, DefaultThreadedExecutor, DefaultThreadFactory, DefaultTimeout, DefaultVariableConverter, DefaultVariableRegistry, DefaultXMLConfigurator, DefaultXMLPersisterFactory, FreemarkerEngine, JDK4Logger, Log4JLogger, Referable, Relation, VariableRoot, VariableTree, VelocityEngine

public interface MBeanDelegate
extends NotificationEmitter

An interface to referable MBean adapter delegates.

Author:
Ilkka Priha

Field Summary
static String ARRAY_TYPE
          The plain modified array attribute type.
static String OBJECT_TYPE
          The plain modified object attribute type.
static String PRIMITIVE_TYPE
          The plain modified primitive attribute type.
static String STRING_TYPE
          The plain modified string attribute type.
 
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.
 LoaderMBean 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 oldValue, Object newValue)
          Sends a modification notification with values for object attributes.
 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
 

Field Detail

PRIMITIVE_TYPE

static final String PRIMITIVE_TYPE
The plain modified primitive attribute type.

See Also:
Constant Field Values

STRING_TYPE

static final String STRING_TYPE
The plain modified string attribute type.

See Also:
Constant Field Values

OBJECT_TYPE

static final String OBJECT_TYPE
The plain modified object attribute type.

See Also:
Constant Field Values

ARRAY_TYPE

static final String ARRAY_TYPE
The plain modified array attribute type.

See Also:
Constant Field Values
Method Detail

getMBean

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

Returns:
a reference to the adapter MBean.

getDomain

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

Returns:
the domain MBean referent.

getLoader

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

Returns:
the loader 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 oldValue,
                      Object newValue)
Sends a modification notification with values for object attributes.

Not that values may be nulls when applicable, e.g. for complicated attributes and primitives. Null type is replaced with java.lang.Object.

Parameters:
message - the notification message.
name - the attribute name.
type - the attribute type.
oldValue - the old value.
newValue - the new value.

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.