org.exist.xmldb
Class LocalDatabaseInstanceManager

java.lang.Object
  extended by org.exist.xmldb.LocalDatabaseInstanceManager
All Implemented Interfaces:
DatabaseInstanceManager, Configurable, Service

public class LocalDatabaseInstanceManager
extends Object
implements DatabaseInstanceManager

Local implementation of the DatabaseInstanceManager.


Constructor Summary
LocalDatabaseInstanceManager(Subject user, BrokerPool pool)
           
 
Method Summary
 boolean enterServiceMode()
           
 void exitServiceMode()
           
 String getName()
           
 String getProperty(String arg0)
           
 DatabaseStatus getStatus()
           
 String getVersion()
           
 boolean isLocalInstance()
          Returns true if the database instance is running local, i.e. in the same thread as this service.
 boolean isXACMLEnabled()
          Returns true if XACML is enabled for the database instance.
 void setCollection(Collection arg0)
           
 void setProperty(String arg0, String arg1)
           
 void shutdown()
          Immediately shutdown the current database instance.
 void shutdown(long delay)
          Shutdown the current database instance after the specified delay (in milliseconds).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalDatabaseInstanceManager

public LocalDatabaseInstanceManager(Subject user,
                                    BrokerPool pool)
Method Detail

shutdown

public void shutdown()
              throws XMLDBException
Description copied from interface: DatabaseInstanceManager
Immediately shutdown the current database instance. This current user should be a member of the "dba" group or an exception will be thrown.

Specified by:
shutdown in interface DatabaseInstanceManager
Throws:
XMLDBException

shutdown

public void shutdown(long delay)
              throws XMLDBException
Description copied from interface: DatabaseInstanceManager
Shutdown the current database instance after the specified delay (in milliseconds). This current user should be a member of the "dba" group or an exception will be thrown.

Specified by:
shutdown in interface DatabaseInstanceManager
Throws:
XMLDBException

enterServiceMode

public boolean enterServiceMode()
                         throws XMLDBException
Specified by:
enterServiceMode in interface DatabaseInstanceManager
Throws:
XMLDBException

exitServiceMode

public void exitServiceMode()
                     throws XMLDBException
Specified by:
exitServiceMode in interface DatabaseInstanceManager
Throws:
XMLDBException

getStatus

public DatabaseStatus getStatus()
                         throws XMLDBException
Specified by:
getStatus in interface DatabaseInstanceManager
Throws:
XMLDBException

getName

public String getName()
               throws XMLDBException
Specified by:
getName in interface Service
Throws:
XMLDBException
See Also:
Service.getName()

getVersion

public String getVersion()
                  throws XMLDBException
Specified by:
getVersion in interface Service
Throws:
XMLDBException
See Also:
Service.getVersion()

isLocalInstance

public boolean isLocalInstance()
Description copied from interface: DatabaseInstanceManager
Returns true if the database instance is running local, i.e. in the same thread as this service.

Specified by:
isLocalInstance in interface DatabaseInstanceManager
Returns:
true if the database instance is running local

setCollection

public void setCollection(Collection arg0)
                   throws XMLDBException
Specified by:
setCollection in interface Service
Throws:
XMLDBException
See Also:
Service.setCollection(org.xmldb.api.base.Collection)

getProperty

public String getProperty(String arg0)
                   throws XMLDBException
Specified by:
getProperty in interface Configurable
Throws:
XMLDBException
See Also:
Configurable.getProperty(java.lang.String)

setProperty

public void setProperty(String arg0,
                        String arg1)
                 throws XMLDBException
Specified by:
setProperty in interface Configurable
Throws:
XMLDBException
See Also:
Configurable.setProperty(java.lang.String, java.lang.String)

isXACMLEnabled

public boolean isXACMLEnabled()
                       throws XMLDBException
Description copied from interface: DatabaseInstanceManager
Returns true if XACML is enabled for the database instance.

Specified by:
isXACMLEnabled in interface DatabaseInstanceManager
Returns:
True if XACML is enabled
Throws:
XMLDBException


Copyright (C) The eXist-db Project. All rights reserved.