Package com.openfin.desktop.test
Class Test
- java.lang.Object
-
- com.openfin.desktop.test.Test
-
- All Implemented Interfaces:
DesktopStateListener
public class Test extends java.lang.Object implements DesktopStateListener
-
-
Constructor Summary
Constructors Constructor Description Test()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateChannelClient()Create a channel client that invokes "getValue", "increment" and "incrementBy n" actionsvoidcreateChannelProvider()Create a provider that supports "getValue", "increment" and "incrementBy n" actionsstatic voidmain(java.lang.String[] args)voidonClose(java.lang.String error)Callback when connection is closedvoidonError(java.lang.String reason)Callback when client cannot start or connect to the Desktop.voidonMessage(java.lang.String message)Callback when a message is sent to this clientvoidonOutgoingMessage(java.lang.String message)Callback when a message is sent from this clientvoidonReady()Callback when Desktop is successfully connected and ready to accept commands.
-
-
-
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
-
onReady
public void onReady()
Description copied from interface:DesktopStateListenerCallback when Desktop is successfully connected and ready to accept commands.- Specified by:
onReadyin interfaceDesktopStateListener
-
onClose
public void onClose(java.lang.String error)
Description copied from interface:DesktopStateListenerCallback when connection is closed- Specified by:
onClosein interfaceDesktopStateListener- Parameters:
error- Error message. null for normal close
-
onError
public void onError(java.lang.String reason)
Description copied from interface:DesktopStateListenerCallback when client cannot start or connect to the Desktop.- Specified by:
onErrorin interfaceDesktopStateListener- Parameters:
reason- Error message
-
onMessage
public void onMessage(java.lang.String message)
Description copied from interface:DesktopStateListenerCallback when a message is sent to this client- Specified by:
onMessagein interfaceDesktopStateListener- Parameters:
message- Message text
-
onOutgoingMessage
public void onOutgoingMessage(java.lang.String message)
Description copied from interface:DesktopStateListenerCallback when a message is sent from this client- Specified by:
onOutgoingMessagein interfaceDesktopStateListener- Parameters:
message- Message text
-
main
public static void main(java.lang.String[] args)
-
-