|
|||||||||
| 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.ak.ServiceAgent
com.cometway.jdbc.JDBCToXMLAgent
public class JDBCToXMLAgent
This agent uses the JDBCAgent to access a relational database and output data from specified tables in XML format. The tables to be parsed are specified in the property table_names.
| Field Summary |
|---|
| 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 | |
|---|---|
JDBCToXMLAgent()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getTableAsXML(java.lang.String table_name)
|
void |
initProps()
Override this method to initialize this agent's properties before it is started. |
void |
start()
Registers this instance with the service manager using the service_name property. |
| Methods inherited from class com.cometway.ak.ServiceAgent |
|---|
stop |
| Methods inherited from class com.cometway.ak.Agent |
|---|
currentStateEquals, debug, destroy, error, 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 |
| Constructor Detail |
|---|
public JDBCToXMLAgent()
| Method Detail |
|---|
public void initProps()
Agent
initProps in interface AgentInterfaceinitProps in class Agentpublic void start()
ServiceAgent
start in interface AgentInterfacestart in class ServiceAgentpublic java.lang.String getTableAsXML(java.lang.String table_name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||