|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.props.Props
com.cometway.ak.Agent
com.cometway.jdbc.JDBCAgent
com.cometway.jdbc.PooledJDBCAgent
public class PooledJDBCAgent
| Field Summary | |
|---|---|
protected JDBCConnectionDriver |
jdbcConnectionDriver
|
| Fields inherited from class com.cometway.ak.Agent |
|---|
agent_id, agentController, CREATING_STATE, debugReporter, DESTROYED_STATE, DESTROYING_STATE, errorReporter, FAILED_STATE, printlnReporter, props, RUNNING_STATE, STARTING_STATE, STOPPED_STATE, STOPPING_STATE, warningReporter |
| Constructor Summary | |
|---|---|
PooledJDBCAgent()
|
|
| Method Summary | |
|---|---|
protected void |
closeConnectionDriver()
|
java.sql.Connection |
getConnection()
Creates a new connection to the database using the current JDBC related settings. |
void |
initProps()
Initializes the Props for this agent: "jdbc_driver" is the classname of the JDBC driver to use (default: sun.jdbc.odbc.JdbcOdbcDriver), "jdbc_url" is the JDBC URL of the database (ie: jdbc:odbc:mydb), "jdbc_username" is the database login username (default: none), "jdbc_password" is the database login password (default: none), "service_name" is the service_name used to register this agent if it is to be used as a service (default: none). |
protected void |
openConnectionDriver()
|
void |
start()
Starts this agent by |
void |
stop()
Override this method to handle stop requests from the agent kernel. |
| Methods inherited from class com.cometway.jdbc.JDBCAgent |
|---|
closeConnection, createTable, dropTable, error, executeInsert, executeQuery, executeQuery, executeUpdate, executeUpdate, getInsertPropsSQL |
| Methods inherited from class com.cometway.ak.Agent |
|---|
currentStateEquals, debug, destroy, error, getAgentController, getDateTimeStr, getProps, getServiceImpl, getStateMachineModel, println, register, registerService, setAgentController, setProps, toString, unregister, unregisterService, warning, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JDBCConnectionDriver jdbcConnectionDriver
| Constructor Detail |
|---|
public PooledJDBCAgent()
| Method Detail |
|---|
public void initProps()
JDBCAgent
initProps in interface AgentInterfaceinitProps in class JDBCAgentpublic void start()
JDBCAgent
start in interface AgentInterfacestart in class JDBCAgentpublic void stop()
Agent
stop in interface AgentInterfacestop in class JDBCAgentprotected void closeConnectionDriver()
public java.sql.Connection getConnection()
throws java.sql.SQLException
JDBCAgent
getConnection in class JDBCAgentjava.sql.SQLExceptionprotected void openConnectionDriver()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||