|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.semoa.service.AbstractService examples.wslauncher3.DelegationServiceImpl
This service launches an agent via webservice. Publish -class examples.wslauncher3.DelegationServiceImpl -key ${WhatIs:DELEGATION_SERVICE}
Nested Class Summary | |
private class |
DelegationServiceImpl.PrivilegedLaunchAction
This action launches the agent. |
Field Summary | |
private static String |
ADDITIONAL_EXCLUDES
Additional package prefixes which shall not be imported into the agent |
private static String |
AGENT_
The class of the agent which shall be launched |
private static Logger |
log_
The Logger instance for this class |
private Map |
syncmap_
The syncmap_ is needed to coordinate the webservices and the agents. |
private long |
TIMEOUT
Timeout for each thread to wait for the agent's return. |
private static int |
TOKEN_LENGTH
Length 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.wslauncher3.DelegationService |
WHATIS |
Constructor Summary | |
DelegationServiceImpl()
Constructor |
Method Summary | |
String |
author()
Returns the name of the author of the service. |
String |
delegate(String wsurl,
String method,
Object[] params)
This method generates a token and stores it in the agent's properties as well as in the syncmap_. |
String |
info()
Returns the informative string which should describe the service's essence in a sentence. |
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 Logger log_
Logger
instance for this class
private static int TOKEN_LENGTH
private static String AGENT_
private static String ADDITIONAL_EXCLUDES
private long TIMEOUT
private Map syncmap_
Constructor Detail |
public DelegationServiceImpl()
Method Detail |
public String delegate(String wsurl, String method, Object[] params)
delegate
in interface DelegationService
wsurl
- the url of the webservicemethod
- the method to invoke at the webservice
DelegationService.delegate(String, String, Object[])
public void response(String answ, String token)
response
in interface DelegationService
answ
- answer from the agent2token
- token for the synchronization of Agent2 and the
delegation serviceDelegationService.response(String, String)
public String info()
AbstractService
info
in interface Service
info
in class AbstractService
public String author()
AbstractService
author
in interface Service
author
in class AbstractService
public String revision()
AbstractService
majorVersion()
, 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |