|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.jonas.resource.ResourceServiceImpl
JCA resource service implmentation
Field Summary | |
static java.lang.String |
AUTOLOADDIR
|
static java.lang.String |
CLASS
|
static int |
DEF_EXEC_TIME
|
static int |
DEF_WRK_THREADS
|
static java.lang.String |
EXECTIMEOUT
|
static java.lang.String |
JNDI_NAME
|
static java.lang.String |
JONAS_RA_XML
|
static java.lang.String |
LNK_JNDI_NAME
|
static java.lang.String |
LNK_RAR_FILENAME
|
java.lang.String |
MANAGED_CONNECTION_FACTORY_CLASS
|
static java.lang.String |
PARSINGWITHVALIDATION
|
static java.lang.String |
RA_XML
|
static java.lang.String |
RAR_FILENAME
|
static java.lang.String |
RESOURCE_LIST
|
static java.lang.String |
WORKTHREADS
|
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
ResourceServiceImpl()
|
|
ResourceServiceImpl(boolean client)
|
Method Summary | |
static void |
addDefaultAS(java.lang.String jndiName)
add a default AS to the list, the first one deployed is the default if others are added then they will become default if this one is undeployed |
java.lang.String |
createClientResourceAdapter(javax.naming.Context ctx,
ConnectorDesc conn,
JonasConnectorDesc jConn)
|
java.lang.String |
createResourceAdapter(javax.naming.Context ctx)
Create a Resource Adapter |
java.lang.Object |
createResourceObject(java.lang.String jndiName,
java.lang.String rarFileName,
ConnectorDesc conn,
JonasConnectorDesc jConn)
create the ResourceAdapter the jndiname will be used to return the factory |
java.lang.Object |
createResourceObject(java.lang.String jndiName,
java.lang.String rarFileName,
java.lang.String lnkJndiName,
java.lang.String lnkRarFileName)
create the ResourceAdapter the jndiname will be used to return the factory |
java.lang.String |
deployRar(java.lang.String fileName)
Deploy an RAR, used by management applications via J2EEServer managed object |
java.lang.String |
deployRarMBean(java.lang.String fileName)
Deploy an RAR by delegating the operation to the createResourceAdapter method. |
void |
deployRars(javax.naming.Context ctx)
Deploy the given rars of an ear file with the specified parent classloader (ear classloader). |
void |
doInit(javax.naming.Context ctx)
- Get the loggers - Get the global jndi context - Get the list of the resource adapters. |
void |
doStart()
Abstract start-up method to be implemented by sub-classes |
void |
doStop()
Abstract method for service stopping to be implemented by sub-classes |
static java.lang.Object |
getActivationSpec(java.lang.String jndiName)
get the ActivationSpec matching the jndiNname will be used in EJB container to get an ActivationSpec |
static java.lang.Object |
getAdminObject(java.lang.String jndiName)
get the AdminObject matching the jndiNname will be used in EJB container to get an AdminObject |
java.util.List |
getAutoloadDirectories()
Return the list of "autoload" directories for RAR containers. |
static java.lang.Object |
getConfigObj(java.lang.String jndiName)
get the ConfigObj matching the jndiName |
static ConnectorDesc |
getConnectorDesc(java.lang.String jndiName)
get the RAR ConnectorDesc object matching the jndiname |
java.lang.Integer |
getCurrentNumberOfRars()
|
java.lang.Integer |
getCurrentNumberOfResource()
|
static java.lang.String |
getDefaultAS()
return the current default ActivationSpec |
java.util.List |
getDeployableRars()
Return the list of installed RAR container ready to deploy. |
java.util.List |
getDeployedRars()
|
java.util.List |
getInstalledRars()
Return the list of installed RAR containers. |
static ResourceServiceImpl |
getInstance()
|
static JonasConnectorDesc |
getJonasConnectorDesc(java.lang.String jndiName)
get the RAR JonasConnectorDesc object matching the jndiname |
static Rar |
getRar(java.lang.String jndiName)
get the Rar matching the jndiNname will be used in EJB container to deploy an MDB |
java.util.Set |
getRarNames()
This method is added temporarily. |
java.lang.String |
getRarsDirectory()
Return the Rars directory. |
static java.lang.Object |
getResourceObject(java.lang.String jndiName)
get the ResourceAdapter matching the jndiName will be used in ResourceObjectJNDIHandler class at lookup time |
static java.lang.String |
getXmlContent(java.lang.String jndiName)
get the RAR XmlContent for the jndiname |
java.lang.Boolean |
isRarDeployed(java.lang.String fileName)
Test if the specified filename is already deployed or not. |
boolean |
isRarLoaded(java.lang.String fileName)
Test if the specified filename is already deployed or not |
static void |
removeDefaultAS(java.lang.String jndiName)
remove the specified jndiName from the default AS list |
void |
unDeployRar(java.lang.String fileName)
Undeploy an RAR, used by management applications via J2EEServer managed object |
void |
unDeployRarMBean(java.lang.String fileName)
Undeploy an RAR by delegating the operation to the unRegisterRar() method. |
void |
unDeployRars(java.net.URL[] urls,
java.net.URL earUrl)
Undeploy the given rars of an ear file. |
void |
unRegisterRar(javax.naming.Context ctx)
|
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop |
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
handleNotification, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jonas.service.Service |
getName, init, isStarted, setName, start, stop |
Field Detail |
public static final java.lang.String AUTOLOADDIR
public static final java.lang.String CLASS
public static final java.lang.String JNDI_NAME
public static final java.lang.String RAR_FILENAME
public static final java.lang.String LNK_JNDI_NAME
public static final java.lang.String LNK_RAR_FILENAME
public static final java.lang.String JONAS_RA_XML
public static final java.lang.String RA_XML
public static final java.lang.String PARSINGWITHVALIDATION
public static final java.lang.String RESOURCE_LIST
public static final java.lang.String WORKTHREADS
public static final java.lang.String EXECTIMEOUT
public final java.lang.String MANAGED_CONNECTION_FACTORY_CLASS
public static final int DEF_WRK_THREADS
public static final int DEF_EXEC_TIME
Constructor Detail |
public ResourceServiceImpl()
public ResourceServiceImpl(boolean client)
Method Detail |
public static ResourceServiceImpl getInstance()
public void doInit(javax.naming.Context ctx)
doInit
in class AbsServiceImpl
ctx
- configuration of the servicepublic void doStart() throws ServiceException
AbsServiceImpl
doStart
in class AbsServiceImpl
ServiceException
- service start-up failedpublic void doStop() throws ServiceException
AbsServiceImpl
doStop
in class AbsServiceImpl
ServiceException
- service stopping failedpublic java.lang.String createResourceAdapter(javax.naming.Context ctx) throws java.lang.Exception
ResourceService
createResourceAdapter
in interface ResourceService
java.lang.Exception
public java.lang.String createClientResourceAdapter(javax.naming.Context ctx, ConnectorDesc conn, JonasConnectorDesc jConn) throws java.lang.Exception
java.lang.Exception
public void deployRars(javax.naming.Context ctx) throws ResourceServiceException
deployRars
in interface ResourceService
ctx
- the context containing the configuration
to deploy the rars.ResourceServiceException
- if an error occurs during
the deployment.public void unDeployRars(java.net.URL[] urls, java.net.URL earUrl)
unDeployRars
in interface ResourceService
urls
- the list of the urls of the rars to undeploy.earUrl
- the URL of the associated EAR filepublic void unRegisterRar(javax.naming.Context ctx) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object getResourceObject(java.lang.String jndiName)
public java.lang.Object createResourceObject(java.lang.String jndiName, java.lang.String rarFileName, ConnectorDesc conn, JonasConnectorDesc jConn)
public java.lang.Object createResourceObject(java.lang.String jndiName, java.lang.String rarFileName, java.lang.String lnkJndiName, java.lang.String lnkRarFileName)
public static java.lang.Object getAdminObject(java.lang.String jndiName)
public static java.lang.Object getActivationSpec(java.lang.String jndiName)
public static Rar getRar(java.lang.String jndiName)
public static void addDefaultAS(java.lang.String jndiName)
public static java.lang.String getDefaultAS()
public static void removeDefaultAS(java.lang.String jndiName)
public java.lang.Integer getCurrentNumberOfResource()
getCurrentNumberOfResource
in interface ResourceServiceImplMBean
public java.lang.Integer getCurrentNumberOfRars()
getCurrentNumberOfRars
in interface ResourceServiceImplMBean
public java.util.List getDeployedRars()
getDeployedRars
in interface ResourceServiceImplMBean
public java.util.List getInstalledRars() throws java.lang.Exception
getInstalledRars
in interface ResourceServiceImplMBean
java.lang.Exception
- if the list can't be retrievedpublic java.util.Set getRarNames()
getRarNames
in interface ResourceServiceImplMBean
public java.lang.String deployRarMBean(java.lang.String fileName) throws java.rmi.RemoteException, ResourceServiceException
deployRarMBean
in interface ResourceServiceImplMBean
fileName
- the fileName of the rar which must be be deployed.
java.rmi.RemoteException
- if rmi call failed.
ResourceServiceException
- if the deployment of the RAR failed.public java.lang.String deployRar(java.lang.String fileName) throws java.lang.Exception
ResourceService
deployRar
in interface ResourceService
fileName
- the fileName of the rar which must be be deployed.
java.lang.Exception
- if the deployment of the RAR failed.public java.lang.Boolean isRarDeployed(java.lang.String fileName)
isRarDeployed
in interface ResourceService
fileName
- the name of the rar file.
public void unDeployRarMBean(java.lang.String fileName) throws java.rmi.RemoteException, ResourceServiceException
unDeployRarMBean
in interface ResourceServiceImplMBean
fileName
- the fileName of the rar which must be be undeployed.
java.rmi.RemoteException
- if rmi call failed.
ResourceServiceException
- if the undeployment of the RAR failed.public void unDeployRar(java.lang.String fileName) throws java.lang.Exception
ResourceService
unDeployRar
in interface ResourceService
fileName
- the fileName of the rar which must be be undeployed.
java.lang.Exception
- if the undeployment of the RAR failed.public boolean isRarLoaded(java.lang.String fileName)
isRarLoaded
in interface ResourceServiceImplMBean
fileName
- the name of the rar file.
public java.util.List getDeployableRars() throws java.lang.Exception
getDeployableRars
in interface ResourceServiceImplMBean
java.lang.Exception
public java.util.List getAutoloadDirectories()
getAutoloadDirectories
in interface ResourceServiceImplMBean
public java.lang.String getRarsDirectory()
getRarsDirectory
in interface ResourceService
public static ConnectorDesc getConnectorDesc(java.lang.String jndiName)
public static JonasConnectorDesc getJonasConnectorDesc(java.lang.String jndiName)
public static java.lang.Object getConfigObj(java.lang.String jndiName)
public static java.lang.String getXmlContent(java.lang.String jndiName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |