deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.sdeapi
Class SDEPool

java.lang.Object
  extended by java.util.TimerTask
      extended by org.deegree.framework.util.ObjectPool
          extended by org.deegree.io.sdeapi.SDEPool
All Implemented Interfaces:
Runnable

public class SDEPool
extends ObjectPool

class to manage a pool of sde connections.

Version:
2.0
Author:
Christoph Pollmann

Field Summary
 
Fields inherited from class org.deegree.framework.util.ObjectPool
available, existingInstances, in_use, startLifeTime, startUsageTime
 
Constructor Summary
SDEPool(String server, int instance, String database, String version, String user, String password)
           
 
Method Summary
 Object acquireObject()
          get an object from the object pool
 void onObjectKill(Object o)
          will be called when the object is removed from the pool
 
Methods inherited from class org.deegree.framework.util.ObjectPool
clear, getInstance, getMaxInstances, getMaxLifeTime, getMaxUsageTime, getUpdateInterval, releaseObject, run, setMaxInstances, setMaxLifeTime, setMaxUsageTime, setUpdateInterval, toString
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SDEPool

public SDEPool(String server,
               int instance,
               String database,
               String version,
               String user,
               String password)
Parameters:
server -
instance -
database -
version -
user -
password -
Method Detail

acquireObject

public Object acquireObject()
                     throws Exception
get an object from the object pool

Returns:
an object from the object pool
Throws:
Exception

onObjectKill

public void onObjectKill(Object o)
will be called when the object is removed from the pool

Specified by:
onObjectKill in class ObjectPool

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org