hudson.os.windows
Class WindowsRemoteFileSystem

java.lang.Object
  extended by hudson.os.windows.WindowsRemoteFileSystem
All Implemented Interfaces:
JDKInstaller.FileSystem

public class WindowsRemoteFileSystem
extends Object
implements JDKInstaller.FileSystem

JDKInstaller.FileSystem implementation for remote Windows system.

Author:
Kohsuke Kawaguchi

Constructor Summary
WindowsRemoteFileSystem(String hostName, jcifs.smb.NtlmPasswordAuthentication auth)
           
 
Method Summary
 void chmod(String file, int mode)
           
 void delete(String file)
           
 List<String> listSubDirectories(String dir)
          List sub-directories of the given directory and just return the file name portion.
 void mkdirs(String path)
           
 void pullUp(String from, String to)
           
 InputStream read(String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsRemoteFileSystem

public WindowsRemoteFileSystem(String hostName,
                               jcifs.smb.NtlmPasswordAuthentication auth)
Method Detail

delete

public void delete(String file)
            throws IOException,
                   InterruptedException
Specified by:
delete in interface JDKInstaller.FileSystem
Throws:
IOException
InterruptedException

chmod

public void chmod(String file,
                  int mode)
           throws IOException,
                  InterruptedException
Specified by:
chmod in interface JDKInstaller.FileSystem
Throws:
IOException
InterruptedException

read

public InputStream read(String file)
                 throws IOException
Specified by:
read in interface JDKInstaller.FileSystem
Throws:
IOException

listSubDirectories

public List<String> listSubDirectories(String dir)
                                throws IOException,
                                       InterruptedException
Description copied from interface: JDKInstaller.FileSystem
List sub-directories of the given directory and just return the file name portion.

Specified by:
listSubDirectories in interface JDKInstaller.FileSystem
Throws:
IOException
InterruptedException

pullUp

public void pullUp(String from,
                   String to)
            throws IOException,
                   InterruptedException
Specified by:
pullUp in interface JDKInstaller.FileSystem
Throws:
IOException
InterruptedException

mkdirs

public void mkdirs(String path)
            throws IOException
Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.