Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.logging.log4j.flume.appender
Class Agent

    java.lang.Object
      org.apache.logging.log4j.flume.appender.Agent

    @Plugin(name="Agent",
            category="Core",
            printObject=true)
    public final class Agent

extends Object

Agent Specification for FlumeAvroAppender.

Method Summary
`static Agent` | `createAgent(String host, String port)` Create an Agent.
`String` | `getHost()` Retrieve the host name.
`int` | `getPort()` Retrieve the port number.
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Method Detail

### getHost

    public String getHost()

  Retrieve the host name.

  Returns:
    The name of the host.

### getPort

    public int getPort()

  Retrieve the port number.

  Returns:
    The port number.

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### createAgent

    @PluginFactory
    public static Agent createAgent(@PluginAttribute(value="host")
                                                  String host,
                                                  @PluginAttribute(value="port")
                                                  String port)

  Create an Agent.

  Parameters:
    `host` - The host name.
    `port` - The port number.
  Returns:
    The Agent.

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.