weka4ws.core
Class HostCheckConnectionThread

java.lang.Object
  extended byjava.lang.Thread
      extended byweka4ws.core.HostCheckConnectionThread
All Implemented Interfaces:
java.lang.Runnable

public class HostCheckConnectionThread
extends java.lang.Thread

Tries to establish a connection with the given host at the given port in order to check whether the service is available and running.

Version:
1.0
Author:
Marco Lackovic
See Also:
Hosts, HostCheckThread

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HostCheckConnectionThread(java.lang.String host, java.lang.String port, java.lang.String serviceName)
           
 
Method Summary
 boolean connectionFailed()
           
 java.lang.String getErrorMessage()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostCheckConnectionThread

public HostCheckConnectionThread(java.lang.String host,
                                 java.lang.String port,
                                 java.lang.String serviceName)
Method Detail

run

public void run()

connectionFailed

public boolean connectionFailed()

getErrorMessage

public java.lang.String getErrorMessage()