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 IInternalAccess
agent
-
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 void
publish(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:
getPlatforms
in interfaceIJCCWebService
- Returns:
- A list of connections.
-
subscribeToPlatforms
public ISubscriptionIntermediateFuture<ServiceEvent<IComponentIdentifier>> subscribeToPlatforms()
Get events about known platforms.- Specified by:
subscribeToPlatforms
in 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:
getPluginFragments
in 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:
invokeServiceMethod
in interfaceIJCCWebService
-
-