|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroupmgmt.impl.MemberBeacon
The MemberBeacon class; A serializable class that includes Member information. Can optionally include a location as well (see location package).
Field Summary | |
private Location |
location
|
private Member |
member
|
private boolean |
stopping
|
Constructor Summary | |
MemberBeacon(Member member)
Constructor that sets the corresponding values in the beacon. |
|
MemberBeacon(Member member,
boolean stopping)
Constructor that sets the corresponding values in the beacon. |
|
MemberBeacon(Member member,
Location location)
Constructor that sets the corresponding values in the beacon. |
|
MemberBeacon(Member member,
Location location,
boolean stopping)
Constructor that sets the corresponding values in the beacon. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Returns true if the specified object is a MemberBeacon and has the same Member, location (if any), and stopping flag. |
Location |
getLocation()
Allows access to the physical location of the source of this beacon. |
Member |
getMember()
Allows access to the Member that sent this beacon. |
boolean |
getStopping()
Allows access to thestopping variable. |
int |
hashCode()
Returns a hash value based on the Member, location, and stopping flag. |
void |
setBeacon(Member member,
Location location)
Resets the beacon using the provided information. |
void |
setBeacon(Member member,
Location location,
boolean stopping)
Resets the beacon using the provided information. |
void |
setLocation(Location location)
Sets the location value to the new value. |
void |
setMember(Member member)
Sets a new Member for this beacon. |
void |
setStopping(boolean stopping)
Sets the stopping variable to the provided variable. |
java.lang.String |
toString()
Get a String representation of the beacon |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private Member member
private Location location
private boolean stopping
Constructor Detail |
public MemberBeacon(Member member, Location location, boolean stopping)
member
- The Member object identifying the host.location
- The physical location of the host.stopping
- True if the host is shutting down.public MemberBeacon(Member member, Location location)
member
- The Member object identifying the host.location
- The physical location of the host.public MemberBeacon(Member member)
member
- The Member object identifying the host.public MemberBeacon(Member member, boolean stopping)
member
- The Member object identifying the host.stopping
- True if the host is shutting down.Method Detail |
public void setBeacon(Member member, Location location)
member
- The Member object identifying the host.location
- The physical location of the host.public void setBeacon(Member member, Location location, boolean stopping)
member
- The Member object identifying the host.location
- The physical location of the host.stopping
- True if the host is shutting down.public void setMember(Member member)
member
- The Member object identifying the host.public void setLocation(Location location)
location
- The physical location of the host.public void setStopping(boolean stopping)
stopping
- True if the host is shutting down.public Member getMember()
public Location getLocation()
public boolean getStopping()
public boolean equals(java.lang.Object o)
o
- The object to compare this MemberBeacon to.
public int hashCode()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |