com.pmease.quickbuild.grid
Class GridImpl
java.lang.Object
com.pmease.quickbuild.grid.GridImpl
- All Implemented Interfaces:
- Grid
public class GridImpl
- extends java.lang.Object
- implements Grid
Fields inherited from interface com.pmease.quickbuild.grid.Grid |
instance |
Method Summary |
void |
addJob(GridJob job)
|
|
execute(GridTask<T,R> task,
T arg)
|
java.util.Collection<GridNode> |
getAllNodes()
|
java.util.List<java.lang.String> |
getAttributeNames()
|
GridJob |
getJob(java.util.UUID jobId)
|
java.util.Collection<GridJob> |
getJobs()
|
GridNode |
getLocalNode()
|
GridNode |
getNode(java.lang.String nodeAddress)
|
GridNode |
getNode(java.util.UUID nodeId)
|
java.util.Collection<GridNode> |
getRemoteNodes()
|
GridNode |
getServerNode()
|
GridTaskFuture<?> |
getTaskFuture(java.util.UUID taskId)
|
GridNode |
getUserNode(User user)
|
boolean |
hasJobs()
|
void |
removeJob(java.util.UUID jobId)
|
void |
transferFile(GridNode fromNode,
java.lang.String srcFile,
GridNode toNode,
java.lang.String destFile,
java.lang.String lockForReadPath,
java.lang.String lockForWritePath)
|
void |
transferFiles(GridNode fromNode,
java.lang.String srcDir,
java.lang.String filePatterns,
GridNode toNode,
java.lang.String destDir,
boolean compress,
java.lang.String lockForReadPath,
java.lang.String lockForWritePath)
Transfer files from one node to another. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridImpl
public GridImpl()
execute
public <T,R> GridTaskFuture<R> execute(GridTask<T,R> task,
T arg)
- Specified by:
execute
in interface Grid
getTaskFuture
public GridTaskFuture<?> getTaskFuture(java.util.UUID taskId)
- Specified by:
getTaskFuture
in interface Grid
getAllNodes
public java.util.Collection<GridNode> getAllNodes()
- Specified by:
getAllNodes
in interface Grid
getLocalNode
public GridNode getLocalNode()
- Specified by:
getLocalNode
in interface Grid
getNode
public GridNode getNode(java.util.UUID nodeId)
- Specified by:
getNode
in interface Grid
getRemoteNodes
public java.util.Collection<GridNode> getRemoteNodes()
- Specified by:
getRemoteNodes
in interface Grid
getServerNode
public GridNode getServerNode()
- Specified by:
getServerNode
in interface Grid
transferFiles
public void transferFiles(GridNode fromNode,
java.lang.String srcDir,
java.lang.String filePatterns,
GridNode toNode,
java.lang.String destDir,
boolean compress,
java.lang.String lockForReadPath,
java.lang.String lockForWritePath)
- Description copied from interface:
Grid
- Transfer files from one node to another.
- Specified by:
transferFiles
in interface Grid
srcDir
- absolute path of the source directory on \"from node\".filePatterns
- patterns of files to transfer. Null value means to transfer all filesdestDir
- absolute path of the dest directory on \"to node\". Please note that this absolute
path must be separated by the slash character (\"/\")
transferFile
public void transferFile(GridNode fromNode,
java.lang.String srcFile,
GridNode toNode,
java.lang.String destFile,
java.lang.String lockForReadPath,
java.lang.String lockForWritePath)
- Specified by:
transferFile
in interface Grid
getNode
public GridNode getNode(java.lang.String nodeAddress)
- Specified by:
getNode
in interface Grid
getUserNode
public GridNode getUserNode(User user)
- Specified by:
getUserNode
in interface Grid
addJob
public void addJob(GridJob job)
- Specified by:
addJob
in interface Grid
getJob
public GridJob getJob(java.util.UUID jobId)
- Specified by:
getJob
in interface Grid
removeJob
public void removeJob(java.util.UUID jobId)
- Specified by:
removeJob
in interface Grid
getJobs
public java.util.Collection<GridJob> getJobs()
- Specified by:
getJobs
in interface Grid
hasJobs
public boolean hasJobs()
- Specified by:
hasJobs
in interface Grid
getAttributeNames
public java.util.List<java.lang.String> getAttributeNames()
- Specified by:
getAttributeNames
in interface Grid
Copyright © 2005-2010 PMEase Inc. All Rights Reserved.