org.fusesource.patch.client
Class Main

java.lang.Object
  extended by org.fusesource.patch.client.Main

public class Main
extends java.lang.Object


Nested Class Summary
static class Main.Patch
           
 
Field Summary
static java.lang.String ARTIFACTS
           
static java.lang.String CACHE
           
static java.lang.String DEFAULT_ARTIFACTS
           
static java.lang.String DEFAULT_CACHE
           
static java.lang.String DEFAULT_REPOSITORIES
           
static java.lang.String REPOSITORIES
           
 
Constructor Summary
Main(java.util.List<java.lang.String> repos, java.util.List<java.lang.String> artifacts, java.io.File cache)
           
 
Method Summary
 void audit(java.lang.String message)
           
 void destroy()
           
 void downloadPatches(java.util.List<Main.Patch> locations, java.io.File directory)
           
 void downloadPatchMetadata(java.util.List<Main.Patch> locations, java.io.File directory)
           
 java.util.List<Main.Patch> getPossiblePatches()
           
protected  java.lang.String getVersion()
           
protected  void install(java.util.List<Main.Patch> patches)
           
static void main(java.lang.String[] args)
           
 void run()
           
static java.lang.String wildcardToRegex(java.lang.String wildcard)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPOSITORIES

public static final java.lang.String REPOSITORIES
See Also:
Constant Field Values

ARTIFACTS

public static final java.lang.String ARTIFACTS
See Also:
Constant Field Values

CACHE

public static final java.lang.String CACHE
See Also:
Constant Field Values

DEFAULT_REPOSITORIES

public static final java.lang.String DEFAULT_REPOSITORIES
See Also:
Constant Field Values

DEFAULT_ARTIFACTS

public static final java.lang.String DEFAULT_ARTIFACTS
See Also:
Constant Field Values

DEFAULT_CACHE

public static final java.lang.String DEFAULT_CACHE
See Also:
Constant Field Values
Constructor Detail

Main

public Main(java.util.List<java.lang.String> repos,
            java.util.List<java.lang.String> artifacts,
            java.io.File cache)
     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

run

public void run()
         throws java.lang.Exception
Throws:
java.lang.Exception

getVersion

protected java.lang.String getVersion()

install

protected void install(java.util.List<Main.Patch> patches)
                throws java.lang.Exception
Throws:
java.lang.Exception

audit

public void audit(java.lang.String message)

wildcardToRegex

public static java.lang.String wildcardToRegex(java.lang.String wildcard)

downloadPatchMetadata

public void downloadPatchMetadata(java.util.List<Main.Patch> locations,
                                  java.io.File directory)
                           throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

downloadPatches

public void downloadPatches(java.util.List<Main.Patch> locations,
                            java.io.File directory)
                     throws java.lang.InterruptedException,
                            java.net.MalformedURLException
Throws:
java.lang.InterruptedException
java.net.MalformedURLException

getPossiblePatches

public java.util.List<Main.Patch> getPossiblePatches()
                                              throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

destroy

public void destroy()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2014 Red Hat. All Rights Reserved.