com.xebialabs.deployit.plugin.tomcat.ci
Class TomcatDataSource

java.lang.Object
  extended by com.xebialabs.deployit.BaseConfigurationItem
      extended by com.xebialabs.deployit.plugin.tomcat.ci.TomcatResource
          extended by com.xebialabs.deployit.plugin.tomcat.ci.TomcatDataSource
All Implemented Interfaces:
java.io.Serializable

@ConfigurationItem
public class TomcatDataSource
extends TomcatResource

A Tomcat JDBC DataSource, based on default DBCP connection pool from the Apache's commons project.

See Also:
Serialized Form

Field Summary
private  java.lang.String connectionUrl
           
private  java.lang.String driverClass
           
private  int maxActive
           
private  int maxIdle
           
private  int maxWait
           
private  java.lang.String password
           
private  java.lang.String username
           
 
Fields inherited from class com.xebialabs.deployit.BaseConfigurationItem
label
 
Constructor Summary
TomcatDataSource()
           
 
Method Summary
 java.lang.String getConnectionUrl()
           
 java.lang.String getDriverClass()
           
 int getMaxActive()
           
 int getMaxIdle()
           
 int getMaxWait()
           
 java.lang.String getPassword()
           
 java.lang.String getUsername()
           
 void setConnectionUrl(java.lang.String connectionUrl)
           
 void setDriverClass(java.lang.String driverClass)
           
 void setMaxActive(int maxActive)
           
 void setMaxIdle(int maxIdle)
           
 void setMaxWait(int maxWait)
           
 void setPassword(java.lang.String password)
           
 void setUsername(java.lang.String username)
           
 
Methods inherited from class com.xebialabs.deployit.plugin.tomcat.ci.TomcatResource
getJndiName, setJndiName
 
Methods inherited from class com.xebialabs.deployit.BaseConfigurationItem
equals, getLabel, hashCode, setLabel, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

driverClass

@ConfigurationItemProperty
private java.lang.String driverClass

connectionUrl

@ConfigurationItemProperty(size=LARGE)
private java.lang.String connectionUrl

username

@ConfigurationItemProperty
private java.lang.String username

password

@ConfigurationItemProperty(password=true)
private java.lang.String password

maxActive

@ConfigurationItemProperty(description="The maximum number of active instances that can be allocated from this pool at the same time")
private int maxActive

maxIdle

@ConfigurationItemProperty(description="The maximum number of connections that can sit idle in this pool at the same time")
private int maxIdle

maxWait

@ConfigurationItemProperty(description="The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception")
private int maxWait
Constructor Detail

TomcatDataSource

public TomcatDataSource()
Method Detail

getDriverClass

public java.lang.String getDriverClass()

setDriverClass

public void setDriverClass(java.lang.String driverClass)

getConnectionUrl

public java.lang.String getConnectionUrl()

setConnectionUrl

public void setConnectionUrl(java.lang.String connectionUrl)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getMaxActive

public int getMaxActive()

setMaxActive

public void setMaxActive(int maxActive)

getMaxIdle

public int getMaxIdle()

setMaxIdle

public void setMaxIdle(int maxIdle)

getMaxWait

public int getMaxWait()

setMaxWait

public void setMaxWait(int maxWait)


Copyright © 2010. All Rights Reserved.