|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pmease.quickbuild.grid.GridImpl
public class GridImpl
Field Summary |
---|
Fields inherited from interface com.pmease.quickbuild.grid.Grid |
---|
instance |
Constructor Summary | |
---|---|
GridImpl()
|
Method Summary | ||
---|---|---|
void |
addJob(GridJob job)
|
|
void |
execute()
|
|
|
execute(GridTask<T,R> task,
T arg)
|
|
java.util.Collection<GridNode> |
getAllNodes()
|
|
java.util.List<java.lang.String> |
getAttributeNames()
|
|
GridJob |
getJob(java.lang.String 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()
|
|
Schedule |
getSchedule()
|
|
GridNode |
getServerNode()
|
|
GridTaskFuture<?> |
getTaskFuture(java.lang.String taskId)
|
|
GridNode |
getUserNode(User user)
|
|
boolean |
hasJobs()
|
|
boolean |
isJobStarted(java.lang.String jobId)
|
|
void |
removeJob(java.lang.String 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 |
Constructor Detail |
---|
public GridImpl()
Method Detail |
---|
public <T,R> GridTaskFuture<R> execute(GridTask<T,R> task, T arg)
execute
in interface Grid
public GridTaskFuture<?> getTaskFuture(java.lang.String taskId)
getTaskFuture
in interface Grid
public java.util.Collection<GridNode> getAllNodes()
getAllNodes
in interface Grid
public GridNode getLocalNode()
getLocalNode
in interface Grid
public GridNode getNode(java.util.UUID nodeId)
getNode
in interface Grid
public java.util.Collection<GridNode> getRemoteNodes()
getRemoteNodes
in interface Grid
public GridNode getServerNode()
getServerNode
in interface Grid
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)
Grid
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 (\"/\")public void transferFile(GridNode fromNode, java.lang.String srcFile, GridNode toNode, java.lang.String destFile, java.lang.String lockForReadPath, java.lang.String lockForWritePath)
transferFile
in interface Grid
public GridNode getNode(java.lang.String nodeAddress)
getNode
in interface Grid
public GridNode getUserNode(User user)
getUserNode
in interface Grid
public void addJob(GridJob job)
addJob
in interface Grid
public GridJob getJob(java.lang.String jobId)
getJob
in interface Grid
public void removeJob(java.lang.String jobId)
removeJob
in interface Grid
public java.util.Collection<GridJob> getJobs()
getJobs
in interface Grid
public boolean hasJobs()
hasJobs
in interface Grid
public java.util.List<java.lang.String> getAttributeNames()
getAttributeNames
in interface Grid
public void execute()
execute
in interface SchedulableTask
public Schedule getSchedule()
getSchedule
in interface SchedulableTask
public boolean isJobStarted(java.lang.String jobId)
isJobStarted
in interface Grid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |