Class AuthManager

  • All Implemented Interfaces:
    java.lang.Cloneable, Initializable, Changeable, Debuggable, DebugListener, Derivable, HierarchyListener, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class AuthManager
    extends AbstractInitializableAttribute
    Download, build, start and stop the local authorization entity, Auth.

    This class requires access to the github repository for Auth.

    The primary purpose of this class is to make it easy to download, build and start the Auth on a local machine. This is primarily useful for testing.

    See org/terraswarm/accessor/accessors/web/net/authSetup for a shell script that does something similar.

    Since:
    Ptolemy II 11.0
    Version:
    $Id$
    Author:
    Hokeun Kim
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Field Detail

      • buildAuth

        public Parameter buildAuth
        If true then build the local copy of the Auth. The default value is the value true;
      • cleanAuth

        public Parameter cleanAuth
        If true then remove the contents of the authSourceDirectory at the start of initialization. The default value is the value false.
      • authSourceDirectory

        public FileParameter authSourceDirectory
        The path to the Auth sources. The default value is "$PTII/vendors/iotauth".
      • isLocalAuth

        public Parameter isLocalAuth
        Use a local version of Auth. The default value is true, meaning that the Auth will be downloaded, built, started and stopped.
      • stopAuthInWrapup

        public Parameter stopAuthInWrapup
        If true, then stop Auth processes in wrapup(). The default value is true, meaning that the daemons are stopped. If deleteAllGCLsInWrapup is true, the the value of this parameter is ignored and the Auth processes are always stopped in wrapup. Set this parameter to true to debug the daemons after running a model.
    • Constructor Detail

      • AuthManager

        public AuthManager​(CompositeEntity container,
                           java.lang.String name)
                    throws IllegalActionException,
                           NameDuplicationException
        Construct a AuthManager with a name and a container. The container argument must not be null, or a NullPointerException will be thrown. This actor will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. Increment the version of the workspace.
        Parameters:
        container - Container of this attribute.
        name - Name of this attribute.
        Throws:
        IllegalActionException - If the container is incompatible with this actor.
        NameDuplicationException - If the name coincides with an actor already in the container.