Package jadex.tools.web.jcc
Class JCCWebAgent
- java.lang.Object
-
- jadex.tools.web.jcc.JCCWebAgent
-
- All Implemented Interfaces:
IJCCWebService
public class JCCWebAgent extends java.lang.Object implements IJCCWebService
Frontend controller web jcc agent. Uses invokeServiceMethod() to delegate calls to the corresponding platforms (accessed by frontend).
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccessagent
-
Constructor Summary
Constructors Constructor Description JCCWebAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.util.Collection<IComponentIdentifier>>getPlatforms()Get the established connections.IFuture<java.util.Map<java.lang.String,java.lang.String>>getPluginFragments(IComponentIdentifier cid)Get the JCC plugin html fragments.IFuture<java.lang.Object>invokeServiceMethod(IComponentIdentifier cid, ClassInfo servicetype, java.lang.String methodname, java.lang.Object[] args, ClassInfo[] argtypes, ClassInfo rettype)Invoke a Jadex service on the managed platform.protected voidpublish(IWebPublishService wps)Wait for the IWebPublishService and then publish the resources.ISubscriptionIntermediateFuture<ServiceEvent<IComponentIdentifier>>subscribeToPlatforms()Get events about known platforms.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
-
-
Method Detail
-
publish
protected void publish(IWebPublishService wps)
Wait for the IWebPublishService and then publish the resources.- Parameters:
pubser- The publish service.
-
getPlatforms
public IFuture<java.util.Collection<IComponentIdentifier>> getPlatforms()
Get the established connections.- Specified by:
getPlatformsin interfaceIJCCWebService- Returns:
- A list of connections.
-
subscribeToPlatforms
public ISubscriptionIntermediateFuture<ServiceEvent<IComponentIdentifier>> subscribeToPlatforms()
Get events about known platforms.- Specified by:
subscribeToPlatformsin interfaceIJCCWebService- Returns:
- Events for platforms.
-
getPluginFragments
public IFuture<java.util.Map<java.lang.String,java.lang.String>> getPluginFragments(IComponentIdentifier cid)
Get the JCC plugin html fragments.- Specified by:
getPluginFragmentsin interfaceIJCCWebService
-
invokeServiceMethod
public IFuture<java.lang.Object> invokeServiceMethod(IComponentIdentifier cid, ClassInfo servicetype, java.lang.String methodname, java.lang.Object[] args, ClassInfo[] argtypes, ClassInfo rettype)
Invoke a Jadex service on the managed platform.- Specified by:
invokeServiceMethodin interfaceIJCCWebService
-
-