Luky Library - 4.1.1 (20061117-1148)

luky.linux
Class SystemTool

java.lang.Object
  extended by luky.events.MyEventManager
      extended by luky.linux.SystemTool
All Implemented Interfaces:
Runnable

public class SystemTool
extends MyEventManager
implements Runnable

Supports a number of system commands, currently available only for linux either single shot or with a poll frequency, sends myEvents with result

Version:
1.0.0
Author:
Chris Lukassen
 

Field Summary
 
Fields inherited from class luky.events.MyEventManager
listenerList
 
Constructor Summary
SystemTool(String cmd, String dir)
           
 
Method Summary
 String Ping(String host)
           
 String Ping(String host, int retry)
           
 String Pinger(String host, int retry)
           
 void run()
           
 void setPollTime(int poll)
           
 String SystemCommand(String cmd, String dir)
           
 
Methods inherited from class luky.events.MyEventManager
addMyEventListener, fireMyEvent, removeMyEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemTool

public SystemTool(String cmd,
                  String dir)
Method Detail

setPollTime

public void setPollTime(int poll)

run

public void run()
Specified by:
run in interface Runnable

Ping

public String Ping(String host)

Ping

public String Ping(String host,
                   int retry)

Pinger

public String Pinger(String host,
                     int retry)

SystemCommand

public String SystemCommand(String cmd,
                            String dir)

Luky Library - 4.1.1 (20061117-1148)