org.gridbus.broker.farming.common.dispatchers
Interface Dispatcher

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
LocalDispatcher, SSHDispatcher

public interface Dispatcher
extends java.io.Serializable

Author:
mtc

Method Summary
 boolean detectFile(java.lang.String filename, int timeoutMillis)
           
 java.io.InputStream executeAndGetResult(java.lang.String cmd)
           
 void executeCmd(java.lang.String cmd)
           
 java.lang.String getDispatcherType()
           
 java.lang.String getInputPath()
           
 java.lang.String getStagingDir()
           
 void shutdown()
           
 void stageIn(java.lang.String src, java.lang.String dest)
           
 void stageInData(java.lang.String src, java.lang.String dest)
           
 void stageOut(java.lang.String src, java.lang.String dest)
           
 void stageOutData(java.lang.String src, java.lang.String dest)
           
 

Method Detail

executeAndGetResult

java.io.InputStream executeAndGetResult(java.lang.String cmd)
                                        throws java.lang.Exception
Parameters:
cmd -
Returns:
Throws:
java.lang.Exception

executeCmd

void executeCmd(java.lang.String cmd)
                throws java.lang.Exception
Parameters:
cmd -
Throws:
java.lang.Exception

stageIn

void stageIn(java.lang.String src,
             java.lang.String dest)
             throws java.lang.Exception
Parameters:
src - -- local file path
dest - -- remote file path
Throws:
java.lang.Exception

stageInData

void stageInData(java.lang.String src,
                 java.lang.String dest)
                 throws java.lang.Exception
Parameters:
src -
dest -
Throws:
java.lang.Exception

stageOut

void stageOut(java.lang.String src,
              java.lang.String dest)
              throws java.lang.Exception
Parameters:
src - -- remote file path
dest - -- local file path
Throws:
java.lang.Exception

stageOutData

void stageOutData(java.lang.String src,
                  java.lang.String dest)
                  throws java.lang.Exception
Parameters:
src -
dest -
Throws:
java.lang.Exception

getInputPath

java.lang.String getInputPath()
Returns:

getStagingDir

java.lang.String getStagingDir()
Returns:

detectFile

boolean detectFile(java.lang.String filename,
                   int timeoutMillis)
Parameters:
filename -
timeoutMillis -
Returns:

getDispatcherType

java.lang.String getDispatcherType()
Returns:

shutdown

void shutdown()