cdx.scorebot.net.tests
Class Service

java.lang.Object
  extended by cdx.scorebot.net.tests.Service
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AdminService, ConnectionOrientedService, DNSService, EmailService, GenericService, WebService

public abstract class Service
extends java.lang.Object
implements java.io.Serializable

an abstract service which contains basic info about a service (like what socket it is listening on)

Author:
David Underhill
See Also:
Serialized Form

Constructor Summary
Service()
          default constructor
 
Method Summary
 boolean equals(Service s)
           
 java.lang.String getTargetAddress()
          gets the ip address or hostname of the service
 java.net.InetAddress getTargetInetAddress()
          gets the target InetAddress
 int getTargetPort()
          gets the port the service listens on
 void setTargetAddress(java.lang.String targetIP)
          sets the ip address or hostname of the service
 void setTargetInetAddress(java.net.InetAddress targetIP)
          sets the ip address or hostname of the service
 void setTargetPort(int targetPort)
          sets the port the service listens on
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service()
default constructor

Method Detail

getTargetInetAddress

public java.net.InetAddress getTargetInetAddress()
                                          throws java.net.UnknownHostException
gets the target InetAddress

Throws:
java.net.UnknownHostException

setTargetInetAddress

public void setTargetInetAddress(java.net.InetAddress targetIP)
sets the ip address or hostname of the service


getTargetAddress

public java.lang.String getTargetAddress()
gets the ip address or hostname of the service


setTargetAddress

public void setTargetAddress(java.lang.String targetIP)
sets the ip address or hostname of the service


getTargetPort

public int getTargetPort()
gets the port the service listens on


setTargetPort

public void setTargetPort(int targetPort)
sets the port the service listens on


equals

public boolean equals(Service s)