## Logger
log4j.file = ${Config.Dir}/mqtt-agents-log4j.cfg

## Database
### if 'db.datasource' has been set or not empty, ignore the rest
db.driver = org.postgresql.Driver
db.url = jdbc:postgresql://localhost:5432/utms_new
db.user = utms
db.password = utms1234

# Mqtt Configuration
#mqtt.broker.url = tcp://unifiedtms.id:1883
mqtt.broker.url = tcp://192.168.4.112:1883
mqtt.clientid_prefix = SENDER_
mqtt.user = user1
mqtt.password = P@ssw0rd
mqtt.keepalive = 10
mqtt.maxinflight = 32
mqtt.cleansession = true
mqtt.autoreconnect = true
## Pending Task Configuration
pendingtask.query.limit = 100
pendingtask.periode.minutes = 30

# Minio
fileserver.endpoint = https://download.unifiedtms.id:9000
fileserver.access_key = i9ZB0sNhHaiQe7oEP0sL
fileserver.secret_key = 4bxVnKwKgkXpZJ9Dou4oprZ1E8oe3s1HuvKLRn0N
fileserver.bucket = application-bucket
fileserver.icon.path = icons
fileserver.icon.expiry = 7
fileserver.icon.timeunit = DAYS
fileserver.app.path = apps
fileserver.app.expiry = 7
fileserver.app.timeunit = DAYS

## Consumers
mqtt.consumers = heartbeat_c, diagnostic_c, device_init_c, download_ack_c
#, diagnostic_c, device_init_c, download_ack_c
### heartbeat_c
mqtt.consumer.heartbeat_c.loggingid = $queue/HEARTBEAT
#mqtt.consumer.heartbeat_c.topic = $share/def/SERVER_IN_HB_2
mqtt.consumer.heartbeat_c.topic = SERVER_IN_HB_2
mqtt.consumer.heartbeat_c.threads = 3
mqtt.consumer.heartbeat_c.clientid_prefix = SNHB_
mqtt.consumer.heartbeat_c.user = user1
mqtt.consumer.heartbeat_c.password = P@ssw0rd
mqtt.consumer.heartbeat_c.sleep = 300000
mqtt.consumer.heartbeat_c.keepalive = 10
mqtt.consumer.heartbeat_c.maxinflight = 32
mqtt.consumer.heartbeat_c.cleansession = true
mqtt.consumer.heartbeat_c.autoreconnect = true
mqtt.consumer.heartbeat_c.workerclass = id.iptek.utms.agent.worker.HeartbeatWorker
mqtt.consumer.heartbeat_c.consumermode = BATCH
mqtt.consumer.heartbeat_c.batch.capacity = 100
### diagnostic_c
mqtt.consumer.diagnostic_c.loggingid = DIAGNOSTIC
mqtt.consumer.diagnostic_c.topic = $share/def/SERVER_IN_DIAG_2
mqtt.consumer.diagnostic_c.threads = 1
mqtt.consumer.diagnostic_c.clientid_prefix = SNDIAG
mqtt.consumer.diagnostic_c.workerclass = SNDIAG_
mqtt.consumer.diagnostic_c.user = user1
mqtt.consumer.diagnostic_c.password = P@ssw0rd
mqtt.consumer.diagnostic_c.sleep = 300000
mqtt.consumer.diagnostic_c.keepalive = 10
mqtt.consumer.diagnostic_c.maxinflight = 32
mqtt.consumer.diagnostic_c.cleansession = true
mqtt.consumer.diagnostic_c.autoreconnect = true
mqtt.consumer.diagnostic_c.workerclass = id.iptek.utms.agent.worker.DiagnosticWorker
mqtt.consumer.diagnostic_c.consumermode = BATCH
mqtt.consumer.diagnostic_c.batch.capacity = 10
### device_init_c
mqtt.consumer.device_init_c.loggingid = DEVICE_INIT
mqtt.consumer.device_init_c.topic = $share/def/SERVER_IN_INIT_2
mqtt.consumer.device_init_c.threads = 10
mqtt.consumer.device_init_c.clientid_prefix = SNINIT
mqtt.consumer.device_init_c.workerclass = SNINIT_
mqtt.consumer.device_init_c.user = user1
mqtt.consumer.device_init_c.password = P@ssw0rd
mqtt.consumer.device_init_c.sleep = 300000
mqtt.consumer.device_init_c.keepalive = 10
mqtt.consumer.device_init_c.maxinflight = 32
mqtt.consumer.device_init_c.cleansession = true
mqtt.consumer.device_init_c.autoreconnect = true
mqtt.consumer.device_init_c.workerclass = id.iptek.utms.agent.worker.DeviceInitWorker
mqtt.consumer.device_init_c.consumermode = SINGLE
mqtt.consumer.device_init_c.batch.capacity = 5
### download_ack_c
mqtt.consumer.download_ack_c.loggingid = DOWNLOAD_ACK
mqtt.consumer.download_ack_c.topic = $share/def/SERVER_IN_DL_ACK
mqtt.consumer.download_ack_c.threads = 5
mqtt.consumer.download_ack_c.clientid_prefix = SNDLACK
mqtt.consumer.download_ack_c.workerclass = SNDLACK_
mqtt.consumer.download_ack_c.user = user1
mqtt.consumer.download_ack_c.password = P@ssw0rd
mqtt.consumer.download_ack_c.sleep = 60000
mqtt.consumer.download_ack_c.keepalive = 10
mqtt.consumer.download_ack_c.maxinflight = 32
mqtt.consumer.download_ack_c.cleansession = true
mqtt.consumer.download_ack_c.autoreconnect = true
mqtt.consumer.download_ack_c.workerclass = id.iptek.utms.agent.worker.DownloadTaskAckWorker

## Schedulers
#schedulers = download_task_publisher
# download_task_publisher
#scheduler.download_task_publisher.jobclass = id.iptek.utms.agent.scheduler.DownloadTaskPublisher
## CRON | SIMPLE
#scheduler.download_task_publisher.trigger.type = SIMPLE
#scheduler.download_task_publisher.trigger.interval = 10
#scheduler.download_task_publisher.trigger.repeat = 10
#scheduler.download_task_publisher.trigger.type = CRON
#scheduler.download_task_publisher.trigger.expression = 0 0/2 8-17 * * ?

scheduler.periode.minutes = 1
