Skip to content

mises-id/OM-ADC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenMediation Data Collector

OpenMediation Data Collector is used for pulling data from AdNetworks API
This service should run singleton.

Usage

Packaging

You can package using mvn.

mvn clean package -Dmaven.test.skip=true

After packaging is complete, you can find "on-adc.jar" in the directory "target".
"om-adc.jar" is a executable jar, see springboot

Configuration

"application-prod.yml"
replace auth.domain to om-ds-server host:port

auth:
  dir: auth
  domain: {om-ds-server}

"om-adc.conf"

## springboot cfg ###
MODE=service
APP_NAME=om-adc
#JAVA_HOME=/usr/local/java/jdk
JAVA_OPTS="-Dapp=$APP_NAME\
 -Duser.timezone=UTC\
 -Xmx3g\
 -Xms1g\
 -server"

RUN_ARGS="--spring.profiles.active=prod"
PID_FOLDER=log
LOG_FOLDER=log
LOG_FILENAME=stdout.log

Run

put "om-adc.conf" and "om-adc.jar" in the same directory.

mkdir -p log
./om-adc.jar start

Logs

tail -f log/stdout.log

Stop

./om-adc.jar stop

Restart

./om-adc.jar restart

About

OpenMediation AdNetwork Data Collector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 97.6%
  • Shell 1.4%
  • Other 1.0%