com.mysql.management.util
Interface Shell

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
Shell.Default, Shell.Stub

public interface Shell
extends java.lang.Runnable

Represents a command to be executed by the os, like a command line. Extends java.util.Thread and thus: May execute within the current thread by calling run directly. May be launched as a separate thread by calling start.

Version:
$Id: Shell.java,v 1.15 2005/12/01 21:45:31 eherman Exp $
Author:
Eric Herman

Nested Class Summary
static class Shell.Default
           
static class Shell.Factory
           
static class Shell.Stub
           
 
Method Summary
 void addCompletionListener(java.lang.Runnable listener)
           
 void destroyProcess()
           
 java.lang.String getName()
           
 boolean hasReturned()
           
 boolean isAlive()
           
 boolean isDaemon()
           
 void join()
           
 int returnCode()
           
 void setDaemon(boolean val)
           
 void setEnvironment(java.lang.String[] envp)
           
 void setWorkingDir(java.io.File workingDir)
           
 void start()
           
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setEnvironment

void setEnvironment(java.lang.String[] envp)

setWorkingDir

void setWorkingDir(java.io.File workingDir)

addCompletionListener

void addCompletionListener(java.lang.Runnable listener)

returnCode

int returnCode()

hasReturned

boolean hasReturned()

destroyProcess

void destroyProcess()

getName

java.lang.String getName()

isAlive

boolean isAlive()

isDaemon

boolean isDaemon()

setDaemon

void setDaemon(boolean val)

join

void join()

start

void start()


Copyright © 2004-2011. All Rights Reserved.