org.exist.storage.lock
Class FileLockHeartBeat

java.lang.Object
  extended by org.exist.storage.lock.FileLockHeartBeat
All Implemented Interfaces:
JobDescription, Job

public class FileLockHeartBeat
extends Object
implements JobDescription, Job

Provides a Scheduled HeartBeat for the FileLock


Constructor Summary
FileLockHeartBeat()
           
FileLockHeartBeat(String lockName)
           
 
Method Summary
 void execute(JobExecutionContext jobExecutionContext)
           
 String getGroup()
          Get the name group for the job
 String getName()
          Get the name of the job
 void setName(String name)
          Set the name of the job
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLockHeartBeat

public FileLockHeartBeat()

FileLockHeartBeat

public FileLockHeartBeat(String lockName)
Method Detail

getName

public String getName()
Description copied from interface: JobDescription
Get the name of the job

Specified by:
getName in interface JobDescription
Returns:
The job's name

setName

public void setName(String name)
Description copied from interface: JobDescription
Set the name of the job

Specified by:
setName in interface JobDescription
Parameters:
name - The job's new name

getGroup

public String getGroup()
Description copied from interface: JobDescription
Get the name group for the job

Specified by:
getGroup in interface JobDescription
Returns:
The job's group name

execute

public void execute(JobExecutionContext jobExecutionContext)
             throws JobExecutionException
Specified by:
execute in interface Job
Throws:
JobExecutionException


Copyright (C) Wolfgang Meier. All rights reserved.