@Override
 public void clearGui() {
   super.clearGui();
   nameNodeTextField.setText("");
   inputFilePathTextField.setText("");
   outputFilePathTextField.setText("");
 }
 @Override
 public void configure(TestElement element) {
   super.configure(element);
   if (element instanceof HdfsOperations) {
     HdfsOperations operations = (HdfsOperations) element;
     nameNodeTextField.setText(operations.getNameNode());
     inputFilePathTextField.setText(operations.getInputFilePath());
     outputFilePathTextField.setText(operations.getOutputFilePath());
   }
 }
 @Override
 public void modifyTestElement(TestElement element) {
   super.configureTestElement(element);
   if (element instanceof HdfsOperations) {
     HdfsOperations operations = (HdfsOperations) element;
     operations.setNameNode(nameNodeTextField.getText());
     operations.setInputFilePath(inputFilePathTextField.getText());
     operations.setOutputFilePath(outputFilePathTextField.getText());
   }
 }
Exemplo n.º 4
0
 @Override
 public void clearGui() {
   super.clearGui();
   urlField.setText(""); // $NON-NLS-1$
   mqttDestination.setText(""); // $NON-NLS-1$
   clientId.setText(""); // $NON-NLS-1$
   mqttUser.setText(""); // $NON-NLS-1$
   mqttPwd.setText(""); // $NON-NLS-1$
   samplerTimeout.setText(""); // $NON-NLS-1$
   iterations.setText("1"); // $NON-NLS-1$
   separator.setText(""); // $NON-NLS-1$
   connectionTimeout.setText("5000"); // $NON-NLS-1$
   useAuth.setSelected(false);
   mqttUser.setEnabled(false);
   mqttPwd.setEnabled(false);
   stopBetweenSamples.setSelected(false);
 }
Exemplo n.º 5
0
 /** the implementation loads the URL and the soap action for the request. */
 @Override
 public void configure(TestElement el) {
   super.configure(el);
   SubscriberSampler sampler = (SubscriberSampler) el;
   urlField.setText(sampler.getProviderUrl());
   mqttDestination.setText(sampler.getDestination());
   clientId.setText(sampler.getClientId());
   mqttUser.setText(sampler.getUsername());
   mqttPwd.setText(sampler.getPassword());
   useAuth.setSelected(sampler.isUseAuth());
   mqttUser.setEnabled(useAuth.isSelected());
   mqttPwd.setEnabled(useAuth.isSelected());
   samplerTimeout.setText(sampler.getSamplerTimeout());
   iterations.setText(sampler.getIterations());
   connectionTimeout.setText("" + sampler.getConnectionTimeout());
   cleanSession.setSelected(Boolean.parseBoolean(sampler.getCLEANSESSION()));
   // typeQoSValue.setText(sampler.getQuality());
 }