HOME

com.ireasoning.protocol
Class Target

java.lang.Object
  extended bycom.ireasoning.protocol.Target
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SnmpTarget

public abstract class Target
extends Object
implements Serializable

This class describes agent's properties

See Also:
Serialized Form

Field Summary
protected  String _host
          Host name or ip address
protected  InetAddress _inetAddress
           
protected  int _port
          Port number
 
Constructor Summary
protected Target()
          Constructs a Target instance
 
Method Summary
 String getHost()
          Returns the host name or ip address
 InetAddress getInetAddress()
           
 int getPort()
          Returns the port number
 void setHost(String host)
          Sets a new host
 void setPort(int port)
          Sets port number
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_host

protected String _host
Host name or ip address


_inetAddress

protected InetAddress _inetAddress

_port

protected int _port
Port number

Constructor Detail

Target

protected Target()
Constructs a Target instance

Method Detail

getHost

public String getHost()
Returns the host name or ip address


setHost

public void setHost(String host)
Sets a new host

Parameters:
host - host name or ip address

getPort

public int getPort()
Returns the port number


getInetAddress

public InetAddress getInetAddress()

setPort

public void setPort(int port)
Sets port number


toString

public String toString()

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.