A E G I O P S T

A

AbstractSpawnable - Class in expectj
Base class for spawnables providing an onClose() method that should be called on close.
AbstractSpawnable() - Constructor for class expectj.AbstractSpawnable
 

E

execute() - Method in interface expectj.Executor
Creates a new process.
Executor - Interface in expectj
This interface exists for people who want control over how processes are launched.
expect(String, long) - Method in class expectj.Spawn
Wait for a pattern to appear on standard out.
expect(String) - Method in class expectj.Spawn
Wait for a pattern to appear on standard out.
expectClose(long) - Method in class expectj.Spawn
Wait for the spawned process to finish.
expectClose() - Method in class expectj.Spawn
Wait the default timeout for the spawned process to finish.
expectErr(String, long) - Method in class expectj.Spawn
Wait for a pattern to appear on standard error.
expectErr(String) - Method in class expectj.Spawn
Wait for a pattern to appear on standard error.
expectj - package expectj
ExpectJ can be used for automating interaction with either a process (through stdin / stdout) or a telnet session.
ExpectJ - Class in expectj
This class is the starting point of the ExpectJ Utility.
ExpectJ(long) - Constructor for class expectj.ExpectJ
Create a new ExpectJ with specified timeout setting.
ExpectJ() - Constructor for class expectj.ExpectJ
Create a new ExpectJ with an infinite timeout.
ExpectJException - Exception in expectj
This class extends the Exception class and encapsulates other exceptions.

G

getCurrentStandardErrContents() - Method in class expectj.Spawn
Returns everything that has been received on the spawn's stderr during this session.
getCurrentStandardOutContents() - Method in class expectj.Spawn
Returns everything that has been received on the spawn's stdout during this session.
getExitValue() - Method in class expectj.ProcessSpawn
If the process representes by this object has already exited, it returns the exit code. isClosed() should be used in conjunction with this method.
getExitValue() - Method in class expectj.Spawn
Retrieve the exit code of a finished process.
getExitValue() - Method in interface expectj.Spawnable
If the Spawn has exited, its exit code is returned.
getExitValue() - Method in class expectj.SshSpawn
 
getStderr() - Method in class expectj.ProcessSpawn
 
getStderr() - Method in interface expectj.Spawnable
Get a stream from which the Spawn's stderr can be read.
getStderr() - Method in class expectj.SshSpawn
 
getStdin() - Method in class expectj.ProcessSpawn
 
getStdin() - Method in interface expectj.Spawnable
Get a stream through which the Spawn's stdin can be written to.
getStdin() - Method in class expectj.SshSpawn
 
getStdout() - Method in class expectj.ProcessSpawn
 
getStdout() - Method in interface expectj.Spawnable
Get a stream from which the Spawn's stdout can be read.
getStdout() - Method in class expectj.SshSpawn
 

I

interact() - Method in class expectj.Spawn
Allows the user to interact with the spawned process.
isClosed() - Method in class expectj.ProcessSpawn
 
isClosed() - Method in class expectj.Spawn
This method can be use use to check the target process status before invoking Spawn.send(String)
isClosed() - Method in interface expectj.Spawnable
Find out whether the Spawn has finished.
isClosed() - Method in class expectj.SshSpawn
 

O

onClose() - Method in class expectj.AbstractSpawnable
Call the close listener if we have one.
onClose() - Method in interface expectj.Spawnable.CloseListener
Will be called when a Spawnable closes.

P

ProcessSpawn - Class in expectj
This class spawns a process that ExpectJ can control.

S

send(String) - Method in class expectj.Spawn
Writes a string to the standard input of the spawned process.
setCloseListener(Spawnable.CloseListener) - Method in class expectj.AbstractSpawnable
 
setCloseListener(Spawnable.CloseListener) - Method in interface expectj.Spawnable
Register a listener that will be called when this spawnable closes.
spawn(Spawnable) - Method in class expectj.ExpectJ
This method launches a Spawnable.
spawn(String) - Method in class expectj.ExpectJ
This method spawns a new process.
spawn(Executor) - Method in class expectj.ExpectJ
This method spawns a new process.
spawn(String, int) - Method in class expectj.ExpectJ
This method spawns a telnet connection to the given host and port number.
spawn(Channel) - Method in class expectj.ExpectJ
This method creates a spawn that controls an SSH connection.
spawn(String, int, String, String) - Method in class expectj.ExpectJ
This method creates a spawn that controls an SSH connection.
Spawn - Class in expectj
This class is used for talking to processes / ports.
Spawnable - Interface in expectj
Implementors of this interface can be spawned by ExpectJ.
Spawnable.CloseListener - Interface in expectj
Will be notified when a Spawnable closes.
SshSpawn - Class in expectj
A Spawnable for controlling an SSH session using ExpectJ.
SshSpawn(String, int, String, String) - Constructor for class expectj.SshSpawn
Construct a new SSH spawn.
SshSpawn(Channel) - Constructor for class expectj.SshSpawn
Takes control over an existing SSH channel.
start() - Method in class expectj.ProcessSpawn
This method executes the given command within the specified time limit.
start() - Method in interface expectj.Spawnable
This method launches the Spawn.
start() - Method in class expectj.SshSpawn
 
stop() - Method in class expectj.ProcessSpawn
This method stops the spawned process.
stop() - Method in class expectj.Spawn
This method kills the process represented by SpawnedProcess object.
stop() - Method in interface expectj.Spawnable
Stops a running Spawn.
stop() - Method in class expectj.SshSpawn
 

T

TimeoutException - Exception in expectj
Timeout while waiting for a Spawn.
toString() - Method in interface expectj.Executor
Describes what Executor.execute() created.

A E G I O P S T

Copyright © 2010. All Rights Reserved.