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

com.wavefront.agent.WavefrontProxyService 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;

/** @author Mori Bellamy ([email protected]) */
public class WavefrontProxyService implements Daemon {

  private PushAgent agent;
  private DaemonContext daemonContext;

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

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

  @Override
  public void stop() {
    agent.shutdown();
  }

  @Override
  public void destroy() {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy