|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.discovery.jgroups.comm.handler.DiscCommHandlerImpl
public class DiscCommHandlerImpl
Field Summary | |
---|---|
String |
discoveryType
Host type: MASTER, SLAVE, CLUSTERD. |
protected String |
hostName
The host name. |
protected org.objectweb.util.monolog.api.Logger |
logger
The logger. |
protected String |
multicastAddress
The host name. |
Constructor Summary | |
---|---|
DiscCommHandlerImpl(org.jgroups.Address hostAddress)
|
|
DiscCommHandlerImpl(org.jgroups.Address hostAddress,
String discoveryType)
Contructor. |
Method Summary | |
---|---|
void |
block()
|
org.jgroups.Address |
getHostAddress()
|
byte[] |
getState()
|
void |
getState(OutputStream arg0)
|
byte[] |
getState(String arg0)
|
void |
getState(String arg0,
OutputStream arg1)
|
void |
receive(org.jgroups.Message msg)
|
void |
sendNotif(org.jgroups.Address dest,
DiscMessage msg)
Sends a Discovery Message to the group. |
void |
setHostAddress(org.jgroups.Address hostAddress)
|
void |
setState(byte[] arg0)
|
void |
setState(InputStream arg0)
|
void |
setState(String arg0,
byte[] arg1)
|
void |
setState(String arg0,
InputStream arg1)
|
void |
suspect(org.jgroups.Address arg0)
Defines actions to perform when a group member is suspected. |
void |
unblock()
|
void |
viewAccepted(org.jgroups.View arg0)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.objectweb.util.monolog.api.Logger logger
public String discoveryType
protected String hostName
protected String multicastAddress
Constructor Detail |
---|
public DiscCommHandlerImpl(org.jgroups.Address hostAddress, String discoveryType)
hostAddress
- IP address of discovery.discoveryType
- Host type.public DiscCommHandlerImpl(org.jgroups.Address hostAddress)
hostAddress
- Discovery IP.Method Detail |
---|
public byte[] getState()
getState
in interface org.jgroups.MessageListener
public void receive(org.jgroups.Message msg)
receive
in interface org.jgroups.MessageListener
public void sendNotif(org.jgroups.Address dest, DiscMessage msg)
dest
- msg
- public void setState(byte[] arg0)
setState
in interface org.jgroups.MessageListener
public void block()
block
in interface org.jgroups.MembershipListener
public void suspect(org.jgroups.Address arg0)
suspect
in interface org.jgroups.MembershipListener
arg0
- public void viewAccepted(org.jgroups.View arg0)
viewAccepted
in interface org.jgroups.MembershipListener
public byte[] getState(String arg0)
getState
in interface org.jgroups.ExtendedMessageListener
public void getState(OutputStream arg0)
getState
in interface org.jgroups.ExtendedMessageListener
public void getState(String arg0, OutputStream arg1)
getState
in interface org.jgroups.ExtendedMessageListener
public void setState(InputStream arg0)
setState
in interface org.jgroups.ExtendedMessageListener
public void setState(String arg0, byte[] arg1)
setState
in interface org.jgroups.ExtendedMessageListener
public void setState(String arg0, InputStream arg1)
setState
in interface org.jgroups.ExtendedMessageListener
public void unblock()
unblock
in interface org.jgroups.ExtendedMembershipListener
public org.jgroups.Address getHostAddress()
public void setHostAddress(org.jgroups.Address hostAddress)
hostAddress
- the hostAddress to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |