com.resilientedge.jockey.core
Class Boot

java.lang.Object
  |
  +--com.resilientedge.jockey.core.Boot
All Implemented Interfaces:
DesktopIndicatorListener, java.lang.Runnable, SCMEventListener

public class Boot
extends java.lang.Object
implements java.lang.Runnable, SCMEventListener, DesktopIndicatorListener

Main entry point for Jockey.

Version:
$Revision: 1.1 $
Author:
jgardner

Constructor Summary
Boot()
          Constructor for the Boot object
 
Method Summary
 void handleSCMEvent(SCMEvent event)
          Handle an event from the service control manager.
static boolean isReady()
          Enable query of jockey state
static void main(java.lang.String[] args)
          Provide external entry point to jockey.
 void onDesktopIndicatorClicked(DesktopIndicator source)
          Handle an event from user interaction with the desktop icon.
 void onMessage(DesktopIndicator source, int option)
          Called when an option is chosen from the indicator selection.
 void run()
          Runnable method to shutdown the jockey core.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Boot

public Boot()
Constructor for the Boot object
Method Detail

main

public static void main(java.lang.String[] args)
Provide external entry point to jockey.
Parameters:
args - command line args, -t = time to run (in seconds)

isReady

public static boolean isReady()
Enable query of jockey state
Parameters:
args - command line args, -t = time to run (in seconds)

handleSCMEvent

public void handleSCMEvent(SCMEvent event)
Handle an event from the service control manager. Looking for a shutdown.
Specified by:
handleSCMEvent in interface SCMEventListener
Parameters:
event - event to be handled

onDesktopIndicatorClicked

public void onDesktopIndicatorClicked(DesktopIndicator source)
Handle an event from user interaction with the desktop icon.
Specified by:
onDesktopIndicatorClicked in interface DesktopIndicatorListener
Parameters:
source - the desktop indicator generating this event

onMessage

public void onMessage(DesktopIndicator source,
                      int option)
Called when an option is chosen from the indicator selection.
Specified by:
onMessage in interface DesktopIndicatorListener

run

public void run()
Runnable method to shutdown the jockey core. This is installed as a shutdown hook.
Specified by:
run in interface java.lang.Runnable


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.