autohit.common
Class AutohitLogDrainRouting
java.lang.Object
autohit.common.AutohitLogDrain
autohit.common.AutohitLogDrainRouting
- All Implemented Interfaces:
- Drain
- public class AutohitLogDrainRouting
- extends AutohitLogDrain
An routing subclass of AutohitLogDrain. It assumes the will put all the
entries in FILES, based on the sender ID. You must call setup() before using this.
It will create a new log, if it doesn't exist for the sender ID.
this!
The path needs to be in the form of /path/...path/filename with no extention.
- Version:
- 1.0
Version History
EPG - Rewrite - 28Jul03
- Author:
- Erich P. Gatejen
Method Summary |
void |
discardWriter(java.lang.String id)
The subclass uses this to discard the Writer. |
void |
initchain()
The subclass should implement this to do any initialization. |
void |
setup(java.lang.String basepath)
This must be called before it is used. |
void |
setWriter(java.lang.String id)
The subclass uses this to set the Writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
routingtable
public java.util.Hashtable routingtable
AutohitLogDrainRouting
public AutohitLogDrainRouting()
setWriter
public void setWriter(java.lang.String id)
throws java.lang.Exception
- The subclass uses this to set the Writer. the Writer is the
field myWriter.
- Specified by:
setWriter
in class AutohitLogDrain
- Parameters:
id
-
- Throws:
java.lang.Exception
discardWriter
public void discardWriter(java.lang.String id)
throws java.lang.Exception
- The subclass uses this to discard the Writer. It says this id isn't
being used anymore.
- Specified by:
discardWriter
in class AutohitLogDrain
- Parameters:
id
-
- Throws:
java.lang.Exception
initchain
public void initchain()
- The subclass should implement this to do any initialization.
- Specified by:
initchain
in class AutohitLogDrain
setup
public void setup(java.lang.String basepath)
- This must be called before it is used.
- Parameters:
basepath
- points to the path and base filename of the logs. The log ID will be appended to this to make the real filename.
Test.