HOME

com.ireasoning.protocol
Class Target

java.lang.Object
  |
  +--com.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  int _port
          Port number
 
Constructor Summary
protected Target()
          Constructs a Target instance
 
Method Summary
 String getHost()
          Returns the host name or ip address
 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

_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

setPort

public void setPort(int port)
Sets port number

toString

public String toString()
Overrides:
toString in class Object

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.