Class UpdateAgent

    • Field Detail

      • interval

        protected long interval
        The check for update interval.
      • separatevm

        protected boolean separatevm
        Flag if new vm should be used.
      • forbiddenvmargs

        protected java.lang.String[] forbiddenvmargs
        The vmargs that should not be used.
      • account

        protected EmailAccount account
        The email account.
      • receivers

        protected java.lang.String[] receivers
        The email receivers.
      • outputfile

        protected java.lang.String outputfile
        The output file (if any).
      • errorfile

        protected java.lang.String errorfile
        The error file (if any).
    • Constructor Detail

      • UpdateAgent

        public UpdateAgent()
    • Method Detail

      • body

        public void body()
        The agent body.
      • getVersionInfo

        protected IFuture<java.lang.String> getVersionInfo​(IComponentIdentifier newcid)
        Get the version info for a new platform.
      • getLocalVersionInfo

        protected static java.lang.String getLocalVersionInfo()
        Create a string for the local Jadex version.
      • notifyUpdateResult

        protected IFuture<java.lang.Void> notifyUpdateResult​(java.lang.String text)
        Notify administrators that platform update has been tried.
      • generateStartOptions

        protected IFuture<StartOptions> generateStartOptions​(UpdateInfo ui)
        Generate the vm start options. - main class: jadex.base.Starter - vmargs: old vmargs (without debug option) - program args: old program args (with updated argument for update agent to allow handshake)
      • flattenStrings

        public java.lang.String flattenStrings​(java.util.Iterator<java.lang.String> it,
                                               java.lang.String delim)
        Flatten strings to one string.
        Parameters:
        it - The iterator of strings.
        delim - The delimiter used to connect the entries.
      • checkForUpdate

        protected IFuture<UpdateInfo> checkForUpdate()
        Check if an update is available.
      • getUpdateArguments

        protected java.util.Map<java.lang.String,​java.lang.Object> getUpdateArguments()
        Get the arguments to use for the update agent.