02/28/2005
 

com.epicentric.event
Class FileEventLog

java.lang.Object
  |
  +--com.epicentric.event.FileEventLog
All Implemented Interfaces:
EventLog

Deprecated. in 4.0, to be removed in 8.0 or later; no replacement

public class FileEventLog
extends Object
implements EventLog

Accepts events from applications and sends them to a receiver. This implementation writes events to a file, and creates a FileTransmitter to post old files to the designated receiver. Format of the sent message is as follows: DateTime::localHostName::localHostIPAddress::callerId::eventId::message;


Field Summary
static int DEFAULT_INTERVAL_SECS
          Deprecated.  
static String DELIMITER
          Deprecated.  
static String EVENT_SUBDIR
          Deprecated.  
static int ROLLOVER_SIZE_BYTES
          Deprecated.  
 
Constructor Summary
FileEventLog()
          Deprecated. Constructor.
 
Method Summary
 void close()
          Deprecated. Perform orderly close of the event log.
 String getLocalHostIPAddress()
          Deprecated. Return local host IP address as string.
 void logEvent(String callerId, int eventId, String message)
          Deprecated. Log a message for caller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_SUBDIR

public static String EVENT_SUBDIR
Deprecated. 

ROLLOVER_SIZE_BYTES

public static int ROLLOVER_SIZE_BYTES
Deprecated. 

DEFAULT_INTERVAL_SECS

public static int DEFAULT_INTERVAL_SECS
Deprecated. 

DELIMITER

public static String DELIMITER
Deprecated. 
Constructor Detail

FileEventLog

public FileEventLog()
             throws LogException,
                    IOException
Deprecated. 
Constructor.
Method Detail

logEvent

public void logEvent(String callerId,
                     int eventId,
                     String message)
Deprecated. 
Log a message for caller.
Specified by:
logEvent in interface EventLog
Parameters:
callerId - is a string that identifies the calling process (not necessarily the calling method).
eventId - can be one of EventLogManager's predefined events, or a caller-defined event. Caller-defined events typically should be in the range of runtime events defined in EventLogManager, though an implementer of this class does not need to enforce it.

close

public void close()
Deprecated. 
Perform orderly close of the event log.
Specified by:
close in interface EventLog

getLocalHostIPAddress

public String getLocalHostIPAddress()
Deprecated. 
Return local host IP address as string.

02/28/2005
 

Copyright and Trademark Notices