• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java SSHMeta类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.pentaho.di.trans.steps.ssh.SSHMeta的典型用法代码示例。如果您正苦于以下问题:Java SSHMeta类的具体用法?Java SSHMeta怎么用?Java SSHMeta使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

SSHMeta类属于org.pentaho.di.trans.steps.ssh包,在下文中一共展示了SSHMeta类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getInfo

点赞 3

import org.pentaho.di.trans.steps.ssh.SSHMeta; //导入依赖的package包/类
private void getInfo(SSHMeta in) throws KettleException
{
	stepname = wStepname.getText(); // return value
	
	in.setDynamicCommand(wdynamicCommand.getSelection());
	in.setCommand(wCommand.getText());
	in.setcommandfieldname(wCommandField.getText());
       in.setServerName(wServerName.getText());
       in.setPort(wPort.getText());
       in.setuserName(wUserName.getText());
       in.setpassword(wPassword.getText());
       in.usePrivateKey(wUseKey.getSelection());
       in.setKeyFileName(wPrivateKey.getText());
       in.setPassphrase(wPassphrase.getText());
       in.setstdOutFieldName(wResultOutFieldName.getText());
       in.setStdErrFieldName(wResultErrFieldName.getText());
       in.setTimeOut(wTimeOut.getText());
       in.setProxyHost(wProxyHost.getText());
       in.setProxyPort(wProxyPort.getText());
       in.setProxyUsername(wProxyUsername.getText());
       in.setProxyPassword(wProxyPassword.getText());
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:23,
代码来源:SSHDialog.java

示例2: getInfo

点赞 3

import org.pentaho.di.trans.steps.ssh.SSHMeta; //导入依赖的package包/类
private void getInfo( SSHMeta in ) throws KettleException {
  stepname = wStepname.getText(); // return value

  in.setDynamicCommand( wdynamicCommand.getSelection() );
  in.setCommand( wCommand.getText() );
  in.setcommandfieldname( wCommandField.getText() );
  in.setServerName( wServerName.getText() );
  in.setPort( wPort.getText() );
  in.setuserName( wUserName.getText() );
  in.setpassword( wPassword.getText() );
  in.usePrivateKey( wUseKey.getSelection() );
  in.setKeyFileName( wPrivateKey.getText() );
  in.setPassphrase( wPassphrase.getText() );
  in.setstdOutFieldName( wResultOutFieldName.getText() );
  in.setStdErrFieldName( wResultErrFieldName.getText() );
  in.setTimeOut( wTimeOut.getText() );
  in.setProxyHost( wProxyHost.getText() );
  in.setProxyPort( wProxyPort.getText() );
  in.setProxyUsername( wProxyUsername.getText() );
  in.setProxyPassword( wProxyPassword.getText() );
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:22,
代码来源:SSHDialog.java

示例3: SSHDialog

点赞 2

import org.pentaho.di.trans.steps.ssh.SSHMeta; //导入依赖的package包/类
public SSHDialog(Shell parent, Object in, TransMeta transMeta, String sname)
{
	super(parent, (BaseStepMeta)in, transMeta, sname);
	input=(SSHMeta)in;
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:6,
代码来源:SSHDialog.java

示例4: preview

点赞 2

import org.pentaho.di.trans.steps.ssh.SSHMeta; //导入依赖的package包/类
/**
 * Preview the data generated by this step.
 * This generates a transformation using this step & a dummy and previews it.
 *
 */
private void preview()
{    	
	  try
      {
          // Create the Access input step
          SSHMeta oneMeta = new SSHMeta();
          getInfo(oneMeta);
  		
          TransMeta previewMeta = TransPreviewFactory.generatePreviewTransformation(transMeta, oneMeta, wStepname.getText());
          EnterNumberDialog numberDialog = new EnterNumberDialog(shell, 1, 
        		  BaseMessages.getString(PKG, "SSHDialog.NumberRows.DialogTitle"), 
        		  BaseMessages.getString(PKG, "SSHDialog.NumberRows.DialogMessage"));
          
          int previewSize = numberDialog.open();
          if (previewSize>0)
          {
              TransPreviewProgressDialog progressDialog = new TransPreviewProgressDialog(shell, previewMeta, new String[] { wStepname.getText() }, new int[] { previewSize } );
              progressDialog.open();
              
              if (!progressDialog.isCancelled())
              {
                  Trans trans = progressDialog.getTrans();
                  String loggingText = progressDialog.getLoggingText();
                  
                  if (trans.getResult()!=null && trans.getResult().getNrErrors()>0)
                  {
                  	EnterTextDialog etd = new EnterTextDialog(shell, 
                  			BaseMessages.getString(PKG, "System.Dialog.PreviewError.Title"),  
                  			BaseMessages.getString(PKG, "System.Dialog.PreviewError.Message"), loggingText, true );
                  	etd.setReadOnly();
                  	etd.open();
                  }
                  PreviewRowsDialog prd = new PreviewRowsDialog(shell, transMeta, SWT.NONE, wStepname.getText(),
					progressDialog.getPreviewRowsMeta(wStepname.getText()), progressDialog
							.getPreviewRows(wStepname.getText()), loggingText);
			 prd.open();
                  
              }
          }
      }
      catch(KettleException e)
      {
          new ErrorDialog(shell, "Error", "Error while previewing data", e);
     }
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:51,
代码来源:SSHDialog.java

示例5: SSHDialog

点赞 2

import org.pentaho.di.trans.steps.ssh.SSHMeta; //导入依赖的package包/类
public SSHDialog( Shell parent, Object in, TransMeta transMeta, String sname ) {
  super( parent, (BaseStepMeta) in, transMeta, sname );
  input = (SSHMeta) in;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:5,
代码来源:SSHDialog.java

示例6: preview

点赞 2

import org.pentaho.di.trans.steps.ssh.SSHMeta; //导入依赖的package包/类
/**
 * Preview the data generated by this step. This generates a transformation using this step & a dummy and previews it.
 *
 */
private void preview() {
  try {
    // Create the Access input step
    SSHMeta oneMeta = new SSHMeta();
    getInfo( oneMeta );

    TransMeta previewMeta =
      TransPreviewFactory.generatePreviewTransformation( transMeta, oneMeta, wStepname.getText() );
    EnterNumberDialog numberDialog =
      new EnterNumberDialog(
        shell, 1, BaseMessages.getString( PKG, "SSHDialog.NumberRows.DialogTitle" ), BaseMessages.getString(
          PKG, "SSHDialog.NumberRows.DialogMessage" ) );

    int previewSize = numberDialog.open();
    if ( previewSize > 0 ) {
      TransPreviewProgressDialog progressDialog =
        new TransPreviewProgressDialog(
          shell, previewMeta, new String[] { wStepname.getText() }, new int[] { previewSize } );
      progressDialog.open();

      if ( !progressDialog.isCancelled() ) {
        Trans trans = progressDialog.getTrans();
        String loggingText = progressDialog.getLoggingText();

        if ( trans.getResult() != null && trans.getResult().getNrErrors() > 0 ) {
          EnterTextDialog etd =
            new EnterTextDialog(
              shell, BaseMessages.getString( PKG, "System.Dialog.PreviewError.Title" ), BaseMessages
                .getString( PKG, "System.Dialog.PreviewError.Message" ), loggingText, true );
          etd.setReadOnly();
          etd.open();
        }
        PreviewRowsDialog prd =
          new PreviewRowsDialog(
            shell, transMeta, SWT.NONE, wStepname.getText(), progressDialog.getPreviewRowsMeta( wStepname
              .getText() ), progressDialog.getPreviewRows( wStepname.getText() ), loggingText );
        prd.open();

      }
    }
  } catch ( KettleException e ) {
    new ErrorDialog( shell, "Error", "Error while previewing data", e );
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:49,
代码来源:SSHDialog.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)