dk.netarkivet.harvester.sidekick
Class SideKick

java.lang.Object
  extended by dk.netarkivet.harvester.sidekick.SideKick
All Implemented Interfaces:
java.lang.Runnable

public class SideKick
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
SideKick(java.lang.String monitorClass, java.lang.String theShellScript)
           
 
Method Summary
static void main(java.lang.String[] args)
          Takes the monitor object as argument.
 void run()
          If MonitorHook return the application is running then define the seenRunning = true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SideKick

public SideKick(java.lang.String monitorClass,
                java.lang.String theShellScript)
Method Detail

main

public static void main(java.lang.String[] args)
Takes the monitor object as argument. TODO: Use rmi registry instead of argument.

Parameters:
args - fx. dk.netarkivet.harvester.sidekick.HarvestControllerServerMonitorHook

run

public void run()
If MonitorHook return the application is running then define the seenRunning = true. If the seenRunning is false and the running-file doesn't exist we assume the application hasn't started yet. If the application has been seen running but the running-file doesn't exist, the application is restartet and seenRunning is reset to false.

Specified by:
run in interface java.lang.Runnable