站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

ApacheDSService - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.framework.embedded.apacheds
Class ApacheDSService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.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

Nested Class Summary
 class ApacheDSService.GetSystemPropertyAction
          A GetSystemPropetyAction.
 
Field Summary
private  java.lang.String importInitialLdif
           
private  java.lang.String loadLdif
           
private static org.jboss.logging.Logger log
           
static java.lang.String objectName
           
private  int port
           
private  boolean removeWorkingDir
           
private  java.lang.String workingDir
           
 
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
 
Constructor Summary
ApacheDSService()
           
 
Method Summary
private  java.util.Hashtable createEnvironment()
           
static boolean deleteDir(java.io.File dir)
           
private  MutableServerStartupConfiguration getConfiguration()
           
 java.lang.String getImportInitialLdif()
           
 java.lang.String getLoadLdif()
           
 int getPort()
           
 boolean isRemoveWorkingDir()
           
 java.lang.String printDiagnostics()
          Print some information about the DS (eg: connections etc)
 void setImportInitialLdif(java.lang.String importInitialLdif)
           
 void setLoadLdif(java.lang.String loadLdif)
           
 void setPort(int port)
           
 void setRemoveWorkingDir(boolean removeWorkingDir)
           
 void startService()
           
 void stopService()
           
 
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
 

Field Detail

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
Constructor Detail

ApacheDSService

public ApacheDSService()
Method Detail

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)