public final class MockReceiver extends PluginSkeleton
namerepository| Constructor and Description |
|---|
MockReceiver()
Create new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions()
Activate options.
|
String |
getHost()
Get the remote host to connect to for logging events.
|
int |
getPort()
Get the remote port to connect to for logging events.
|
boolean |
isActive()
Is plugin active.
|
void |
setHost(String remoteHost)
Configures the Host property, this will require activateOptions
to be called for this to take effect.
|
void |
setPort(int p)
Set the remote port to connect to for logging events.
|
void |
setPort(String remoteHost)
Set the remote host to connect to for logging events.
|
void |
shutdown()
Shutdown.
|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getLoggerRepository, getName, isEquivalent, removePropertyChangeListener, removePropertyChangeListener, setLoggerRepository, setNamegetLogger, getNonFloodingLogger, resetErrorCountpublic void shutdown()
public boolean isActive()
isActive in interface PluginisActive in class PluginSkeletonpublic void activateOptions()
public String getHost()
public void setHost(String remoteHost)
remoteHost - address of remote host.public void setPort(String remoteHost)
remoteHost - address of remote host.public int getPort()
public void setPort(int p)
p - portCopyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.