backup.client
Class Cli

java.lang.Object
  extended by java.lang.Thread
      extended by backup.client.Cli
All Implemented Interfaces:
UserInterface, java.lang.Runnable

public class Cli
extends java.lang.Thread
implements UserInterface

Command line interface for BackupClient, implementing UserInterface.

Author:
Tore Mauset

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Cli(BackupClient bc)
          Constructs a new Cli.
 
Method Summary
 void processingFile(java.lang.String filename)
          Display info about file currently being processed by rdiff-backup.
 void run()
          Start a separate thread for keeping track of keyboard input.
 void status(java.lang.String msg)
          Displays a status message.
 void warn(java.lang.String msg)
          Displays a warning message.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cli

public Cli(BackupClient bc)
Constructs a new Cli.

Parameters:
bc - parent BackupClient
Method Detail

run

public void run()
Start a separate thread for keeping track of keyboard input.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

status

public void status(java.lang.String msg)
Description copied from interface: UserInterface
Displays a status message.

Specified by:
status in interface UserInterface
Parameters:
msg - message

warn

public void warn(java.lang.String msg)
Description copied from interface: UserInterface
Displays a warning message.

Specified by:
warn in interface UserInterface
Parameters:
msg - message

processingFile

public void processingFile(java.lang.String filename)
Description copied from interface: UserInterface
Display info about file currently being processed by rdiff-backup.

Specified by:
processingFile in interface UserInterface
Parameters:
filename - filename