org.exist.xmldb
Class LocalDatabaseInstanceManager

java.lang.Object
  extended byorg.exist.xmldb.LocalDatabaseInstanceManager
All Implemented Interfaces:
DatabaseInstanceManager

public class LocalDatabaseInstanceManager
extends java.lang.Object
implements DatabaseInstanceManager

Local implementation of the DatabaseInstanceManager.


Field Summary
protected  BrokerPool pool
           
protected  User user
           
 
Constructor Summary
LocalDatabaseInstanceManager(User user, BrokerPool pool)
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getProperty(java.lang.String arg0)
           
 DatabaseStatus getStatus()
           
 java.lang.String getVersion()
           
 boolean isLocalInstance()
          Returns true if the database instance is running local, i.e.
 boolean isXACMLEnabled()
          Returns true if XACML is enabled for the database instance.
 void setCollection(Collection arg0)
           
 void setProperty(java.lang.String arg0, java.lang.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pool

protected BrokerPool pool

user

protected User user
Constructor Detail

LocalDatabaseInstanceManager

public LocalDatabaseInstanceManager(User 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

getStatus

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

getName

public java.lang.String getName()
                         throws XMLDBException
Throws:
XMLDBException
See Also:
org.xmldb.api.base.Service#getName()

getVersion

public java.lang.String getVersion()
                            throws XMLDBException
Throws:
XMLDBException
See Also:
org.xmldb.api.base.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:

setCollection

public void setCollection(Collection arg0)
                   throws XMLDBException
Throws:
XMLDBException
See Also:
org.xmldb.api.base.Service#setCollection(org.xmldb.api.base.Collection)

getProperty

public java.lang.String getProperty(java.lang.String arg0)
                             throws XMLDBException
Throws:
XMLDBException
See Also:
org.xmldb.api.base.Configurable#getProperty(java.lang.String)

setProperty

public void setProperty(java.lang.String arg0,
                        java.lang.String arg1)
                 throws XMLDBException
Throws:
XMLDBException
See Also:
org.xmldb.api.base.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
Throws:
XMLDBException


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.