Class Test

    • Constructor Summary

      Constructors 
      Constructor Description
      Test()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createChannelClient()
      Create a channel client that invokes "getValue", "increment" and "incrementBy n" actions
      void createChannelProvider()
      Create a provider that supports "getValue", "increment" and "incrementBy n" actions
      static void main​(java.lang.String[] args)  
      void onClose​(java.lang.String error)
      Callback when connection is closed
      void onError​(java.lang.String reason)
      Callback when client cannot start or connect to the Desktop.
      void onMessage​(java.lang.String message)
      Callback when a message is sent to this client
      void onOutgoingMessage​(java.lang.String message)
      Callback when a message is sent from this client
      void onReady()
      Callback when Desktop is successfully connected and ready to accept commands.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Test

        public Test()
    • Method Detail

      • createChannelProvider

        public void createChannelProvider()
        Create a provider that supports "getValue", "increment" and "incrementBy n" actions
      • createChannelClient

        public void createChannelClient()
        Create a channel client that invokes "getValue", "increment" and "incrementBy n" actions
      • onClose

        public void onClose​(java.lang.String error)
        Description copied from interface: DesktopStateListener
        Callback when connection is closed
        Specified by:
        onClose in interface DesktopStateListener
        Parameters:
        error - Error message. null for normal close
      • onError

        public void onError​(java.lang.String reason)
        Description copied from interface: DesktopStateListener
        Callback when client cannot start or connect to the Desktop.
        Specified by:
        onError in interface DesktopStateListener
        Parameters:
        reason - Error message
      • onMessage

        public void onMessage​(java.lang.String message)
        Description copied from interface: DesktopStateListener
        Callback when a message is sent to this client
        Specified by:
        onMessage in interface DesktopStateListener
        Parameters:
        message - Message text
      • onOutgoingMessage

        public void onOutgoingMessage​(java.lang.String message)
        Description copied from interface: DesktopStateListener
        Callback when a message is sent from this client
        Specified by:
        onOutgoingMessage in interface DesktopStateListener
        Parameters:
        message - Message text
      • main

        public static void main​(java.lang.String[] args)