com.mindtree.techworks.insight.spi
Class LogNamespace

java.lang.Object
  extended by com.mindtree.techworks.insight.spi.LogNamespace
All Implemented Interfaces:
java.io.Serializable

public class LogNamespace
extends java.lang.Object
implements java.io.Serializable

The LogNamespace class qualifies the LogEvent class instance with information that identifies the namespace of the instance. The namespace information can be the file name, IP address and port number e.t.c. depending on the source of the LogEvent.

Version:
1.0, 04/12/16
Author:
Regunath B
See Also:
LogEvent, Serialized Form

Constructor Summary
LogNamespace(java.lang.String sourceString, java.lang.String localSourceString, ReceiverFormat[] receiverFormat, java.lang.String nodeId)
          Constructor for this class.
 
Method Summary
 boolean equals(java.lang.Object namespace)
          Overriden superclass method
 java.lang.String getLocalSourceString()
           
 java.lang.String getNamespaceAsString()
          Returns the namespace details as a string of te form: [nodeId] sourceString
 java.lang.String getNodeId()
           
 ReceiverFormat[] getReceiverFormat()
           
 java.lang.String getSourceString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogNamespace

public LogNamespace(java.lang.String sourceString,
                    java.lang.String localSourceString,
                    ReceiverFormat[] receiverFormat,
                    java.lang.String nodeId)
Constructor for this class.

Parameters:
sourceString - the event source string
localSourceString - null or the local source string
receiverFormat - the ReceiverFormat for this LogNamespace
nodeId - the Node if where the events originated
Method Detail

getNamespaceAsString

public java.lang.String getNamespaceAsString()
Returns the namespace details as a string of te form: [nodeId] sourceString

Returns:
Returns the namespaceAsString.

equals

public boolean equals(java.lang.Object namespace)
Overriden superclass method

Overrides:
equals in class java.lang.Object
Parameters:
the - namespace that needs to be evaluated for equals

getNodeId

public java.lang.String getNodeId()
Returns:
Returns the nodeId.

getReceiverFormat

public ReceiverFormat[] getReceiverFormat()
Returns:
Returns the receiverFormat.

getSourceString

public java.lang.String getSourceString()
Returns:
Returns the sourceString.

getLocalSourceString

public java.lang.String getLocalSourceString()
Returns:
Returns the localSourceString.


Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.