com.cloudtran.replicator.isolator
Class ReplicatorElection

java.lang.Object
  extended by com.cloudtran.replicator.isolator.ReplicatorElection
All Implemented Interfaces:
PortableObject, Invocable, Serializable, Runnable

public class ReplicatorElection
extends Object
implements Invocable, PortableObject

This Invocable is sent by the newly-elected primary isolator to all managers and isolators, to let them know the new Replicators memberId. 'newReplicatorMemberId' may be == INVALID_MEMBER_ID. This is one route to discovering the replicator's identity. The other is a cache lookup when an isolator or manager comes up.

See Also:
Serialized Form

Constructor Summary
ReplicatorElection()
           
ReplicatorElection(int newReplicatorMemberId)
           
 
Method Summary
 Object getResult()
           
 void init(InvocationService arg0)
           
 void readExternal(PofReader pofReader)
           
 void run()
          This Invocable is run after an election.
 void writeExternal(PofWriter pofWriter)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicatorElection

public ReplicatorElection()

ReplicatorElection

public ReplicatorElection(int newReplicatorMemberId)
Method Detail

getResult

public Object getResult()
Specified by:
getResult in interface Invocable

init

public void init(InvocationService arg0)
Specified by:
init in interface Invocable

run

public void run()
This Invocable is run after an election. It is broadcast to all Isolators and Managers

Specified by:
run in interface Invocable
Specified by:
run in interface Runnable

writeExternal

public void writeExternal(PofWriter pofWriter)
                   throws IOException
Specified by:
writeExternal in interface PortableObject
Throws:
IOException

readExternal

public void readExternal(PofReader pofReader)
                  throws IOException
Specified by:
readExternal in interface PortableObject
Throws:
IOException