|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp2pMapReduce.nodeModule.UserNode
public class UserNode
An utility class to start an user node, join the P2PMapReduce network and submit jobs.
Nested Class Summary | |
---|---|
static class |
UserNode.UserJob
|
Field Summary | |
---|---|
static int |
MASTER_SEARCH_PERIOD
Time interval for master searching |
Method Summary | |
---|---|
void |
addEventListener(EventListener eventListener)
|
static UserNode |
createUserNode()
Creates and starts a new UserNode |
static UserNode |
createUserNode(NetworkConfiguration nc)
Creates and starts a new UserNode providing a specific NetworkConfiguration |
java.util.HashMap<java.lang.String,UserNode.UserJob> |
getAssignedJob()
|
FileSystemView |
getFileSystemView()
|
java.lang.String |
getNodeID()
|
java.util.LinkedList<UserNode.UserJob> |
getSubittedJob()
|
void |
setAssignedJob(java.util.HashMap<java.lang.String,UserNode.UserJob> assignedJob)
|
void |
setSubittedJob(java.util.LinkedList<UserNode.UserJob> subittedJob)
|
void |
submit(Job job)
A way to submit a job through this user node |
void |
submit(Job job,
java.lang.Runnable jobCompletionAction)
Submit the job through this user node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MASTER_SEARCH_PERIOD
Method Detail |
---|
public static UserNode createUserNode()
public static UserNode createUserNode(NetworkConfiguration nc)
NetworkConfiguration
public void submit(Job job) throws java.io.IOException
job
-
java.io.IOException
public void submit(Job job, java.lang.Runnable jobCompletionAction)
job
- jobCompletionAction
- A runnable object to execute when the job is
successfully completed. the execution will be performed in a new threadpublic java.lang.String getNodeID()
public FileSystemView getFileSystemView()
public void addEventListener(EventListener eventListener)
public java.util.HashMap<java.lang.String,UserNode.UserJob> getAssignedJob()
public void setAssignedJob(java.util.HashMap<java.lang.String,UserNode.UserJob> assignedJob)
public java.util.LinkedList<UserNode.UserJob> getSubittedJob()
public void setSubittedJob(java.util.LinkedList<UserNode.UserJob> subittedJob)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |