Libraries anvil system Configurable

class Configurable
extends anvil.lang.object
Configurable represents entities declared in server's configuration. These entities form a tree which can be investigated and modified through this class.

Methods

Connection acquireConnection()
Connection acquireConnection(string name)
Acquires connection from given pool.
Throws AcquireError - 

Configurable create(string type)
Creates a new configuration object of given type under this object.
Throws AccessDenied -  if security policy denies this operation

Configurable find(int identity)
Searches for an object with given identity from objects starting from this object.

list getCacheContents()
Returns a list of script cache contents from this zone as Envelope's.
Throws AccessDenied -  if security policy denies this operation

tuple getChilds()
Returns a list of children for this object.

Configurable getDomain()
Returns the domain where this object is located.

int getIdentity()
Returns the identity for this object (memory address).

module getModule()
Returns the root module of libraries.

tuple getMoreNames()
Returns the names of extran (non-fixed) attributes for this object. They are always interpreted as strings.

string getName()
Returns the name of this object.

tuple getNames()
Returns a list of names of valid (fixed) attributes.

Namespace getNamespace()
Namespace getNamespace(string name)
Returns the namespace with given name.
Throws AccessDenied -  if security policy denies this operation

Configurable getParent()
Returns the parent of this object.

Realm getRealm()

Realm getRealm(string name)
Returns the realm with given name.

Configurable getServer()
Returns the server where this object is located.

SessionContainer getSessionContainer()
Returns the zone's session container, of this object if this object is a session container.

string getType()
Returns the type of this object. Type is one of:

tuple getTypes()
Returns a list of types of valid (fixed) attributes. Indices at tuple returned by this object matches with with one returned by getNames().

boolean isStarted()
Checks if this object is started.

Configurable purgeCache()
Removes all compiled scripts from cache under this zone.
Throws AccessDenied -  if security policy denies this operation

boolean remove()
Removes this object.
Throws AccessDenied -  if security policy denies this operation

Configurable reread()
Rereads the server's configuration.
Throws AccessDenied -  if security policy denies this operation
IOError -  if an IO error occured

boolean restart()
Restarts this zone.
Throws AccessDenied -  if security policy denies this operation

Configurable save()
Saves the server's configuration.
Throws AccessDenied -  if security policy denies this operation

boolean start()
Starts this zone.
Throws AccessDenied -  if security policy denies this operation

boolean stop()
Stops this zone.
Throws AccessDenied -  if security policy denies this operation