|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.container.lifecycle.Installer
public class Installer
| Field Summary | |
|---|---|
protected AdminService |
adminService
JBI-Management :: Admin Service |
static java.lang.String |
BS_PREFIX
Bootstrap classloader id prefix. |
protected ClassLoaderService |
classloaderService
Platform :: Loader Service |
static java.lang.String |
COMP_PREFIX
Component classloader id prefix. |
protected ContainerService |
container
Container :: Container Service |
protected EndpointRegistry |
endpointRegistry
JBI-Messaging :: EndpointRegistry |
static java.lang.String |
INSTALLED
|
protected JNDIService |
jndiService
Communication :: JNDIService |
protected SystemStateService |
recoverySrv
Platform component :: SystemState Service |
protected RepositoryService |
repositoryService
Platform :: Repository Service |
protected RouterService |
router
JBI-Messaging :: Router Service |
protected javax.transaction.TransactionManager |
transactionManager
JBI-Management :: TransactionManager Service |
static java.lang.String |
UNINSTALLED
|
| Constructor Summary | |
|---|---|
Installer()
Create the Installer that will manage installation / uninstallation of the JBI component. |
|
| Method Summary | |
|---|---|
ServiceEndpoint |
getAddress()
The address of the component, as a Consumer. |
AdminService |
getAdminService()
Get the Admin service. |
javax.jbi.component.Component |
getComponent()
Get the JBI component |
java.lang.String |
getComponentName()
Get the unique component name of this component, as assigned by the identification section of this component's installation descriptor. |
EndpointRegistry |
getEndpointRegistry()
Get the EndpointRegistry service. |
javax.naming.InitialContext |
getInitialContext()
The Initial context for the component. |
java.lang.String |
getInstallationRoot()
The installation directory of the component. |
javax.management.ObjectName |
getInstallerConfigurationMBean()
|
java.lang.String |
getInstallRoot()
|
org.ow2.petals.jbi.descriptor.original.generated.Jbi |
getJBIDescriptor()
get the JBI Descriptor. |
java.util.logging.Logger |
getLogger()
The Logger for the component. |
RouterService |
getRouterService()
Get the Router service. |
javax.transaction.TransactionManager |
getTransactionManagerService()
Get the TransactionManager service. |
java.lang.String |
getWorkspaceRoot()
The working directory for the component. |
void |
init(Context ctxt)
init the installer. |
void |
initBootstrap(boolean install)
initialize the bootstrap |
javax.management.ObjectName |
install()
|
boolean |
isInstalled()
|
protected void |
start()
Start of the petals component |
protected void |
stop()
Stop of the petals component |
void |
uninstall()
Uninstall the JBI component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BS_PREFIX
public static final java.lang.String COMP_PREFIX
public static final java.lang.String INSTALLED
public static final java.lang.String UNINSTALLED
protected AdminService adminService
protected ClassLoaderService classloaderService
protected RouterService router
protected RepositoryService repositoryService
protected EndpointRegistry endpointRegistry
protected JNDIService jndiService
protected ContainerService container
protected javax.transaction.TransactionManager transactionManager
protected SystemStateService recoverySrv
| Constructor Detail |
|---|
public Installer()
| Method Detail |
|---|
public void init(Context ctxt)
throws java.io.IOException,
javax.jbi.JBIException,
javax.naming.NamingException,
org.objectweb.fractal.api.NoSuchInterfaceException
InstallerInterface
init in interface InstallerInterfacectxt - the context (installation context)
javax.jbi.JBIException - : impossible initialization
java.io.IOException
javax.naming.NamingException
org.objectweb.fractal.api.NoSuchInterfaceException
public javax.management.ObjectName getInstallerConfigurationMBean()
throws javax.jbi.JBIException
getInstallerConfigurationMBean in interface javax.jbi.management.InstallerMBeanjavax.jbi.JBIExceptionpublic java.lang.String getInstallRoot()
getInstallRoot in interface javax.jbi.management.InstallerMBean
public javax.management.ObjectName install()
throws javax.jbi.JBIException
install in interface javax.jbi.management.InstallerMBeanjavax.jbi.JBIException
public void uninstall()
throws javax.jbi.JBIException
uninstall in interface javax.jbi.management.InstallerMBeanjavax.jbi.JBIException - the component is already uninstalledpublic boolean isInstalled()
isInstalled in interface javax.jbi.management.InstallerMBeanpublic java.lang.String getComponentName()
public ServiceEndpoint getAddress()
ComponentContextCommunication
getAddress in interface ComponentContextCommunicationpublic EndpointRegistry getEndpointRegistry()
ComponentContextCommunication
getEndpointRegistry in interface ComponentContextCommunicationpublic javax.naming.InitialContext getInitialContext()
ComponentContextCommunication
getInitialContext in interface ComponentContextCommunicationpublic java.lang.String getInstallationRoot()
ComponentContextCommunication
getInstallationRoot in interface ComponentContextCommunicationpublic org.ow2.petals.jbi.descriptor.original.generated.Jbi getJBIDescriptor()
ComponentContextCommunication
getJBIDescriptor in interface ComponentContextCommunicationpublic AdminService getAdminService()
ComponentContextCommunication
getAdminService in interface ComponentContextCommunicationpublic RouterService getRouterService()
ComponentContextCommunication
getRouterService in interface ComponentContextCommunicationpublic javax.transaction.TransactionManager getTransactionManagerService()
ComponentContextCommunication
getTransactionManagerService in interface ComponentContextCommunicationpublic java.lang.String getWorkspaceRoot()
ComponentContextCommunication
getWorkspaceRoot in interface ComponentContextCommunicationpublic java.util.logging.Logger getLogger()
ComponentContextCommunication
getLogger in interface ComponentContextCommunicationpublic javax.jbi.component.Component getComponent()
Component instance
public void initBootstrap(boolean install)
throws javax.jbi.JBIException
install -
javax.jbi.JBIException
protected void start()
throws org.ow2.petals.kernel.api.server.PetalsException,
javax.jbi.JBIException
org.ow2.petals.kernel.api.server.PetalsException
javax.jbi.JBIExceptionprotected void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||