asgaard.utils.log
Interface RemoteLog
- All Known Implementing Classes:
- Log, LogBroker
- public abstract interface RemoteLog
- extends java.rmi.Remote
This is the Remote interface for the LOG-server
Method Summary |
LogMsg[] |
get(long nr,
boolean withBean)
Gets a Statement from the LOGFILE returning the Statement-bean. |
void |
put(LogMsg stmt)
Puts a Statement into the LOGFILE.
|
void |
setMailServer(byte level,
java.lang.String to,
java.lang.String from,
java.lang.String cc,
java.lang.String mailhost,
long size)
Defines a Mailserver for automatically forward LOGMSG also via eMail. |
setMailServer
public void setMailServer(byte level,
java.lang.String to,
java.lang.String from,
java.lang.String cc,
java.lang.String mailhost,
long size)
throws java.rmi.RemoteException
- Defines a Mailserver for automatically forward LOGMSG also via eMail.
- Parameters:
level
- Which Error-Level should be forwardedto
- mailto - eMailadressfrom
- eMailadresscc
- carbon copy (optional)mailhost
- assumption: mail.smtp.hostlogsize
- send warning if logfile exceeds size (0 for no warning)
put
public void put(LogMsg stmt)
throws java.rmi.RemoteException,
java.io.IOException,
java.sql.SQLException
- Puts a Statement into the LOGFILE.
If the Statement exists already, it is replaced.
If any Exception rises it will be ignored
- Parameters:
stmt
- Statement as a LogMsg-Bean- Throws:
- java.sql.SQLException - from LogBroker.put forwarded exception
- java.io.IOException - from LogBroker.put forwarded exception
- java.rmi.RemoteException - if the remote (only if remote!) Object cannot be accessed
- See Also:
LogMsg
get
public LogMsg[] get(long nr,
boolean withBean)
throws java.rmi.RemoteException
- Gets a Statement from the LOGFILE returning the Statement-bean.
- Parameters:
nr
- Number of the statement in the current LogfilewithBean
- if the Bean carried by the Statement is required- Returns:
- a List with the found Statement-Beans
- Throws:
- java.rmi.RemoteException - if the remote (only if remote!) Object cannot be accessed
- See Also:
LogMsg