|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jini.rio.monitor.ProvisionMonitor.PeerInfo
public static class ProvisionMonitor.PeerInfo
Contains information about ProvisionMonitor peers involved in providing support for backup approach
Constructor Summary | |
---|---|
ProvisionMonitor.PeerInfo(ProvisionMonitor service,
long id,
String address)
Create a new PeerInfo |
Method Summary | |
---|---|
int |
compareTo(Object o)
Compare PeerInfo instances to each other to determine natural order. |
boolean |
equals(Object o)
PeerInfo instances are equal when their ProvisionMonitor service instance is equal |
String |
getAddress()
Get the TCP/IP address of the machine the ProvisionMonitor is running on |
Integer |
getBackupCount()
Get the number of ProvisionMonitors are backed up |
Long |
getID()
|
ProvisionMonitor |
getService()
Get the ProvisionMonitor service |
int |
hashCode()
Override hashCode to return the hashCode of the service |
void |
setBackupCount(int bCount)
Set the count property |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProvisionMonitor.PeerInfo(ProvisionMonitor service, long id, String address)
service
- ProvisionMonitor proxyid
- A random number identifier to be used to break tiesaddress
- The TCP/IP address of the machine the ProvisionMonitor
is running onMethod Detail |
---|
public Long getID()
public String getAddress()
public void setBackupCount(int bCount)
bCount
- The new count for the amount of backups the
ProvisionMonitor is a backup forpublic Integer getBackupCount()
public ProvisionMonitor getService()
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |