hudson.plugins.perforce
Class HudsonP4Executor

java.lang.Object
  extended by hudson.plugins.perforce.HudsonP4Executor
All Implemented Interfaces:
Executor

public class HudsonP4Executor
extends java.lang.Object
implements Executor

Implementation of the P4Java Executor interface that provides support for remotely executing Perforce commands.

User contract: Use this class only once to execute a command. ,to execute another command, spawn another Exector using the Exector Factory

Author:
Victor Szoltysek

Method Summary
 void close()
          Close down all open resources
 void exec(java.lang.String[] cmd)
          Execute the specified command and its arguments
 java.io.BufferedReader getReader()
          Returns a BufferedReader for reading from the stdout/stderr of this process
 java.io.BufferedWriter getWriter()
          Returns a BufferedWriter for writing to the stdin of this process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
Description copied from interface: Executor
Close down all open resources

Specified by:
close in interface Executor

exec

public void exec(java.lang.String[] cmd)
          throws PerforceException
Description copied from interface: Executor
Execute the specified command and its arguments

Specified by:
exec in interface Executor
Throws:
PerforceException

getReader

public java.io.BufferedReader getReader()
Description copied from interface: Executor
Returns a BufferedReader for reading from the stdout/stderr of this process

Specified by:
getReader in interface Executor
Returns:

getWriter

public java.io.BufferedWriter getWriter()
Description copied from interface: Executor
Returns a BufferedWriter for writing to the stdin of this process

Specified by:
getWriter in interface Executor
Returns:


Copyright © 2010. All Rights Reserved.