public final class MonitorId extends EField implements java.io.Serializable
toString()
return value
serves as the subject for the Monitorable
instance
PersistentStatusMessage
and
TransientStatusMessage
notifications.Modifier and Type | Field and Description |
---|---|
int |
id
The object's assigned integer identifier.
|
java.lang.String |
instanceName
The monitored object's name.
|
java.lang.String |
typeName
The monitored object's type.
|
MAX_FIELDS
Constructor and Description |
---|
MonitorId(java.lang.String typeName,
java.lang.String instanceName,
int id)
Creates a new
MonitorId instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Returns
true if o is a
non-null MonitorId instance with the same
integer identifier; otherwise, returns false . |
int |
hashCode()
Returns the unique, 4-byte, signed monitor identifier.
|
java.lang.String |
toString()
Returns "<type name>.<instance name>".
|
public final java.lang.String typeName
public final java.lang.String instanceName
public final int id
public MonitorId(java.lang.String typeName, java.lang.String instanceName, int id)
MonitorId
instance.typeName
- the object type name.instanceName
- the object name. Should be unique
within the process for the given type name.id
- the assigned unique identifier. Unique within
the process.public boolean equals(java.lang.Object o)
true
if o
is a
non-null MonitorId
instance with the same
integer identifier; otherwise, returns false
.equals
in class java.lang.Object
o
- comparison object.true
if o
equals
this MonitorId
instance and false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
Monitorable
instance
PersistentStatusMessage
and
TransientStatusMessage
notifications.toString
in class java.lang.Object