public class FractalHelper extends Object
Modifier and Type | Field and Description |
---|---|
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 composite name.
|
static String |
CONTAINER_CONTROLLER_COMPONENT
The Container Controller component name.
|
static String |
CONTAINER_SERVICE_COMPONENT
The Container Service component name.
|
static String |
DEPLOYMENT_COMPONENT
The deployment component name.
|
static String |
ENDPOINT_DIRECTORY_COMPONENT
The endpoint directory 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 |
PETALS_COMPOSITE_CTRL_COMPONENT
The Petals composite controller component name
|
static String |
PETALSADMIN_COMPONENT
The Petals admin service component name.
|
static String |
POST_EXTENSIONSMANAGER_COMPONENT
The PostExtensionsManagerImpl component name.
|
static String |
POST_EXTENSIONSMANAGER_COMPOSITE
The PostExtensionsManager composite name.
|
static String |
PRE_EXTENSIONSMANAGER_COMPONENT
The PreExtensionsManagerImpl component name.
|
static String |
PRE_EXTENSIONSMANAGER_COMPOSITE
The PreExtensionsManager composite name.
|
static String |
ROUTER_COMPONENT
The Router component name.
|
static String |
SHARED_AREA_COMPONENT
The shared area service component name.
|
static String |
SYSTEM_COMPOSITE
The System component name.
|
static String |
SYSTEMRECOVERY_COMPONENT
The system recovery component name.
|
static String |
SYSTEMSTATE_COMPONENT
The system state service component name.
|
static String |
TCP_TRANSPORTER_COMPONENT |
static String |
TCP_TRANSPORTER_MONITORING_COMPONENT |
static String |
TOPOLOGY_COMPONENT
The topology service component name.
|
static String |
TRANSPORTERS_COMPOSITE
The Transporter composite.
|
Constructor and Description |
---|
FractalHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addComponent(org.objectweb.fractal.api.Component newComponent,
org.objectweb.fractal.api.Component parentComponent,
List<Binding> listOfBindings,
String newComponentName)
Add a component in a composite component.
|
static org.objectweb.fractal.api.Component |
createCompositeComponent(String name)
Create a new component.
|
static org.objectweb.fractal.api.Component |
createPrimitiveComponent(Class<?> clazz)
Idem, but don't work if the class use LifeCycle DESTROY because the class name will be different...
|
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.api.factory.GenericFactory |
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 |
getParentComponent(org.objectweb.fractal.api.Component component)
Return the component that contains the parameter component.
|
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.
|
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_DIRECTORY_COMPONENT
public static final String SHARED_AREA_COMPONENT
public static final String SYSTEMSTATE_COMPONENT
public static final String ROUTER_COMPONENT
public static final String LOGGER_COMPONENT
public static final String TRANSPORTERS_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 TCP_TRANSPORTER_MONITORING_COMPONENT
public static final String CONTAINER_COMPOSITE
public static final String CONTAINER_SERVICE_COMPONENT
public static final String CONTAINER_CONTROLLER_COMPONENT
public static final String PETALS_COMPOSITE_CTRL_COMPONENT
public static final String PETALSADMIN_COMPONENT
public static final String PRE_EXTENSIONSMANAGER_COMPOSITE
public static final String PRE_EXTENSIONSMANAGER_COMPONENT
public static final String POST_EXTENSIONSMANAGER_COMPOSITE
public static final String POST_EXTENSIONSMANAGER_COMPONENT
public static final org.objectweb.fractal.api.factory.GenericFactory getFactory()
ADLException
- : occurs when the framework of Petals is incorrectpublic static final org.objectweb.fractal.api.Component createCompositeComponent(String name) throws org.objectweb.fractal.api.factory.InstantiationException
name
- The class name of the componentorg.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.factory.InstantiationException
public static final org.objectweb.fractal.api.Component createPrimitiveComponent(Class<?> clazz) throws org.objectweb.fractal.api.factory.InstantiationException
clazz
- org.objectweb.fractal.api.factory.InstantiationException
public static final org.objectweb.fractal.api.Component getRecursiveComponentByName(org.objectweb.fractal.api.control.ContentController parentContentController, String name)
parentContentController
- parentContentControllername
- component namepublic 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 componentorg.objectweb.fractal.api.NoSuchInterfaceException
- : impossible to stop the componentorg.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 stoporg.objectweb.fractal.api.NoSuchInterfaceException
- : impossible to stop the componentorg.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.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, String newComponentName) 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 othersorg.objectweb.fractal.api.NoSuchInterfaceException
- : Impossible to add a componentorg.objectweb.fractal.api.control.IllegalLifeCycleException
- : Impossible to add a componentorg.objectweb.fractal.api.control.IllegalContentException
- : Impossible to add a componentorg.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 componentpublic static final org.objectweb.fractal.api.Component getParentComponent(org.objectweb.fractal.api.Component component) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.ow2.petals.basisapi.exception.PetalsException
component
- org.objectweb.fractal.api.NoSuchInterfaceException
org.ow2.petals.basisapi.exception.PetalsException
Copyright © 2005-2016 Linagora. All Rights Reserved.