All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.agent.PushAgentDaemon Maven / Gradle / Ivy

There is a newer version: 4.36
Show newest version
package com.wavefront.agent;

import org.apache.commons.daemon.Daemon;
import org.apache.commons.daemon.DaemonContext;
import org.apache.commons.daemon.DaemonInitException;

/**
 * @author Mori Bellamy ([email protected])
 */
public class PushAgentDaemon implements Daemon {
    private PushAgent agent;
    private DaemonContext daemonContext;

    @Override
    public void init(DaemonContext daemonContext) throws DaemonInitException, Exception {
        this.daemonContext = daemonContext;
        agent = new PushAgent();
    }

    @Override
    public void start() throws Exception {
        agent.start(daemonContext.getArguments());
    }

    @Override
    public void stop() throws Exception {

    }

    @Override
    public void destroy() {

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy