eu.xtreemos.xosd.security.rca
Class ResourceID
java.lang.Object
eu.xtreemos.xosd.security.rca.ResourceID
- All Implemented Interfaces:
- java.io.Serializable
public class ResourceID
- extends java.lang.Object
- implements java.io.Serializable
A helper class for identifying a resource.
- Version:
- 0.01 The ID of the resource is the node's IP. Some support for
getting MAC address is there though.
- Author:
- matej.artac@xlab.si
- See Also:
- Serialized Form
Field Summary |
java.net.InetAddress |
ip
|
(package private) static org.apache.log4j.Logger |
logger
|
int |
port
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
logger
static org.apache.log4j.Logger logger
ip
public java.net.InetAddress ip
port
public int port
ResourceID
public ResourceID()
equals
public boolean equals(java.lang.Object arg0)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getMacAddress
public java.lang.String getMacAddress()
getFromHostPort
public static ResourceID getFromHostPort(java.lang.String hostport)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object