org.livetribe.slp.spi.da
Class DirectoryAgentInfo
java.lang.Object
org.livetribe.slp.spi.da.DirectoryAgentInfo
public class DirectoryAgentInfo
- extends Object
A POJO that holds information about an SLP DirectoryAgent.
This class is not thread safe, and should be created and used within the same thread.
DirectoryAgentInfos are used as key in hash data structures, so they should implement
equals(Object)
and hashCode()
correctly. Since there can be only
one DirectoryAgent per host, the host address or a string containing it should be used.
- Version:
- $Rev: 163 $ $Date: 2006-06-12 17:14:02 +0200 (Mon, 12 Jun 2006) $
from
public static DirectoryAgentInfo from(DAAdvert daAdvert)
getAttributes
public Attributes getAttributes()
getBootTime
public long getBootTime()
getLanguage
public String getLanguage()
getScopes
public Scopes getScopes()
matchScopes
public boolean matchScopes(Scopes others)
- Returns true if at least one of the given scopes is also a scope of this DirectoryAgentInfo
getHost
public String getHost()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2006-2012 LiveTribe. All Rights Reserved.