org.dawb.workbench.jmx
Class RemoteWorkbenchManager

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.dawb.workbench.jmx.RemoteWorkbenchManager
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration

public class RemoteWorkbenchManager
extends javax.management.StandardMBean

Service run by the workflow to allow the RCP workbench to interfact with the service.

Author:
gerring

Constructor Summary
RemoteWorkbenchManager()
           
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 java.util.Map<java.lang.String,java.lang.String> createUserInput(java.lang.String partName, boolean isDialog, java.lang.String configurationXML, java.util.Map<java.lang.String,java.lang.String> scalarValues)
          Call to ask the user to check and edit editScalarValues.
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
 void logStatus(java.lang.String pluginId, java.lang.String message, java.lang.Throwable throwable)
           
 boolean monitorDirectory(java.lang.String fullPath)
          Call with full file path on visible disk.
 boolean openFile(java.lang.String fullPath)
          Call with full file path on visible disk.
 boolean refresh(java.lang.String projectName, java.lang.String resourcePath)
           
 void removeNotificationListener(javax.management.NotificationListener listener)
           
 boolean setActorSelected(java.lang.String resourcePath, java.lang.String actorName, boolean isSelected)
          This method allows certain actors to be selected if the editor for the corresponding file is open.
 boolean showMessage(java.lang.String title, java.lang.String message, int type)
           
 
Methods inherited from class javax.management.StandardMBean
getAttribute, getAttributes, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteWorkbenchManager

public RemoteWorkbenchManager()
                       throws javax.management.NotCompliantMBeanException,
                              org.eclipse.core.runtime.CoreException
Throws:
javax.management.NotCompliantMBeanException
org.eclipse.core.runtime.CoreException
Method Detail

openFile

public boolean openFile(java.lang.String fullPath)
Call with full file path on visible disk.

Returns:

monitorDirectory

public boolean monitorDirectory(java.lang.String fullPath)
Call with full file path on visible disk.

Returns:

refresh

public boolean refresh(java.lang.String projectName,
                       java.lang.String resourcePath)
Returns:

showMessage

public boolean showMessage(java.lang.String title,
                           java.lang.String message,
                           int type)
Returns:

logStatus

public void logStatus(java.lang.String pluginId,
                      java.lang.String message,
                      java.lang.Throwable throwable)

createUserInput

public java.util.Map<java.lang.String,java.lang.String> createUserInput(java.lang.String partName,
                                                                        boolean isDialog,
                                                                        java.lang.String configurationXML,
                                                                        java.util.Map<java.lang.String,java.lang.String> scalarValues)
                                                                 throws java.lang.Exception
Description copied from interface: RemoteWorkbench
Call to ask the user to check and edit editScalarValues. The method will **block** until they have pressed the confirm button in the UI.

Parameters:
partName - - part name input should appear with
isDialog - - if true modal dialog used, otherwise editor part used.
scalarValues - - can be null (But both cannot be null!)
Returns:
Throws:
java.lang.Exception

setActorSelected

public boolean setActorSelected(java.lang.String resourcePath,
                                java.lang.String actorName,
                                boolean isSelected)
                         throws java.lang.Exception
Description copied from interface: RemoteWorkbench
This method allows certain actors to be selected if the editor for the corresponding file is open. Once the actor has finished executing, it should call again to unselect.

Returns:
true if the actor is found, false otherwise
Throws:
java.lang.Exception

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
                             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws javax.management.ListenerNotFoundException
Throws:
javax.management.ListenerNotFoundException