com.caucho.server.admin
Class PingMailer

java.lang.Object
  extended by com.caucho.jca.AbstractResourceAdapter
      extended by com.caucho.server.admin.PingThread
          extended by com.caucho.server.admin.PingMailer
All Implemented Interfaces:
AlarmListener, java.lang.Runnable, java.util.EventListener, ResourceAdapter

public class PingMailer
extends PingThread

An extension of the ping thread to mail when there's a ping problem.


Constructor Summary
PingMailer()
           
 
Method Summary
 java.lang.String getMailFrom()
          Gets the mail sender
 java.lang.String getMailSubject()
          Gets the mail sender
 java.lang.String getMailTo()
          Gets the mail destination
protected  void pingFailed(Path url)
          Called if the ping completely fails.
 void setMailFrom(java.lang.String mailFrom)
          Sets the mail sender
 void setMailSubject(java.lang.String subject)
          Sets the mail subject
 void setMailTo(java.lang.String mailTo)
          Sets the mail destination
 
Methods inherited from class com.caucho.server.admin.PingThread
addURL, checkPing, getPingHost, getPingPort, getRetryTime, getSleepTime, getSocketTimeout, getTryCount, handleAlarm, init, pingFailedOnce, run, setInitialSleepTime, setPingHost, setPingPort, setRetryTime, setSleepTime, setSocketTimeout, setTryCount, start, stop, toString
 
Methods inherited from class com.caucho.jca.AbstractResourceAdapter
endpointActivation, endpointDeactivation, getXAResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PingMailer

public PingMailer()
Method Detail

getMailTo

public java.lang.String getMailTo()
Gets the mail destination


setMailTo

public void setMailTo(java.lang.String mailTo)
Sets the mail destination


getMailFrom

public java.lang.String getMailFrom()
Gets the mail sender


setMailFrom

public void setMailFrom(java.lang.String mailFrom)
Sets the mail sender


getMailSubject

public java.lang.String getMailSubject()
Gets the mail sender


setMailSubject

public void setMailSubject(java.lang.String subject)
Sets the mail subject


pingFailed

protected void pingFailed(Path url)
                   throws java.lang.Exception
Called if the ping completely fails.

Overrides:
pingFailed in class PingThread
Throws:
java.lang.Exception