当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
ApacheDSService - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.test.framework.embedded.apacheds
Class ApacheDSService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.test.framework.embedded.apacheds.ApacheDSService
- All Implemented Interfaces:
- ApacheDSServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class ApacheDSService
- extends org.jboss.system.ServiceMBeanSupport
- implements ApacheDSServiceMBean
XMBean Service for ApacheDS integration
based on code snippets taken from apache directory examples from http://docs.safehaus.org/display/APACHEDS/Embedding+ApacheDS
https://svn.safehaus.org/repos/sandbox/apachecon/ by akarasulu@apache.org
- Since:
- Sep 29, 2006
- Version:
- $Revision$
- Author:
- Boleslaw Dawidowicz
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, 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.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
objectName
public static java.lang.String objectName
log
private static final org.jboss.logging.Logger log
workingDir
private java.lang.String workingDir
removeWorkingDir
private boolean removeWorkingDir
importInitialLdif
private java.lang.String importInitialLdif
loadLdif
private java.lang.String loadLdif
port
private int port
ApacheDSService
public ApacheDSService()
printDiagnostics
public java.lang.String printDiagnostics()
- Print some information about the DS (eg: connections etc)
- Returns:
- String
startService
public void startService()
throws java.lang.Exception
- Throws:
java.lang.Exception
stopService
public void stopService()
throws java.lang.Exception
- Throws:
java.lang.Exception
getConfiguration
private MutableServerStartupConfiguration getConfiguration()
throws java.lang.Exception
- Throws:
java.lang.Exception
createEnvironment
private java.util.Hashtable createEnvironment()
deleteDir
public static boolean deleteDir(java.io.File dir)
isRemoveWorkingDir
public boolean isRemoveWorkingDir()
setRemoveWorkingDir
public void setRemoveWorkingDir(boolean removeWorkingDir)
getLoadLdif
public java.lang.String getLoadLdif()
setLoadLdif
public void setLoadLdif(java.lang.String loadLdif)
getPort
public int getPort()
setPort
public void setPort(int port)
getImportInitialLdif
public java.lang.String getImportInitialLdif()
setImportInitialLdif
public void setImportInitialLdif(java.lang.String importInitialLdif)