fr.dyade.aaa.agent

Class ServerDesc

Implemented Interfaces:
Serializable

public final class ServerDesc
extends java.lang.Object
implements Serializable

Description of an agent server. It is used by Channel and Network objects. Be careful, this structure is initialized in AgentServer, but it can be viewed outside of the agent package, so it's very important to make all modifiers package.

Constructor Summary

ServerDesc(short sid, String name, String hostname)
Constructs a new node for a persistent agent server.

Method Summary

InetAddress
getAddr()
Returns an IP address for its server.
String
getDomainName()
Class
getDomainType()
short
getGateway()
String
getHostname()
Gets host name for this server.
int
getPort()
short
getServerId()
Gets server id.
String
getServerName()
Gets server name for this server.
ServiceDesc[]
getServices()
Gets the description of services running on this server.
InetAddress
resetAddr()
Resolves an IP address for its server, don't use an eventually caching address.
String
toString()
Provides a string image for this object.

Constructor Details

ServerDesc

public ServerDesc(short sid,
                  String name,
                  String hostname)
Constructs a new node for a persistent agent server.

Parameters:
name - server name
hostname - host name

Method Details

getAddr

public InetAddress getAddr()
Returns an IP address for its server.

Returns:
an IP address for this server.


getDomainName

public String getDomainName()


getDomainType

public Class getDomainType()


getGateway

public short getGateway()


getHostname

public String getHostname()
Gets host name for this server.

Returns:
the host name.


getPort

public int getPort()


getServerId

public short getServerId()
Gets server id. for this server.

Returns:
the server id.


getServerName

public String getServerName()
Gets server name for this server.

Returns:
the server name.


getServices

public ServiceDesc[] getServices()
Gets the description of services running on this server.

Returns:
the description of services.


resetAddr

public InetAddress resetAddr()
Resolves an IP address for its server, don't use an eventually caching address.

Returns:
an IP address for this server.


toString

public String toString()
Provides a string image for this object.

Returns:
printable image of this object


Copyright B) 2004 Scalagent - All rights reserved