| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.semoa.service.AbstractService
examples.wslauncher2.WebserviceLauncherImpl
This service launches an agent via webservice.
 The agents migrates to the first host found via vicinity
 and invokes the webservice method specified by the 
 given parameters web service url, method name and method 
 parameters.
 
 Publish -class examples.wslauncher2.WebserviceLauncherImpl -key ${WhatIs:WEBSERVICE_LAUNCHER2}
 Publish -key ${WhatIs:WEBSERVICE_LAUNCHER2} \; -launch http://localhost:8000/vesuv/services/IhkBenachrichtigung "
| Field Summary | |
| private static String | ADDITIONAL_EXCLUDESAdditional package prefixes which shall not be imported into the agent | 
| private static String | AGENT_The class of the agent which shall be launched | 
| private  Map | syncmap_The syncmap_ is needed to coordinate the webservices and the agents. | 
| private  long | TIMEOUTTimeout for each thread to wait for the agent's return. | 
| private static int | TOKEN_LENGTHLength of the token which is used to synchronize agent and webservice. | 
| Fields inherited from class de.fhg.igd.semoa.service.AbstractService | 
| REV_POSTFIX, REV_PREFIX | 
| Fields inherited from interface examples.wslauncher2.WebserviceLauncher | 
| WHATIS, WS_NAME | 
| Constructor Summary | |
| WebserviceLauncherImpl()Constructor | |
| Method Summary | |
|  String | author()Returns the name of the author of the service. | 
|  String | info()Returns the informative string which should describe the service's essence in a sentence. | 
|  void | launch(String wsurl,
       String method,
       String[] param)This method generates a token and stores it in the agent's properties as well as in the syncmap_. | 
| static void | main(String[] argv) | 
|  void | response(String answ,
         String token)Checks if the token is a key in the syncmap. | 
|  String | revision()Returns the revision number of this class as a string. | 
| Methods inherited from class de.fhg.igd.semoa.service.AbstractService | 
| checkDependencies, dependencies, docs, doPrivileged, doPrivileged, getACC, getEnvironment, majorVersion, minorVersion, toString | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
private static int TOKEN_LENGTH
private static String AGENT_
private static String ADDITIONAL_EXCLUDES
private long TIMEOUT
private Map syncmap_
| Constructor Detail | 
public WebserviceLauncherImpl()
| Method Detail | 
public void launch(String wsurl,
                   String method,
                   String[] param)
launch in interface WebserviceLauncherwsurl - the url of the webservice which shall be called by the agentmethod - the method of the webservice which shall be calledparam - the parameters which are needed for a call of this methodWebserviceLauncher.launch(String, String, String[])
public void response(String answ,
                     String token)
response in interface WebserviceLauncheransw - answer from the agenttoken - token for the synchronization of the agent and 
 			the	webservice launcherpublic String info()
AbstractService
info in interface Serviceinfo in class AbstractServicepublic String author()
AbstractService
author in interface Serviceauthor in class AbstractServicepublic String revision()
AbstractServicemajorVersion(), minorVersion
 based on the assumption that this method returns a
 revision string as generated by rcs(1) for the template
 "$Revision: 1.7 $/$Date: 2007-08-08 04:41:53 +0200 (Wed, 08 Aug 2007) $".
revision in class AbstractService
public static void main(String[] argv)
                 throws Exception
Exception| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||