You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by to...@apache.org on 2009/01/02 19:36:33 UTC
svn commit: r730809 -
/incubator/uima/sandbox/trunk/uima-as/uimaj-ep-deployeditor/src/main/java/org/apache/uima/dde/internal/page/OverviewPage.java
Author: tongfin
Date: Fri Jan 2 10:36:33 2009
New Revision: 730809
URL: http://svn.apache.org/viewvc?rev=730809&view=rev
Log:
Fixed for UIMA-1078 and UIMA-1240
Modified:
incubator/uima/sandbox/trunk/uima-as/uimaj-ep-deployeditor/src/main/java/org/apache/uima/dde/internal/page/OverviewPage.java
Modified: incubator/uima/sandbox/trunk/uima-as/uimaj-ep-deployeditor/src/main/java/org/apache/uima/dde/internal/page/OverviewPage.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-as/uimaj-ep-deployeditor/src/main/java/org/apache/uima/dde/internal/page/OverviewPage.java?rev=730809&r1=730808&r2=730809&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-as/uimaj-ep-deployeditor/src/main/java/org/apache/uima/dde/internal/page/OverviewPage.java (original)
+++ incubator/uima/sandbox/trunk/uima-as/uimaj-ep-deployeditor/src/main/java/org/apache/uima/dde/internal/page/OverviewPage.java Fri Jan 2 10:36:33 2009
@@ -146,6 +146,8 @@
private Spinner initialFsHeapSize;
private Spinner casPoolSize;
+
+ private Spinner prefetch;
private Text topDescriptorField;
@@ -194,8 +196,14 @@
// Used by AEMetaDataDetailsPage
public void setCasPoolSize (int number) {
- casPoolSize.setSelection(number); // Update control
- aeDeploymentDescription.setCasPoolSize(number); // Update descriptor
+ try {
+ if (!aeDeploymentDescription.getAeService().getAnalysisEngineDeploymentMetaData().isAsync()) {
+ casPoolSize.setSelection(number); // Update control
+ aeDeploymentDescription.setCasPoolSize(number); // Update descriptor
+ }
+ } catch (InvalidXMLException e) {
+ e.printStackTrace();
+ }
}
/** ********************************************************************** */
@@ -309,6 +317,9 @@
} else if (event.getSource() == initialFsHeapSize) {
aeDeploymentDescription.setInitialFsHeapSize(initialFsHeapSize.getSelection());
+ } else if (event.getSource() == prefetch) {
+ aeService.setPrefetch(prefetch.getSelection());
+
} else if (event.getSource() == customButton) {
// Customization of C++
if (customComposite == null) {
@@ -660,12 +671,12 @@
decorationEndPoint.setDescription("The name for the queue cannot be empty");
endPointDecoField.addFieldDecoration(decorationEndPoint, SWT.LEFT | SWT.TOP, false);
- // <casPool numberOfCASes="3"/> <!-- optional -->
-// prefetch = FormSection2.createLabelAndSpinner(toolkit, sectionClient,
-// "Number of requests that might be prefetched:", SWT.BORDER, 1,
-// Integer.MAX_VALUE, false, FormSection2.MAX_DECORATION_WIDTH);
-// prefetch.setSelection(aeService.getPrefetch());
-// prefetch.addSelectionListener(asynAggregateListener);
+ // <.. prefetch=="0" /> <!-- optional -->
+ prefetch = FormSection2.createLabelAndSpinner(toolkit, topComposite,
+ "Number of requests that might be prefetched:", SWT.BORDER, 0,
+ Integer.MAX_VALUE, false, FormSection2.MAX_DECORATION_WIDTH);
+ prefetch.setSelection(aeService.getPrefetch());
+ prefetch.addSelectionListener(selectionListener);
// <casPool numberOfCASes="3"/> <!-- optional -->
casPoolSize = FormSection2.createLabelAndSpinner(toolkit, topComposite,
@@ -1043,6 +1054,7 @@
brokerUrl.setText(aeService.getBrokerURL());
endPoint.setText(aeService.getEndPoint());
+ prefetch.setSelection(aeService.getPrefetch());
casPoolSize.setSelection(aeDeploymentDescription.getCasPoolSize());
initialFsHeapSize.setSelection(aeDeploymentDescription.getInitialFsHeapSize());