|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
public abstract class ManageableComponent
An abstract base class that implements the Manageable and FlexComponent interfaces.
This is an excellent starting point for a server component that may be instantiated, initialized, started and
stopped, as well as exposing an optional management interface via a peer MBean.
Support for changing component properties while the component is started should be determined on a per-property basis, and the started property is volatile to ensure consistent reads of the start state of the component across threads. This class performs no synchronization and is not safe for modification by multiple concurrent threads in the absence of external synchronization.
| Constructor Summary | |
|---|---|
ManageableComponent(boolean enableManagement)
Constructs a ManageableComponent instance, specifying
whether to enable management. |
|
| Method Summary | |
|---|---|
BaseControl |
getControl()
Returns the control MBean used to manage the component. |
String |
getId()
Returns the id of the ManageableComponent. |
Manageable |
getParent()
Returns the parent of the component. |
void |
initialize(String id,
ConfigMap properties)
Invoked to initialize the ManageableComponent. |
boolean |
isManaged()
Returns true if the component is enabled for management. |
boolean |
isStarted()
Returns if the component is started or not. |
boolean |
isValid()
Returns if the component is valid. |
void |
setControl(BaseControl control)
Set the control MBean used to manage the component. |
void |
setId(String id)
Sets the id of the ManageableComponent. |
void |
setManaged(boolean enableManagement)
Enables or disables management for the component. |
void |
setParent(Manageable parent)
Sets the parent of the component. |
void |
start()
Validates and starts the component. |
void |
stop()
Invalidates and stops the component. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManageableComponent(boolean enableManagement)
ManageableComponent instance, specifying
whether to enable management.
Enabling management will trigger the creation of a peer MBean that exposes the
management interface for this component.
enableManagement - true to enable management, false to disable
management.| Method Detail |
|---|
public BaseControl getControl()
Manageable
getControl in interface ManageableManageable.getControl()public void setControl(BaseControl control)
Manageable
setControl in interface Manageablecontrol - The BaseControl MBean used to manage the component.Manageable.setControl(BaseControl)public String getId()
ManageableComponent.
ManageableComponent.public void setId(String id)
ManageableComponent. The id cannot be
null and it cannot be changed after startup.
id - The id of the ManageableComponent.public boolean isManaged()
Manageabletrue if the component is enabled for management.
isManaged in interface Manageabletrue if the component is enabled for management.Manageable.isManaged()public void setManaged(boolean enableManagement)
true if the parent of the component is not managed.
setManaged in interface ManageableenableManagement - true to enable management, false to disable management.public Manageable getParent()
public void setParent(Manageable parent)
parent - The parent of the component.public boolean isStarted()
isStarted in interface FlexComponenttrue if the component is started.public boolean isValid()
true if the component is valid.
public void initialize(String id,
ConfigMap properties)
ManageableComponent.
This base implementation calls setId() passing the provided
id and ignores the properties map argument.
Subclasses should call super.initialize().
initialize in interface FlexConfigurableid - Id of the ManageableComponent.properties - Properties for the ManageableComponent.public void start()
super.start().
start in interface FlexComponentpublic void stop()
super.stop().
stop in interface FlexComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/management/ManageableComponent.html