|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<EventType>
p2pMapReduce.nodeModule.event.EventType
public enum EventType
Enumeration of all the well known event type for the P2PMapReduce framework.
Enum Constant Summary | |
---|---|
BACKUP_JOB_ASSIGNED
Used by primary node to assign a backup job to a master node. |
|
BACKUP_JOB_COMPLETED
Used to notify the completion of a backup job Associated parameters array: 0) String: id of the job for which the backup job has been completed |
|
BACKUP_MASTER_FAILURE
InnerEvent. |
|
BECOME_MASTER
Associated parameters array: 0) String: id of the coordinator which sends the event |
|
BECOME_SLAVE
No parameters |
|
CLOSE_EVENT
Closing of a connection |
|
COORD_ELECTION_MESSAGE
Coordinator Election Algorithm message Associated parameters array: 0) String: the id of the node |
|
COORDINATOR_FAILURE
InnerEvent. |
|
CRASH_EVENT
Crash of a connection |
|
JOB_ASSIGNED
Used to assign a new job to a master node. |
|
JOB_COMPLETED
Used to notify the completion of a job. |
|
JOB_ID_REPLY
Used by a master node to respond to an user job id request. |
|
JOB_ID_REQUEST
Used by user node to request a new unique job id to a master node. |
|
JOB_REASSIGNED
Used to reassign a job to a backup master node in consequence of the primary failure Associated parameters array: 0) BackupJob : The backup job object representing the job |
|
JOB_UPDATE
Used by primary nodes to sends job updates information to the backup master. |
|
NEW_CONNECTION
Inner event Creation of a new connection Associated parameters array: 0) The connection object (ConnectionIF) |
|
NEW_COORDINATOR
Sent from the new coordinator to other masters. |
|
NODE_FAILURE
Inner event. |
|
OUTPUT_RETRIEVING_COMPLETED
Used by user node to notify the JobManager about
the success or failure of the reduce output retrieving. |
|
PRIMARY_ELECTION_MESSAGE
Primary Election Algorithm message Associated parameters array: 0) String: id of the job 1) String: id of the node 2) Double: load value of the node |
|
PRIMARY_FAILURE
Inner event Used to notify the failure of a primary node. |
|
PRIMARY_UPDATE
Used by the newly elected primary to inform all other interested nodes that it has become the new primary node for a specified job Associated parameters array: 0) String: id of the job for which a new primary has been elected. 1) String: id of the new primary node for the job 2) Double: load value of the new primary node |
|
REDUCE_COMPLETED
Used by primary node to notify user that a reduce task has been completed. |
|
REMOTE_NODEINFO
Used in connection start up to send the local node info to the remote endpoint |
|
SLAVE_CHECK
Used by a slave node as an heartbeat message to inform a primary node that a task it is managing is still alive Associated parameters array: 0) String: id of the task |
|
SLAVE_FAILURE
InnerEvent. |
|
TASK_ASSIGNED
Used by a primary node to assign a task list to a slave node. |
|
TASK_COMPLETED
Used by a slave node to notify the primary about a task completion. |
Method Summary | |
---|---|
static EventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EventType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EventType BECOME_MASTER
public static final EventType BECOME_SLAVE
public static final EventType JOB_ID_REQUEST
public static final EventType JOB_ID_REPLY
JobID
: an unique job id
public static final EventType JOB_ASSIGNED
Job
: the assigned job object
1) NodeInfo
: Node info object of the user node that has submitted
the job
public static final EventType JOB_REASSIGNED
BackupJob
: The backup job object representing the job
public static final EventType JOB_COMPLETED
JobStatus.State
: an object representation of the completion
state
public static final EventType BACKUP_JOB_ASSIGNED
PrimaryJob
: an object representing the job for which the backup
job is assigned
1) String: id of the primary node
public static final EventType JOB_UPDATE
LinkedList<String>
: updated backup master list
2) LinkedList<JobTask>
: updated job task list
public static final EventType REDUCE_COMPLETED
JobTask
: the job task object relative to the completed reduce
task
1) NodeInfo
: node info of the primary node
public static final EventType OUTPUT_RETRIEVING_COMPLETED
JobManager
about
the success or failure of the reduce output retrieving.
Associated parameters array:
0 JobTask
: JobTask relative to the reduce task
1 Boolean
: true if the output has been retrieved
successfully, false otherwise
public static final EventType BACKUP_JOB_COMPLETED
public static final EventType TASK_ASSIGNED
LinkedList<Task>
: assigned task list
1) String: id of the primary node
public static final EventType TASK_COMPLETED
Task.TaskStatus
: task status
public static final EventType SLAVE_CHECK
public static final EventType COORD_ELECTION_MESSAGE
public static final EventType NEW_COORDINATOR
public static final EventType PRIMARY_FAILURE
public static final EventType PRIMARY_ELECTION_MESSAGE
public static final EventType PRIMARY_UPDATE
public static final EventType COORDINATOR_FAILURE
public static final EventType SLAVE_FAILURE
public static final EventType BACKUP_MASTER_FAILURE
public static final EventType NODE_FAILURE
public static final EventType NEW_CONNECTION
public static final EventType CRASH_EVENT
public static final EventType CLOSE_EVENT
public static final EventType REMOTE_NODEINFO
Method Detail |
---|
public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |