Package jadex.platform
Class PlatformAgent
- java.lang.Object
-
- jadex.platform.PlatformAgent
-
public class PlatformAgent extends java.lang.Object
Basic standalone platform services provided as a micro agent.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
protected static IFilter<SClassReader.ClassInfo>
filter
Filter for finding agents to be auto-started.protected boolean
platformproxies
Boolean if platform proxies should be created.protected static java.lang.String
STARTUP_CACHE_FILE
boolean
STARTUP_RANDOM
-
Constructor Summary
Constructors Constructor Description PlatformAgent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addComponentToLevels(DependencyResolver<java.lang.String> dr, SClassReader.ClassInfo ci, java.util.Map<java.lang.String,java.lang.String> names, java.util.Set<java.lang.String> comps)
Add a components to the dependency resolver to build start levels.protected void
addQueryForPlatformProxies()
Add query for creating platform proxies.static IExecutionService
createExecutionServiceImpl(java.lang.Object asyncexecution, java.lang.Object simulation, java.lang.Object bisimulation, IInternalAccess component)
Create execution service.protected java.lang.Boolean
getAgentStart(java.lang.String name)
Get the config/argument value of an agent name.static java.net.URL[]
getClasspathUrls(java.lang.ClassLoader classloader)
Get the classpath urls.IFuture<java.lang.Void>
init()
Called when platform startup finished.protected static boolean
isSystemComponent(SClassReader.ClassInfo ci, java.lang.ClassLoader cl)
Statically checks a class if it is a system component.protected static boolean
isSystemInterface(java.lang.String ifacename, java.lang.ClassLoader cl)
Checks if an interface or any superinterface has the system property.
-
-
-
Field Detail
-
platformproxies
protected boolean platformproxies
Boolean if platform proxies should be created.
-
STARTUP_CACHE_FILE
protected static final java.lang.String STARTUP_CACHE_FILE
- See Also:
- Constant Field Values
-
filter
protected static IFilter<SClassReader.ClassInfo> filter
Filter for finding agents to be auto-started.
-
agent
protected IInternalAccess agent
-
STARTUP_RANDOM
public boolean STARTUP_RANDOM
-
-
Method Detail
-
createExecutionServiceImpl
public static IExecutionService createExecutionServiceImpl(java.lang.Object asyncexecution, java.lang.Object simulation, java.lang.Object bisimulation, IInternalAccess component)
Create execution service.
-
getClasspathUrls
public static java.net.URL[] getClasspathUrls(java.lang.ClassLoader classloader)
Get the classpath urls.- Returns:
- The classpath urls.
-
init
public IFuture<java.lang.Void> init()
Called when platform startup finished.
-
addQueryForPlatformProxies
protected void addQueryForPlatformProxies()
Add query for creating platform proxies.
-
addComponentToLevels
protected void addComponentToLevels(DependencyResolver<java.lang.String> dr, SClassReader.ClassInfo ci, java.util.Map<java.lang.String,java.lang.String> names, java.util.Set<java.lang.String> comps)
Add a components to the dependency resolver to build start levels. Components of the same level can be started in parallel.
-
getAgentStart
protected java.lang.Boolean getAgentStart(java.lang.String name)
Get the config/argument value of an agent name.
-
isSystemComponent
protected static final boolean isSystemComponent(SClassReader.ClassInfo ci, java.lang.ClassLoader cl)
Statically checks a class if it is a system component.- Parameters:
ci
- The class info from SClassReadercl
- The class loader.- Returns:
- True, if the component is a system component.
-
isSystemInterface
protected static final boolean isSystemInterface(java.lang.String ifacename, java.lang.ClassLoader cl)
Checks if an interface or any superinterface has the system property.- Parameters:
ifacename
- Interface name.cl
- Class loader.- Returns:
- True, if system.
-
-