com.ptc.elog
Class ElogRecord

java.lang.Object
  extended bycom.ptc.elog.ElogRecord

public class ElogRecord
extends Object


Field Summary
private static int APP1
           
private static int APP2
           
private static int CLASS1
           
private static int CLASS2
           
static SimpleDateFormat DATE_FORMAT
           
private static int DATE1
           
private static int DATE2
           
static int LEN_APP
           
static int LEN_CLASS
           
static int LEN_DATE
           
static int LEN_EOL
           
static int LEN_MSG
           
static int LEN_NODE
           
static int LEN_REC
           
static int LEN_THREAD
           
static int LEN_USER
           
static int LEN_VERBOSITY
           
private  Date m_date
           
private  int m_nVerbosity
           
private  String m_strApp
           
private  String m_strClass
           
private  String m_strMsg
           
private  String m_strNode
           
private  String m_strThread
           
private  String m_strUser
           
private static int MSG1
           
private static int MSG2
           
private static int NODE1
           
private static int NODE2
           
private static int THREAD1
           
private static int THREAD2
           
private static int USER1
           
private static int USER2
           
private static int VERB1
           
private static int VERB2
           
 
Constructor Summary
ElogRecord(Date d, String n, String a, String t, String u, String c, int v, String m)
          Constructor Creates an ElogRecord from individual arguments.
ElogRecord(String s)
          Constructor Creates an ElogRecord from a String.
 
Method Summary
 String getApp()
          This gets the App from an ElogRecord.
 Date getDate()
          This gets the Date from an ElogRecord.
 String getElogClass()
          This gets the Class from an ElogRecord.
 String getMsg()
          This gets the Message from an ElogRecord.
 String getNode()
          This gets the Node from an ElogRecord.
 String getThread()
          This gets the Thread from an ElogRecord.
 String getUser()
          This gets the User from an ElogRecord.
 int getVerbosity()
          This gets the Verbosity from an ElogRecord.
 boolean isValid()
          This validates an ElogRecord.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEN_DATE

public static final int LEN_DATE
See Also:
Constant Field Values

LEN_NODE

public static final int LEN_NODE
See Also:
Constant Field Values

LEN_APP

public static final int LEN_APP
See Also:
Constant Field Values

LEN_THREAD

public static final int LEN_THREAD
See Also:
Constant Field Values

LEN_USER

public static final int LEN_USER
See Also:
Constant Field Values

LEN_CLASS

public static final int LEN_CLASS
See Also:
Constant Field Values

LEN_VERBOSITY

public static final int LEN_VERBOSITY
See Also:
Constant Field Values

LEN_MSG

public static final int LEN_MSG
See Also:
Constant Field Values

LEN_EOL

public static final int LEN_EOL
See Also:
Constant Field Values

LEN_REC

public static final int LEN_REC
See Also:
Constant Field Values

DATE_FORMAT

public static final SimpleDateFormat DATE_FORMAT

DATE1

private static final int DATE1
See Also:
Constant Field Values

DATE2

private static final int DATE2
See Also:
Constant Field Values

NODE1

private static final int NODE1
See Also:
Constant Field Values

NODE2

private static final int NODE2
See Also:
Constant Field Values

APP1

private static final int APP1
See Also:
Constant Field Values

APP2

private static final int APP2
See Also:
Constant Field Values

THREAD1

private static final int THREAD1
See Also:
Constant Field Values

THREAD2

private static final int THREAD2
See Also:
Constant Field Values

USER1

private static final int USER1
See Also:
Constant Field Values

USER2

private static final int USER2
See Also:
Constant Field Values

CLASS1

private static final int CLASS1
See Also:
Constant Field Values

CLASS2

private static final int CLASS2
See Also:
Constant Field Values

VERB1

private static final int VERB1
See Also:
Constant Field Values

VERB2

private static final int VERB2
See Also:
Constant Field Values

MSG1

private static final int MSG1
See Also:
Constant Field Values

MSG2

private static final int MSG2
See Also:
Constant Field Values

m_date

private Date m_date

m_strNode

private String m_strNode

m_strApp

private String m_strApp

m_strThread

private String m_strThread

m_strUser

private String m_strUser

m_strClass

private String m_strClass

m_nVerbosity

private int m_nVerbosity

m_strMsg

private String m_strMsg
Constructor Detail

ElogRecord

public ElogRecord(String s)
Constructor Creates an ElogRecord from a String. If the param is null, then just returns. If the param String is too long, then trims it. If the param String is too short, then just returns.

Parameters:
s - - The string to parse into a structured ElogRecord.
Since:
19 May, 1999

ElogRecord

public ElogRecord(Date d,
                  String n,
                  String a,
                  String t,
                  String u,
                  String c,
                  int v,
                  String m)
Constructor Creates an ElogRecord from individual arguments. Truncates the Message string to LEN_MSG characters. If any param is null, then just returns.

Parameters:
d - - The Date
n - - The Node
a - - The Application
t - - The Thread
u - - The User
c - - The Class
v - - The Verbosity
m - - The Message
Since:
19 May, 1999
Method Detail

getDate

public Date getDate()
This gets the Date from an ElogRecord.

Returns:
The Date of the ElogRecord.
Since:
19 May, 1999

getNode

public String getNode()
This gets the Node from an ElogRecord.

Returns:
The Node of the ElogRecord.
Since:
19 May, 1999

getApp

public String getApp()
This gets the App from an ElogRecord.

Returns:
The App of the ElogRecord.
Since:
19 May, 1999

getThread

public String getThread()
This gets the Thread from an ElogRecord.

Returns:
The Thread of the ElogRecord.
Since:
19 May, 1999

getUser

public String getUser()
This gets the User from an ElogRecord.

Returns:
The User of the ElogRecord.
Since:
19 May, 1999

getElogClass

public String getElogClass()
This gets the Class from an ElogRecord.

Returns:
The Class of the ElogRecord.
Since:
19 May, 1999

getVerbosity

public int getVerbosity()
This gets the Verbosity from an ElogRecord.

Returns:
The Verbosity of the ElogRecord.
Since:
19 May, 1999

getMsg

public String getMsg()
This gets the Message from an ElogRecord.

Returns:
The Message of the ElogRecord.
Since:
19 May, 1999

isValid

public boolean isValid()
This validates an ElogRecord.

Returns:
true or false.
Since:
2 jun, 1999