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.
        value - the callable name
      • getCallableName

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

        public String callableNameTipText()
        Returns the tip text for this property.
        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
        the actor, can be null
      • findCallableActor

        protected Actor findCallableActor()
        Tries to find the callable actor referenced by its global name.
        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.
        event - the event type
        cmd - the remote command
        msg - the message, null if none available
        null if successful, otherwise error message
      • responseFailed

        public void responseFailed​(RemoteCommand cmd,
                                   String msg)
        Handles failed responses.
        Specified by:
        responseFailed in interface ResponseHandler
        cmd - the command with the response
        msg - the optional error message, can be null