org.apache.log4j.ext

Interface SysUpTimeResolver

public interface SysUpTimeResolver

Title: SysUpTimeResolver
Description: A class implementing this interface must provide a way of returning the system "up time", in milliseconds. For example, you might have a class the uses a JNI call to an operating system API to determine the real "up time" of the host machine. You would specify the FQN of your implmenting class in your properties file. The SNMPTrapAppender includes a default implementation of this interface that simply calls System.currentTimeMillis() to set the time.

Version: 1.0

Author: Thomas Muller (ttm@online.no) Mark Masterson (m.masterson@computer.org)
http://www.m2technologies.net/

Method Summary
longgetSysUpTime()
Implements a mechanism to return a "system up-time" that is relevant and meaningful for a given application.

Method Detail

getSysUpTime

public long getSysUpTime()
Implements a mechanism to return a "system up-time" that is relevant and meaningful for a given application.

Returns: a milliseconds value as a long.