|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.ident.Identity
public class Identity
Identity is used to uniquely identify a JBoss server instance on the network.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_DOMAIN
|
Method Summary | |
---|---|
static java.lang.String |
createUniqueID()
|
boolean |
equals(java.lang.Object obj)
|
static Identity |
get(javax.management.MBeanServer server)
|
java.net.InetAddress |
getAddress()
return the JBOSS IP Address of the instance |
java.lang.String |
getDomain()
return the domain for the server |
java.lang.String |
getInstanceId()
return the JBOSS Instance ID, which is the same between reboots of the same JBOSS server instance. |
java.lang.String |
getJMXId()
return the JMX server ID for the JBoss instance, which is different between reboots of the same JBOSS server instance. |
int |
hashCode()
|
boolean |
isSameInstance(Identity identity)
returns true if the identity represents the same JBOSS Instance, although may not be the exact same process space since the JVM process space might be different (such as a reboot). |
boolean |
isSameJVM(Identity identity)
returns true if the identity represents the same JVM |
boolean |
isSameMachine(Identity identity)
returns true if the identity is on the same JBOSS machine, represented by the same IP address (this may not work in the case several physically different machines have the same IP Address). |
static void |
setDomain(java.lang.String domain)
set the domain for all active mbean servers |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static transient java.lang.String DEFAULT_DOMAIN
Method Detail |
---|
public static void setDomain(java.lang.String domain)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String getDomain()
public java.lang.String getInstanceId()
public java.net.InetAddress getAddress()
public java.lang.String getJMXId()
public boolean isSameJVM(Identity identity)
identity
-
public boolean isSameInstance(Identity identity)
identity
-
public boolean isSameMachine(Identity identity)
identity
-
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static final Identity get(javax.management.MBeanServer server)
public static final java.lang.String createUniqueID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |