|
||||||||||
| 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
Autoload directory property name |
static java.lang.String |
CLASS
Service class property name |
static int |
DEF_EXEC_TIME
Maximum work execution timeout (0 is unlimited) |
static int |
DEF_MAX_WRK_THREADS
Default max number of work threads |
static int |
DEF_WRK_THREADS
Default number of work threads |
static int |
DEF_WRK_THREADWAITTIMEOUT
Default work thread timeout |
static java.lang.String |
EXECTIMEOUT
Work max execution timeout property name |
static java.lang.String |
FACTORY_OFFSET
Factory offset property name |
static java.lang.String |
FACTORY_TYPE
Factory type property name |
static java.lang.String |
JNDI_NAME
Jndiname property name |
static java.lang.String |
JONAS_BASE
The name of the JONAS_BASE directory |
static java.lang.String |
JONAS_RA_XML
Jonas ra.xml property name |
static java.lang.String |
LNK_JNDI_NAME
Jndiname link property name |
static java.lang.String |
LNK_RAR_FILENAME
Link Rar filename property name |
static java.lang.String |
MAXWORKTHREADS
Maximum number of work threads property name |
static java.lang.String |
MINWORKTHREADS
Minimum number of work threads property name |
static java.lang.String |
PARSINGWITHVALIDATION
Parsing validation property name |
static java.lang.String |
RA_XML
ra.xml property name |
static java.lang.String |
RAR_FILENAME
Rar filename property name |
static java.lang.String |
RAR_OBJNAME
Rar object property name |
static java.lang.String |
RARSDIR
The name of the rars directory |
static java.lang.String |
RESOURCE_LIST
Resources list property name |
static java.lang.String |
THREADWAITTIMEOUT
Thread timeout |
static java.lang.String |
WORK_RARS_DIR
The name of the working apps directory. |
| Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
ResourceServiceImpl()
Default construtor for ResourceService |
|
| Method Summary | |
java.lang.String |
createResourceAdapter(javax.naming.Context ctx)
Create a new resource adapter. |
java.lang.String |
deployRar(java.lang.String fileName)
Deploy the resource adapter |
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()
Start the Resource service. |
void |
doStop()
Stop the Resource service. |
java.util.List |
getAutoloadDirectories()
Return the list of "autoload" directories for RAR containers. |
java.lang.Integer |
getCurrentNumberOfRars()
|
java.lang.Integer |
getCurrentNumberOfResource()
|
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. |
java.util.Set |
getRarNames()
This method is added temporarily. |
java.lang.String |
getRarsDirectory()
Return the Rars directory. |
java.lang.Boolean |
isRarDeployed(java.lang.String fileName)
Test if the specified filename is already deployed or not. |
boolean |
isRarDeployedByUnpackName(java.lang.String unpackName)
Test if the specified unpack name is already deployed or not. |
boolean |
isRarLoaded(java.lang.String fileName)
Test if the specified filename is already deployed or not |
void |
unDeployRar(java.lang.String fileName)
Undeploy the resource adapter |
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)
Unregister the resource adapter. |
| 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_OBJNAME
public static final java.lang.String FACTORY_OFFSET
public static final java.lang.String FACTORY_TYPE
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 THREADWAITTIMEOUT
public static final java.lang.String MINWORKTHREADS
public static final java.lang.String MAXWORKTHREADS
public static final java.lang.String EXECTIMEOUT
public static final int DEF_WRK_THREADWAITTIMEOUT
public static final int DEF_WRK_THREADS
public static final int DEF_MAX_WRK_THREADS
public static final int DEF_EXEC_TIME
public static final java.lang.String JONAS_BASE
public static final java.lang.String WORK_RARS_DIR
public static final java.lang.String RARSDIR
| Constructor Detail |
public ResourceServiceImpl()
| Method Detail |
public void doInit(javax.naming.Context ctx)
doInit in class AbsServiceImplctx - Context
public void doStart()
throws ServiceException
doStart in class AbsServiceImplServiceException - if the startup failed.
public void doStop()
throws ServiceException
doStop in class AbsServiceImplServiceException - if the stop failed.
public java.lang.String createResourceAdapter(javax.naming.Context ctx)
throws java.lang.Exception
createResourceAdapter in interface ResourceServicectx - Context to use for deploying an RAR
java.lang.Exception - error encountered
public void deployRars(javax.naming.Context ctx)
throws ResourceServiceException
deployRars in interface ResourceServicectx - 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 ResourceServiceurls - the list of the urls of the rars to undeploy.earUrl - the URL of the associated EAR file
public void unRegisterRar(javax.naming.Context ctx)
throws java.lang.Exception
ctx - Context to use for unregistering an RAR
java.lang.Exception - error encounteredpublic java.lang.Integer getCurrentNumberOfResource()
getCurrentNumberOfResource in interface ResourceServiceImplMBeanpublic java.lang.Integer getCurrentNumberOfRars()
getCurrentNumberOfRars in interface ResourceServiceImplMBeanpublic java.util.List getDeployedRars()
getDeployedRars in interface ResourceServiceImplMBean
public java.util.List getInstalledRars()
throws java.lang.Exception
getInstalledRars in interface ResourceServiceImplMBeanjava.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 ResourceServiceImplMBeanfileName - 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
deployRar in interface ResourceServicefileName - the name of the rar file.
java.lang.Exception - if unable to deploy the rarpublic java.lang.Boolean isRarDeployed(java.lang.String fileName)
isRarDeployed in interface ResourceServicefileName - the name of the rar file.
public boolean isRarDeployedByUnpackName(java.lang.String unpackName)
isRarDeployedByUnpackName in interface ResourceServiceunpackName - the name of the rar file.
public void unDeployRarMBean(java.lang.String fileName)
throws java.rmi.RemoteException,
ResourceServiceException
unDeployRarMBean in interface ResourceServiceImplMBeanfileName - 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
unDeployRar in interface ResourceServicefileName - the name of the rar file.
java.lang.Exception - if not able to undeploy the rarpublic boolean isRarLoaded(java.lang.String fileName)
isRarLoaded in interface ResourceServiceImplMBeanfileName - the name of the rar file.
public java.util.List getDeployableRars()
throws java.lang.Exception
getDeployableRars in interface ResourceServiceImplMBeanjava.lang.Exception - if error retrieving the listpublic java.util.List getAutoloadDirectories()
getAutoloadDirectories in interface ResourceServiceImplMBeanpublic java.lang.String getRarsDirectory()
getRarsDirectory in interface ResourceService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||