com.liferay.counter.service.persistence
Class ConnectionHeartbeatJob

java.lang.Object
  extended by com.liferay.counter.service.persistence.ConnectionHeartbeatJob
All Implemented Interfaces:
com.liferay.portal.kernel.job.IntervalJob

public class ConnectionHeartbeatJob
extends java.lang.Object
implements com.liferay.portal.kernel.job.IntervalJob

View Source

Author:
Michael Young

Field Summary
static long INTERVAL
           
 
Constructor Summary
ConnectionHeartbeatJob()
           
 
Method Summary
 void execute(com.liferay.portal.kernel.job.JobExecutionContext context)
           
 long getInterval()
           
protected  void sendHeartbeat()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERVAL

public static final long INTERVAL
Constructor Detail

ConnectionHeartbeatJob

public ConnectionHeartbeatJob()
Method Detail

execute

public void execute(com.liferay.portal.kernel.job.JobExecutionContext context)
             throws com.liferay.portal.kernel.job.JobExecutionException
Specified by:
execute in interface com.liferay.portal.kernel.job.IntervalJob
Throws:
com.liferay.portal.kernel.job.JobExecutionException

getInterval

public long getInterval()
Specified by:
getInterval in interface com.liferay.portal.kernel.job.IntervalJob

sendHeartbeat

protected void sendHeartbeat()
                      throws java.lang.Exception
Throws:
java.lang.Exception