Class CallableActorsHandler

    • Field Detail

      • m_CallableActorInitialized

        protected boolean m_CallableActorInitialized
        whether the callable actor has been initialized.
      • m_CallableActor

        protected Actor m_CallableActor
        the callable actor.
    • Constructor Detail

      • CallableActorsHandler

        public CallableActorsHandler()
    • Method Detail

      • setCallableName

        public void setCallableName​(CallableActorReference value)
        Sets the name of the callable transformer to use.
        Parameters:
        value - the callable name
      • getCallableName

        public CallableActorReference getCallableName()
        Returns the name of the callable transformer in use.
        Returns:
        the callable name
      • callableNameTipText

        public String callableNameTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getCallableActor

        public Actor getCallableActor()
        Returns the currently set callable actor.
        Specified by:
        getCallableActor in interface CallableActorUser
        Returns:
        the actor, can be null
      • findCallableActor

        protected Actor findCallableActor()
        Tries to find the callable actor referenced by its global name.
        Returns:
        the callable actor or null if not found
      • send

        protected String send​(String event,
                              RemoteCommand cmd,
                              String msg)
        Sends the remote command to the callable actor.
        Parameters:
        event - the event type
        cmd - the remote command
        msg - the message, null if none available
        Returns:
        null if successful, otherwise error message
      • requestFailed

        public void requestFailed​(RemoteCommand cmd,
                                  String msg)
        Handles failed requests.
        Specified by:
        requestFailed in interface RequestHandler
        Parameters:
        cmd - the command with the request
        msg - the optional error message, can be null
      • requestRejected

        public void requestRejected​(RemoteCommand cmd,
                                    String msg)
        Handles rejected requests.
        Specified by:
        requestRejected in interface RequestHandler
        Parameters:
        cmd - the command with the request
        msg - the optional error message, can be null