hudson.plugins.perforce
Class HudsonP4Executor

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

public class HudsonP4Executor
extends java.lang.Object
implements com.tek42.perforce.process.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()
           
 void exec(java.lang.String[] cmd)
           
 java.io.BufferedReader getReader()
           
 java.io.BufferedWriter getWriter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
Specified by:
close in interface com.tek42.perforce.process.Executor

exec

public void exec(java.lang.String[] cmd)
          throws com.tek42.perforce.PerforceException
Specified by:
exec in interface com.tek42.perforce.process.Executor
Throws:
com.tek42.perforce.PerforceException

getReader

public java.io.BufferedReader getReader()
Specified by:
getReader in interface com.tek42.perforce.process.Executor

getWriter

public java.io.BufferedWriter getWriter()
Specified by:
getWriter in interface com.tek42.perforce.process.Executor


Copyright © 2009. All Rights Reserved.