|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.petals.microkernel.api.server.FractalHelper
public class FractalHelper
This class helps fractal management for Petals.
Field Summary | |
---|---|
static String |
ADMIN_COMPONENT
The Admin Service component name. |
static String |
COMMUNICATION_COMPOSITE
The Communication component name. |
static String |
CONFIGURATION_COMPONENT
The configuration service component name. |
static String |
CONTAINER_COMPOSITE
The Container component name. |
static String |
DEPLOYMENT_COMPONENT
The deployment component name. |
static String |
ENDPOINT_COMPONENT
The endpoint service component name. |
static String |
INSTALLATION_COMPONENT
The installation component name. |
static String |
JBI_MANAGEMENT_COMPOSITE
The JBI Management component name. |
static String |
JBI_MESSAGING_COMPOSITE
the JBI messaging composite name. |
static String |
JMX_COMPONENT
The JMX service component name. |
static String |
JNDI_COMPONENT
The Jndi service component name. |
static String |
JNDIAGENT_COMPONENT
The JNDI agent service component name. |
static String |
LOCAL_TRANSPORTER_COMPONENT
|
static String |
LOCAL_TRANSPORTER_MONITORING_COMPONENT
|
static String |
LOGGER_COMPONENT
The logger component name. |
static String |
PETALS_COMPOSITE
Fractal Petals names. |
static String |
PETALSADMIN_COMPONENT
The Petals admin service component name. |
static String |
ROUTER_COMPONENT
The Router component name. |
static String |
ROUTER_MONITOR_COMPONENT
|
static String |
SYSTEM_COMPOSITE
The System component name. |
static String |
SYSTEMRECOVERY_COMPONENT
The system recovery component name. |
static String |
TCP_TRANSPORTER_COMPONENT
|
static String |
TOPOLOGY_COMPONENT
The topology service component name. |
static String |
TRANSPORTER_COMPOSITE
The Transporter composite. |
Constructor Summary | |
---|---|
FractalHelper()
|
Method Summary | |
---|---|
static void |
addComponent(org.objectweb.fractal.api.Component newComponent,
org.objectweb.fractal.api.Component parentComponent,
List<Binding> listOfBindings)
Add a component in a composite component. |
static org.objectweb.fractal.api.Component |
createNewComponent(String name)
Create a new component. |
static org.objectweb.fractal.api.Component |
createNewComponent(String name,
Map<Object,Object> context)
Create a new component. |
static org.objectweb.fractal.api.Component |
getComponentByName(org.objectweb.fractal.api.control.ContentController parentContentController,
String name)
|
static List<org.objectweb.fractal.api.Component> |
getComponentListByPrefix(org.objectweb.fractal.api.control.ContentController parentContentController,
String prefix)
|
static org.objectweb.fractal.adl.Factory |
getFactory()
Get the factory to manage components. |
static org.objectweb.fractal.api.control.LifeCycleController |
getLifeCycleControllerByName(org.objectweb.fractal.api.control.ContentController parentContentController,
String name)
A utility function allowing to get a component LifeCycleController from a content controller. |
static org.objectweb.fractal.api.Component |
getRecursiveComponentByName(org.objectweb.fractal.api.control.ContentController parentContentController,
String name)
A utility function allowing to get a component from any content controller. |
static boolean |
startComponent(org.objectweb.fractal.api.Component component)
A utility function to start the given fractal component. |
static boolean |
stopComponent(org.objectweb.fractal.api.Component component)
A utility function to stop the given fractal component. |
static void |
stopComposite(org.objectweb.fractal.api.Component composite)
A utility function to stop the given fractal composite. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PETALS_COMPOSITE
public static final String CONFIGURATION_COMPONENT
public static final String COMMUNICATION_COMPOSITE
public static final String TOPOLOGY_COMPONENT
public static final String JNDIAGENT_COMPONENT
public static final String JNDI_COMPONENT
public static final String JMX_COMPONENT
public static final String SYSTEM_COMPOSITE
public static final String SYSTEMRECOVERY_COMPONENT
public static final String JBI_MANAGEMENT_COMPOSITE
public static final String ADMIN_COMPONENT
public static final String DEPLOYMENT_COMPONENT
public static final String INSTALLATION_COMPONENT
public static final String JBI_MESSAGING_COMPOSITE
public static final String ENDPOINT_COMPONENT
public static final String ROUTER_COMPONENT
public static final String ROUTER_MONITOR_COMPONENT
public static final String LOGGER_COMPONENT
public static final String TRANSPORTER_COMPOSITE
public static final String LOCAL_TRANSPORTER_COMPONENT
public static final String LOCAL_TRANSPORTER_MONITORING_COMPONENT
public static final String TCP_TRANSPORTER_COMPONENT
public static final String CONTAINER_COMPOSITE
public static final String PETALSADMIN_COMPONENT
Constructor Detail |
---|
public FractalHelper()
Method Detail |
---|
public static final org.objectweb.fractal.adl.Factory getFactory() throws org.objectweb.fractal.adl.ADLException
org.objectweb.fractal.adl.ADLException
- : occurs when the framework of Petals is incorrectpublic static final org.objectweb.fractal.api.Component createNewComponent(String name) throws org.objectweb.fractal.adl.ADLException
name
- The class name of the component
org.objectweb.fractal.adl.ADLException
- : occurs when the framework of Petals is incorrectpublic static final org.objectweb.fractal.api.Component createNewComponent(String name, Map<Object,Object> context) throws org.objectweb.fractal.adl.ADLException
name
- The class name of the componentcontext
- The map of parameters for the component
org.objectweb.fractal.adl.ADLException
- : occurs when the framework of Petals is incorrectpublic static final org.objectweb.fractal.api.Component getRecursiveComponentByName(org.objectweb.fractal.api.control.ContentController parentContentController, String name)
parentContentController
- parentContentControllername
- component name
public static org.objectweb.fractal.api.Component getComponentByName(org.objectweb.fractal.api.control.ContentController parentContentController, String name)
public static List<org.objectweb.fractal.api.Component> getComponentListByPrefix(org.objectweb.fractal.api.control.ContentController parentContentController, String prefix)
public static final boolean startComponent(org.objectweb.fractal.api.Component component) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalLifeCycleException
component
- the fractal component
org.objectweb.fractal.api.NoSuchInterfaceException
- : impossible to stop the component
org.objectweb.fractal.api.control.IllegalLifeCycleException
- : impossible to stop the componentpublic static final boolean stopComponent(org.objectweb.fractal.api.Component component) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalLifeCycleException
component
- the fractal component to stop
org.objectweb.fractal.api.NoSuchInterfaceException
- : impossible to stop the component
org.objectweb.fractal.api.control.IllegalLifeCycleException
- : impossible to stop the componentpublic static final void stopComposite(org.objectweb.fractal.api.Component composite) throws org.objectweb.fractal.api.control.IllegalLifeCycleException, org.objectweb.fractal.api.NoSuchInterfaceException
composite
-
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalLifeCycleException
org.objectweb.fractal.api.NoSuchInterfaceException
public static final void addComponent(org.objectweb.fractal.api.Component newComponent, org.objectweb.fractal.api.Component parentComponent, List<Binding> listOfBindings) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException, org.objectweb.fractal.api.control.IllegalBindingException
newComponent
- The new componentparentComponent
- The parent componentlistOfBindings
- the list of binding to create between this new component and
the others
org.objectweb.fractal.api.NoSuchInterfaceException
- : Impossible to add a component
org.objectweb.fractal.api.control.IllegalLifeCycleException
- : Impossible to add a component
org.objectweb.fractal.api.control.IllegalContentException
- : Impossible to add a component
org.objectweb.fractal.api.control.IllegalBindingException
- : Impossible to add a componentpublic static final org.objectweb.fractal.api.control.LifeCycleController getLifeCycleControllerByName(org.objectweb.fractal.api.control.ContentController parentContentController, String name)
parentContentController
- the parent content controllername
- the name of the component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |