|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.daemon.DaemonInteraction
public class DaemonInteraction
The DaemonInteraction
class facilitate a common
interaction point between the daemon and group managers. Its main
purpose is to provide common error handling.
Constructor Summary | |
---|---|
DaemonInteraction()
|
Method Summary | |
---|---|
static boolean |
addEvent(Event event)
Adds an event generated by a member to the daemon's event queue. |
static boolean |
addEvent(jgroup.relacs.daemon.MemberData member,
Event event)
Adds an event generated by the daemon to given (local) member's event queue. |
static MemberId |
getMemberId()
Returns a MemberId for a new member. |
static boolean |
handleDaemonFailure()
Handle daemon-member interaction failures. |
static void |
initDaemon()
Initialize the Jgroup daemon, according to the specified number of daemons that should exist in this domain. |
static boolean |
suspectDaemon()
Method used to indicate that the daemon has not responded within some predefined timeout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DaemonInteraction()
Method Detail |
---|
public static void initDaemon() throws JgroupException
JgroupException
public static MemberId getMemberId() throws JgroupException
MemberId
for a new member. The new
identifier is obtained by concatenating the endpoint of this
daemon, the incarnation number used to distinguish different
incarnation of the same endpoint, and a sequence number used to
distinguish different members running on the same host (different
JVMs).
JgroupException
- Raised if we could not obtain a member identifier due to
communication problems with the daemon.public static boolean addEvent(Event event)
public static boolean addEvent(jgroup.relacs.daemon.MemberData member, Event event)
member
- The recipient member (Dispatcher) of this event.event
- The event to be added to the given member's event queue.
public static boolean handleDaemonFailure()
If the system property 'jgroup.daemon.recover.locally' is true, and there is a confirmed daemon crash, local recovery is performed. Otherwise, this member will commit suicide.
public static boolean suspectDaemon()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |