Package step.client

Class StepClient

    • Field Detail

      • credentials

        protected final step.client.credentials.ControllerCredentials credentials
    • Constructor Detail

      • StepClient

        public StepClient()
        Creates a new StepClient and logins to the controller using the controller host and credentials provided by SyspropCredendialsBuilder
      • StepClient

        public StepClient​(String controllerUrl)
        Creates a new StepClient and logins to the controller without credentials (for controller that have disabled authentication)
        Parameters:
        controllerUrl - the URL of the controller (for instance: http://mycontroller.com)
      • StepClient

        public StepClient​(String controllerUrl,
                          String username,
                          String password)
        Creates a new StepClient and logins to the controller using the credentials provided as argument
        Parameters:
        controllerUrl - the URL of the controller (for instance: http://mycontroller.com)
        username - the username to be used to login to the controller
        password - the password to be used to login to the controller
      • StepClient

        public StepClient​(step.client.credentials.ControllerCredentials controllerCredentials)
        Creates a new StepClient and logins to the controller using the credentials provided as argument
        Parameters:
        controllerCredentials - the complex object already containing all of the login information
    • Method Detail

      • selectTenant

        public void selectTenant​(String tenantName)
                          throws Exception
        Select a specific tenant. This is function is equivalent to the selection of a tenant in GUI on the right corner
        Parameters:
        tenantName - the name of the tenant to be selected. In the GUI this is the name of tenant as displayed in the dropdown
        Throws:
        Exception
      • getAvailableTenants

        public List<Tenant> getAvailableTenants()
        Returns:
        the list of tenants available in the current session
      • getCurrentTenant

        public Tenant getCurrentTenant()
        Returns:
        the current tenant
      • getPlanBuilders

        public PlanBuilders getPlanBuilders()
        Returns:
        the available Plan builders to build Plan instances
      • getPlans

        public step.core.plans.PlanAccessor getPlans()
        Returns:
        the PlanRepository to access the Plans listed under "Plans"
      • getPlanRunners

        public PlanRunners getPlanRunners()
        Returns:
        the available plan runners for execution of "Plans"
      • getFunctionManager

        public step.functions.manager.FunctionManager getFunctionManager()
        Returns:
        the function manager to add/delete/get functions (aka Keywords)
      • getFunctionExecutionService

        public step.functions.execution.FunctionExecutionService getFunctionExecutionService()
        Returns:
        the function execution service to run functions remotely. For advanced users only.
      • getResourceManager

        public step.client.resources.RemoteResourceManager getResourceManager()
        Returns:
        the resource manager to upload resources (Keyword files, etc) to the controller
      • getExecutionManager

        public step.client.executions.RemoteExecutionManager getExecutionManager()
        Returns:
        the execution manager to start/stop/monitor executions
      • getEventBrokerClient

        public step.client.eventbroker.RemoteEventBrokerClient getEventBrokerClient()
        Returns:
        a client for the EventBroker of the controller
      • getRemoteAccessors

        public step.client.accessors.RemoteAccessors getRemoteAccessors()
        Returns:
        the remote accessors to access low-level entities directly. For advanced users only.
      • getStagingRepositoryClient

        public step.client.repository.StagingRepositoryClient getStagingRepositoryClient()
        Returns:
        the staging client to run fully isolated executions on the controller
      • getControllerServicesClient

        public step.client.controller.ControllerServicesClient getControllerServicesClient()
        Returns:
        a client for the miscellaneous controller services