com.ibm.streams.operator.control
Class AbstractPersistentControlMBean<T>
- java.lang.Object
-
- javax.management.NotificationBroadcasterSupport
-
- com.ibm.streams.operator.control.NotifierSupport<T>
-
- com.ibm.streams.operator.control.AbstractPersistentControlMBean<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
- PersistentControlMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter
- Direct Known Subclasses:
- AbstractControlVariable
public abstract class AbstractPersistentControlMBean<T> extends NotifierSupport<T> implements PersistentControlMBean
TODO- Since:
- InfoSphere® Streams Version 4.0
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
IBM_COPYRIGHT
-
Fields inherited from class com.ibm.streams.operator.control.NotifierSupport
ATTRIBUTE_CHANGE_INFO
-
-
Constructor Summary
Constructors Modifier Constructor and Description protected
AbstractPersistentControlMBean(javax.management.MBeanNotificationInfo... info)
-
Method Summary
Methods Modifier and Type Method and Description protected void
persistControlState(byte[] controlState)
Persist control state for this MBean usingControlPlaneMXBean#persistControlState(ObjectName, byte[])
.void
setupComplete()
Called when the JCP has completed its persistent setup of this MBean.-
Methods inherited from class com.ibm.streams.operator.control.NotifierSupport
getObjectName, getServer, nextSequence, postDeregister, postRegister, preDeregister, preRegister, sendAttributeChangeNotification, sendBooleanAttributeChangeNotification, sendNotification, sendNotification
-
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.streams.operator.control.PersistentControlMBean
updateControlState
-
-
-
-
Field Detail
-
IBM_COPYRIGHT
public static final java.lang.String IBM_COPYRIGHT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractPersistentControlMBean
protected AbstractPersistentControlMBean(javax.management.MBeanNotificationInfo... info)
-
-
Method Detail
-
persistControlState
protected void persistControlState(byte[] controlState) throws java.io.IOException
Persist control state for this MBean usingControlPlaneMXBean#persistControlState(ObjectName, byte[])
.- Parameters:
controlState
-- Throws:
java.io.IOException
-
setupComplete
public void setupComplete()
Called when the JCP has completed its persistent setup of this MBean. This is always called after the MBean has been registered.
For the first (explicit) creation of the MBean usingcreateMBean()
, it will be called once the MBean's constructor arguments have been persisted.
On subsequent creations of the MBean, driven by the previous persist of the constructor arguments, it will be called afterPersistentControlMBean.updateControlState(byte[])
if the MBean previously persisted data usingpersistControlState(byte[])
orControlPlaneMXBean.persistControlState(javax.management.ObjectName, byte[])
, otherwise it is called once it is determined no control data was persisted.
Once this method is called, this MBean has its most recent control state.This implementation does nothing, sub-classes may override to provide any required setup.
- Specified by:
setupComplete
in interfacePersistentControlMBean
-
-