com.ingenotech.hudson
Class TCPConnection

java.lang.Object
  extended by com.ingenotech.hudson.TCPConnection
All Implemented Interfaces:
Connection

public class TCPConnection
extends java.lang.Object
implements Connection


Field Summary
 
Fields inherited from interface com.ingenotech.hudson.Connection
NAME, PING, QUIT, RESULT
 
Constructor Summary
TCPConnection(java.net.InetAddress server, int port)
           
TCPConnection(java.lang.String host, int port)
           
 
Method Summary
 void close()
           
 java.lang.String getServerIdent()
           
 void open()
           
 boolean ping()
           
 void sendResult(java.lang.String buildName, hudson.model.Result result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPConnection

public TCPConnection(java.lang.String host,
                     int port)
              throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

TCPConnection

public TCPConnection(java.net.InetAddress server,
                     int port)
Method Detail

open

public void open()
          throws java.io.IOException
Specified by:
open in interface Connection
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface Connection
Throws:
java.io.IOException

getServerIdent

public java.lang.String getServerIdent()
Specified by:
getServerIdent in interface Connection

ping

public boolean ping()
             throws java.io.IOException
Specified by:
ping in interface Connection
Throws:
java.io.IOException

sendResult

public void sendResult(java.lang.String buildName,
                       hudson.model.Result result)
Specified by:
sendResult in interface Connection


Copyright © 2010. All Rights Reserved.