deegree 2.5 (2011/06/29 09:44 build-8-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:
java.lang.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(java.lang.String server, int instance, java.lang.String database, java.lang.String version, java.lang.String user, java.lang.String password)
           
 
Method Summary
 java.lang.Object acquireObject()
          get an object from the object pool
 void onObjectKill(java.lang.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(java.lang.String server,
               int instance,
               java.lang.String database,
               java.lang.String version,
               java.lang.String user,
               java.lang.String password)
Parameters:
server -
instance -
database -
version -
user -
password -
Method Detail

acquireObject

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

Returns:
an object from the object pool
Throws:
java.lang.Exception

onObjectKill

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

Specified by:
onObjectKill in class ObjectPool

deegree 2.5 (2011/06/29 09:44 build-8-official)

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