org.globus.cog.gridshell.tasks.examples
Class MatrixMultiplyImpl
java.lang.Object
org.globus.cog.gridshell.tasks.examples.AbstractExecutionExample
org.globus.cog.gridshell.tasks.examples.MatrixMultiplyImpl
- public class MatrixMultiplyImpl
- extends AbstractExecutionExample
Transfers MMRowXCol.java using gsiftp to a remote location, compiles it, and
then does a distributed Matrix Multiply. This example could easily add other
hosts if desired
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ARG_RLOCATION
public static final String ARG_RLOCATION
- See Also:
- Constant Field Values
ARG_JAVAHOME
public static final String ARG_JAVAHOME
- See Also:
- Constant Field Values
EXAMPLE_PATH
public static final String EXAMPLE_PATH
JAVA_CLASS
public static final String JAVA_CLASS
- See Also:
- Constant Field Values
SPACE
public static final String SPACE
- See Also:
- Constant Field Values
TAB
public static final String TAB
- See Also:
- Constant Field Values
MATRIX_A
public static final int[][] MATRIX_A
MATRIX_B
public static final int[][] MATRIX_B
MatrixMultiplyImpl
public MatrixMultiplyImpl()
createArgParser
public ArgumentParser createArgParser()
- Overrides:
createArgParser in class AbstractExecutionExample
getJavaHome
public String getJavaHome()
getRemoteLocation
public String getRemoteLocation()
transferFile
public void transferFile(String serviceContact)
throws Exception
- Throws:
Exception
outputMatrix
public static void outputMatrix(Scope[] scopes)
getRow
public static String getRow(int[][] a,
int row)
getCol
public static String getCol(int[][] b,
int col)
createTaskGraph
public TaskGraph createTaskGraph(Object credentials,
String provider,
String serviceContact,
int port)
throws Exception
- Specified by:
createTaskGraph in class AbstractExecutionExample
- Throws:
Exception
completed
public void completed(StatusEvent sEvent)
- Specified by:
completed in class AbstractExecutionExample
failed
public void failed(StatusEvent sEvent)
- Specified by:
failed in class AbstractExecutionExample
main
public static void main(String[] args)