Changeset 4fd2f1f5cb3d57993fc34dc8d6e742d38454609f

Show
Ignore:
Timestamp:
06/07/09 19:40:49 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1244403649 +0000
git-parent:

[4f39b4d05385ed2a6a1620e2e3a578b2de6a937a]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1244403649 +0000
Message:

This appears to work... now we need to make sure it works well. refs #142

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/java/Makefile.in

    r0f51614 r4fd2f1f  
    3030        com/omniti/reconnoiter/event/StratconQueryStop.java \ 
    3131        com/omniti/reconnoiter/IEPEngine.java \ 
     32        com/omniti/reconnoiter/StratconConfig.java \ 
    3233        com/omniti/reconnoiter/StratconMessage.java 
    3334 
    3435SUPPORT=lib/activemq-all-5.2.0.jar lib/antlr-runtime-3.1.1.jar lib/esper-3.0.0.jar \ 
    3536        lib/log4j-1.2.15.jar lib/spring-beans-2.5.5.jar lib/spring-context-2.5.5.jar \ 
    36         lib/cglib-nodep-2.2.jar 
     37        lib/cglib-nodep-2.2.jar lib/commons-pool-1.4.jar lib/commons-dbcp-1.2.2.jar \ 
     38        lib/postgresql-8.3-604.jdbc3.jar 
    3739 
    3840all:    reconnoiter.jar 
  • src/java/com/omniti/reconnoiter/IEPEngine.java

    r0f51614 r4fd2f1f  
    1515import com.omniti.reconnoiter.event.NoitEvent; 
    1616import com.omniti.reconnoiter.event.NoitMetricNumeric; 
     17import com.omniti.reconnoiter.StratconConfig; 
    1718import com.espertech.esper.client.*; 
    1819import com.espertech.esper.client.soda.*; 
     
    2324  static public void main(String[] args) { 
    2425    BasicConfigurator.configure(); 
     26    if(args.length != 1) { 
     27      System.err.println("Requires exactly one argument"); 
     28      return; 
     29    } 
     30    StratconConfig sconf = new StratconConfig(args[0]); 
    2531 
    2632    Configuration config = new Configuration(); 
     33    config.addDatabaseReference("recondb", sconf.getDBConfig()); 
    2734    config.addEventTypeAutoName("com.omniti.reconnoiter.event"); 
    2835    EPServiceProvider epService = EPServiceProviderManager.getDefaultProvider(config); 
  • src/java/run-iep.sh.in

    r2220278 r4fd2f1f  
    66        esper-3.0.0.jar log4j-1.2.15.jar \ 
    77        spring-beans-2.5.5.jar spring-context-2.5.5.jar \ 
    8         cglib-nodep-2.2.jar" 
     8        cglib-nodep-2.2.jar commons-pool-1.4.jar commons-dbcp-1.2.2.jar \ 
     9        postgresql-8.3-604.jdbc3.jar" 
    910 
    1011DIRS=". lib @prefix@/java" 
     
    2728        fi 
    2829done 
    29 exec $JAVA $JPARAMS -cp $CP com.omniti.reconnoiter.IEPEngine 
     30exec $JAVA $JPARAMS -cp $CP com.omniti.reconnoiter.IEPEngine $* 
  • src/noit_conf.c

    r88a7178 r4fd2f1f  
    185185  return -1; 
    186186} 
     187 
     188char *noit_conf_config_filename() { 
     189  return strdup(master_config_file); 
     190} 
     191 
    187192int noit_conf_xml_xpath(xmlDocPtr *mc, xmlXPathContextPtr *xp) { 
    188193  if(mc) *mc = master_config; 
  • src/noit_conf.h

    r88a7178 r4fd2f1f  
    6363API_EXPORT(int) noit_conf_load(const char *path); 
    6464API_EXPORT(int) noit_conf_save(const char *path); 
     65API_EXPORT(char *) noit_conf_config_filename(); 
    6566 
    6667API_EXPORT(noit_conf_section_t) 
  • src/stratcon_iep.c

    r9ccb08d r4fd2f1f  
    582582  } 
    583583  if(info->child == 0) { 
    584     char *argv[2] = { "run-iep", NULL }; 
     584    char *argv[3] = { "run-iep", NULL, NULL }; 
    585585    int stdout_fileno; 
     586 
     587    argv[1] = noit_conf_config_filename(); 
    586588 
    587589    if(chdir(info->directory) != 0) {