|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.log4j.spi.ComponentBase
org.apache.log4j.plugins.PluginSkeleton
org.apache.log4j.plugins.Receiver
org.apache.log4j.net.SocketReceiver
public class SocketReceiver
SocketReceiver receives a remote logging event on a configured socket and "posts" it to a LoggerRepository as if the event was generated locally. This class is designed to receive events from the SocketAppender class (or classes that send compatible events).
Once the event has been "posted", it will be handled by the appenders currently configured in the LoggerRespository.
| フィールドの概要 | |
|---|---|
protected int |
port
Port. |
static java.lang.String |
ZONE
The MulticastDNS zone advertised by a SocketReceiver |
| クラス org.apache.log4j.plugins.Receiver から継承されたフィールド |
|---|
thresholdLevel |
| クラス org.apache.log4j.plugins.PluginSkeleton から継承されたフィールド |
|---|
active, name |
| クラス org.apache.log4j.spi.ComponentBase から継承されたフィールド |
|---|
repository |
| コンストラクタの概要 | |
|---|---|
SocketReceiver()
Create new instance. |
|
SocketReceiver(int p)
Create new instance. |
|
SocketReceiver(int p,
org.apache.log4j.spi.LoggerRepository repo)
Create new instance. |
|
| メソッドの概要 | |
|---|---|
void |
activateOptions()
Starts the SocketReceiver with the current options. |
void |
addSocketNodeEventListener(SocketNodeEventListener l)
Adds the listener to the list of listeners to be notified of the respective event. |
void |
doPost(org.apache.log4j.spi.LoggingEvent event)
|
java.util.Vector |
getConnectedSocketDetails()
Returns a Vector of SocketDetail representing the IP/Domain name of the currently connected sockets that this receiver has been responsible for creating. |
SocketNodeEventListener |
getListener()
推奨されていません。 This receiver now supports multiple listeners |
int |
getPort()
Returns the Port # that this net based thing is using. |
boolean |
isAdvertiseViaMulticastDNS()
|
boolean |
isEquivalent(org.apache.log4j.plugins.Plugin testPlugin)
Returns true if the receiver is the same class and they are configured for the same properties, and super class also considers them to be equivalent. |
boolean |
isPaused()
|
void |
removeSocketNodeEventListener(SocketNodeEventListener l)
Removes the registered Listener from this instances list of listeners. |
void |
run()
Loop, accepting new socket connections. |
protected void |
setActive(boolean b)
Sets the flag to indicate if receiver is active or not. |
void |
setAdvertiseViaMulticastDNS(boolean advertiseViaMulticastDNS)
|
void |
setListener(SocketNodeEventListener l)
推奨されていません。 This receiver now supports multiple listeners and so this method simply removes the listener (if there already) and readds it to the list. The passed listener will also be returned via the getListener() method still, but this is also deprecated |
void |
setPaused(boolean b)
|
void |
setPort(int p)
|
void |
shutdown()
Called when the receiver should be stopped. |
| クラス org.apache.log4j.plugins.Receiver から継承されたメソッド |
|---|
getThreshold, isAsSevereAsThreshold, setThreshold |
| クラス org.apache.log4j.plugins.PluginSkeleton から継承されたメソッド |
|---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getLoggerRepository, getName, isActive, removePropertyChangeListener, removePropertyChangeListener, setLoggerRepository, setName |
| クラス org.apache.log4j.spi.ComponentBase から継承されたメソッド |
|---|
getLogger, getNonFloodingLogger, resetErrorCount |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース org.apache.log4j.net.NetworkBased から継承されたメソッド |
|---|
getName, isActive |
| フィールドの詳細 |
|---|
protected int port
public static final java.lang.String ZONE
| コンストラクタの詳細 |
|---|
public SocketReceiver()
public SocketReceiver(int p)
p - port
public SocketReceiver(int p,
org.apache.log4j.spi.LoggerRepository repo)
p - portrepo - logger repository| メソッドの詳細 |
|---|
public int getPort()
PortBased 内の getPortpublic void setPort(int p)
public boolean isEquivalent(org.apache.log4j.plugins.Plugin testPlugin)
org.apache.log4j.plugins.Plugin 内の isEquivalentorg.apache.log4j.plugins.PluginSkeleton 内の isEquivalenttestPlugin - The plugin to test equivalency against.
public void activateOptions()
org.apache.log4j.spi.OptionHandler 内の activateOptionspublic void shutdown()
org.apache.log4j.plugins.Plugin 内の shutdownprotected void setActive(boolean b)
b - new valuepublic void setAdvertiseViaMulticastDNS(boolean advertiseViaMulticastDNS)
public boolean isAdvertiseViaMulticastDNS()
public void run()
java.lang.Runnable 内の runpublic java.util.Vector getConnectedSocketDetails()
public SocketNodeEventListener getListener()
public void addSocketNodeEventListener(SocketNodeEventListener l)
l - the listener to add to the listpublic void removeSocketNodeEventListener(SocketNodeEventListener l)
l - the SocketNodeEventListener to removepublic void setListener(SocketNodeEventListener l)
l - the listener to set on each creation of a SocketNodepublic boolean isPaused()
org.apache.log4j.plugins.Pauseable 内の isPausedpublic void setPaused(boolean b)
org.apache.log4j.plugins.Pauseable 内の setPausedpublic void doPost(org.apache.log4j.spi.LoggingEvent event)
org.apache.log4j.plugins.Receiver 内の doPost
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||