Class PlatformAgent


  • public class PlatformAgent
    extends java.lang.Object
    Basic standalone platform services provided as a micro agent.
    • 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
      • STARTUP_RANDOM

        public boolean STARTUP_RANDOM
    • Constructor Detail

      • PlatformAgent

        public PlatformAgent()
    • 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 SClassReader
        cl - 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.