jrun.deployment.resource
Class ResourceDeployer
jrunx.kernel.ServiceAdapter
|
+--jrun.deployment.resource.ResourceDeployer
- All Implemented Interfaces:
- javax.naming.Referenceable, ResourceDeployerMBean, java.io.Serializable, Service, ServiceMBean
- public class ResourceDeployer
- extends ServiceAdapter
- implements ResourceDeployerMBean
JRun's deployer of datasources and other pooled objects.
This is the pooled service configured in jrun.xml.
- Author:
- PS Neville, Paul Reilly
- See Also:
- Serialized Form
| Fields inherited from class jrunx.kernel.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER |
| Methods inherited from class jrunx.kernel.ServiceAdapter |
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, stop, toString, unbind, unscheduleRunnable, updateStatus |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
ResourceDeployer
public ResourceDeployer()
init
public void init()
throws java.lang.Exception
- Description copied from class:
ServiceAdapter
- Not every service needs to init, implement it out of convenience.
- Specified by:
init in interface Service- Overrides:
init in class ServiceAdapter
start
public void start()
throws java.lang.Exception
- Description copied from class:
ServiceAdapter
- Every service other than mere data collections should start
- Specified by:
start in interface Service- Overrides:
start in class ServiceAdapter
getDestinationNames
public java.lang.String[] getDestinationNames()
throws java.lang.Exception
- Specified by:
getDestinationNames in interface ResourceDeployerMBean
getDestinationProps
public java.util.Properties getDestinationProps(java.lang.String destinationName)
throws java.lang.Exception
- Specified by:
getDestinationProps in interface ResourceDeployerMBean
setDestinationProps
public void setDestinationProps(java.lang.String destinationName,
java.util.Properties properties)
throws java.lang.Exception
- Specified by:
setDestinationProps in interface ResourceDeployerMBean
addDestination
public void addDestination(java.lang.String destinationName,
java.util.Properties properties)
throws java.lang.Exception
- Specified by:
addDestination in interface ResourceDeployerMBean
addDestination
public void addDestination(JmsDestinationMetaData jmsDestinationMetaData)
throws java.lang.Exception
removeDestination
public void removeDestination(java.lang.String destinationName)
throws java.lang.Exception
- Specified by:
removeDestination in interface ResourceDeployerMBean
getConnectionFactoryNames
public java.lang.String[] getConnectionFactoryNames()
throws java.lang.Exception
- Specified by:
getConnectionFactoryNames in interface ResourceDeployerMBean
getConnectionFactoryProps
public java.util.Properties getConnectionFactoryProps(java.lang.String jndiName)
throws java.lang.Exception
- Specified by:
getConnectionFactoryProps in interface ResourceDeployerMBean
setConnectionFactoryProps
public void setConnectionFactoryProps(java.lang.String jndiName,
java.util.Properties props)
throws java.lang.Exception
- Specified by:
setConnectionFactoryProps in interface ResourceDeployerMBean
addConnectionFactory
public void addConnectionFactory(java.lang.String jndiName,
java.util.Properties props)
throws java.lang.Exception
- Specified by:
addConnectionFactory in interface ResourceDeployerMBean
removeConnectionFactory
public void removeConnectionFactory(java.lang.String jndiName)
throws java.lang.Exception
- Specified by:
removeConnectionFactory in interface ResourceDeployerMBean
getMailSessionNames
public java.lang.String[] getMailSessionNames()
throws java.lang.Exception
- Specified by:
getMailSessionNames in interface ResourceDeployerMBean
getMailSessionProps
public java.util.Properties getMailSessionProps(java.lang.String name)
throws java.lang.Exception
- Specified by:
getMailSessionProps in interface ResourceDeployerMBean
setMailSessionProps
public void setMailSessionProps(java.lang.String name,
java.util.Properties props)
throws java.lang.Exception
- Specified by:
setMailSessionProps in interface ResourceDeployerMBean
addMailSession
public void addMailSession(java.lang.String name,
java.util.Properties props)
throws java.lang.Exception
- Specified by:
addMailSession in interface ResourceDeployerMBean
addMailSession
public void addMailSession(MailSessionMetaData mailSessionMetaData)
throws java.lang.Exception
removeMailSession
public void removeMailSession(java.lang.String jndiName)
throws java.lang.Exception
- Specified by:
removeMailSession in interface ResourceDeployerMBean
createDataSource
public void createDataSource(java.util.Properties properties)
throws java.lang.Exception
- Specified by:
createDataSource in interface ResourceDeployerMBean
removeDataSource
public void removeDataSource(java.lang.String dbname)
throws java.lang.Exception
- Specified by:
removeDataSource in interface ResourceDeployerMBean
addDataSourceService
public javax.management.ObjectInstance addDataSourceService(DataSourceMetaData dataSourceMetaData)
throws java.lang.Exception
getUrlResourceNames
public java.lang.String[] getUrlResourceNames()
throws java.lang.Exception
- Specified by:
getUrlResourceNames in interface ResourceDeployerMBean
getUrlResourceProps
public java.util.Properties getUrlResourceProps(java.lang.String strUrlName)
throws java.lang.Exception
- Specified by:
getUrlResourceProps in interface ResourceDeployerMBean
setUrlResourceProps
public void setUrlResourceProps(java.lang.String strJndiName,
java.util.Properties props)
throws java.lang.Exception
- Specified by:
setUrlResourceProps in interface ResourceDeployerMBean
addUrlResource
public void addUrlResource(java.lang.String strJndiName,
java.util.Properties props)
throws java.lang.Exception
- Specified by:
addUrlResource in interface ResourceDeployerMBean
removeUrlResource
public void removeUrlResource(java.lang.String strUrlName)
throws java.lang.Exception
- Specified by:
removeUrlResource in interface ResourceDeployerMBean
Copyright � 2002 Macromedia Corporation. All Rights Reserved.