org.exist.xmldb
Class DatabaseInstanceManagerImpl

java.lang.Object
  extended byorg.exist.xmldb.DatabaseInstanceManagerImpl
All Implemented Interfaces:
Configurable, DatabaseInstanceManager, Service

public class DatabaseInstanceManagerImpl
extends java.lang.Object
implements DatabaseInstanceManager

Author:
wolf To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.

Field Summary
protected  org.apache.xmlrpc.XmlRpcClient client
           
 
Constructor Summary
DatabaseInstanceManagerImpl(org.apache.xmlrpc.XmlRpcClient client)
          Constructor for DatabaseInstanceManagerImpl.
 
Method Summary
 java.lang.String getName()
          Returns the name associated with the Service instance.
 java.lang.String getProperty(java.lang.String arg0)
          Returns the value of the property identified by name.
 DatabaseStatus getStatus()
           
 java.lang.String getVersion()
          Gets the Version attribute of the Service object
 boolean isLocalInstance()
          Returns true if the database instance is running local, i.e.
 void setCollection(Collection arg0)
          Sets the Collection attribute of the Service object
 void setProperty(java.lang.String arg0, java.lang.String arg1)
          Sets the property name to have the value provided in value.
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected org.apache.xmlrpc.XmlRpcClient client
Constructor Detail

DatabaseInstanceManagerImpl

public DatabaseInstanceManagerImpl(org.apache.xmlrpc.XmlRpcClient client)
Constructor for DatabaseInstanceManagerImpl.

Method Detail

shutdown

public void shutdown()
              throws XMLDBException
Specified by:
shutdown in interface DatabaseInstanceManager
Throws:
XMLDBException
See Also:
DatabaseInstanceManager.shutdown()

getName

public java.lang.String getName()
                         throws XMLDBException
Description copied from interface: Service
Returns the name associated with the Service instance.

Specified by:
getName in interface Service
Returns:
the name of the object.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.
See Also:
Service.getName()

getVersion

public java.lang.String getVersion()
                            throws XMLDBException
Description copied from interface: Service
Gets the Version attribute of the Service object

Specified by:
getVersion in interface Service
Returns:
The Version value
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.
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:

setCollection

public void setCollection(Collection arg0)
                   throws XMLDBException
Description copied from interface: Service
Sets the Collection attribute of the Service object

Specified by:
setCollection in interface Service
Parameters:
arg0 - The new Collection value
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.
See Also:
Service.setCollection(org.xmldb.api.base.Collection)

getProperty

public java.lang.String getProperty(java.lang.String arg0)
                             throws XMLDBException
Description copied from interface: Configurable
Returns the value of the property identified by name.

Specified by:
getProperty in interface Configurable
Parameters:
arg0 - the name of the property to retrieve.
Returns:
the property value or null if no property exists.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.
See Also:
Configurable.getProperty(java.lang.String)

setProperty

public void setProperty(java.lang.String arg0,
                        java.lang.String arg1)
                 throws XMLDBException
Description copied from interface: Configurable
Sets the property name to have the value provided in value.

Specified by:
setProperty in interface Configurable
Parameters:
arg0 - the name of the property to set.
arg1 - the value to set for the property.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.
See Also:
Configurable.setProperty(java.lang.String, java.lang.String)

getStatus

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


Copyright (C) Wolfgang Meier. All rights reserved.