Class Agent

java.lang.Object
org.apache.log4j.jmx.Agent

@Deprecated public class Agent extends Object
Deprecated.
Manages an instance of com.sun.jdmk.comm.HtmlAdapterServer which was provided for demonstration purposes in the Java Management Extensions Reference Implementation 1.2.1. This class is provided to maintain compatibility with earlier versions of log4j and use in new code is discouraged.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static Logger
    Deprecated. 
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated. 
  • Method Summary

    Modifier and Type
    Method
    Description
    private static Object
    Deprecated.
    Creates a new instance of com.sun.jdmk.comm.HtmlAdapterServer using reflection.
    void
    Deprecated. 
    private static void
    Deprecated.
    Invokes HtmlAdapterServer.start() using reflection.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Agent

      @Deprecated public Agent()
      Deprecated.
      Create new instance.
  • Method Details

    • createServer

      private static Object createServer()
      Deprecated.
      Creates a new instance of com.sun.jdmk.comm.HtmlAdapterServer using reflection.
      Returns:
      new instance.
      Since:
      1.2.16
    • startServer

      private static void startServer(Object server)
      Deprecated.
      Invokes HtmlAdapterServer.start() using reflection.
      Parameters:
      server - instance of com.sun.jdmk.comm.HtmlAdapterServer.
      Since:
      1.2.16
    • start

      @Deprecated public void start()
      Deprecated.
      Starts instance of HtmlAdapterServer.