de.fzj.unicore.uas.discovery
Class ComponentFinder

java.lang.Object
  extended by de.fzj.unicore.uas.discovery.ComponentFinder
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
GatewayFinder, MulticastRegistryFinder

public abstract class ComponentFinder
extends java.lang.Object
implements java.lang.Runnable


Field Summary
protected  java.lang.String key
           
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
ComponentFinder()
           
 
Method Summary
protected  java.lang.String choose(java.util.List<java.lang.String> replies)
          choose from a list of replies
protected  void doDiscover()
           
 java.lang.String getComponentName()
           
protected abstract  java.lang.String getMessage()
          the additional info to send to the server
 java.util.List<java.lang.String> getResults()
           
protected abstract  void makeResult(java.lang.String reply)
           
 void run()
           
protected  void sendRequest(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

key

protected java.lang.String key
Constructor Detail

ComponentFinder

public ComponentFinder()
Method Detail

getResults

public java.util.List<java.lang.String> getResults()

getComponentName

public java.lang.String getComponentName()

doDiscover

protected void doDiscover()

run

public void run()
Specified by:
run in interface java.lang.Runnable

choose

protected java.lang.String choose(java.util.List<java.lang.String> replies)
choose from a list of replies

Parameters:
list -
Returns:
selected reply

makeResult

protected abstract void makeResult(java.lang.String reply)

sendRequest

protected void sendRequest(java.lang.String message)

getMessage

protected abstract java.lang.String getMessage()
the additional info to send to the server



Copyright © 2006-2010 Research Center Juelich. All Rights Reserved.