org.netbeans.modules.autoupdate.services 1.16.1

org.netbeans.spi.autoupdate
Class AutoupdateClusterCreator

java.lang.Object
  extended by org.netbeans.spi.autoupdate.AutoupdateClusterCreator

public abstract class AutoupdateClusterCreator
extends Object

Class that is supposed to be implemented by application providers that can control launcher in order to modify the list of provided clusters.

Since:
1.2

Constructor Summary
AutoupdateClusterCreator()
           
 
Method Summary
protected abstract  File findCluster(String clusterName)
          Finds the right cluster directory for given cluster name.
protected abstract  File[] registerCluster(String clusterName, File cluster)
          Changes the launcher to know about the new cluster and use it next time the system starts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoupdateClusterCreator

public AutoupdateClusterCreator()
Method Detail

findCluster

protected abstract File findCluster(String clusterName)
Finds the right cluster directory for given cluster name. This method can return null if no such cluster name is known or understandable, otherwise it returns a file object representing not existing directory that will be created later to host hold the content of the cluster.

Parameters:
clusterName - the name of the cluster the autoupdate client is searching for
Returns:
null or File object of the cluster to be created

registerCluster

protected abstract File[] registerCluster(String clusterName,
                                          File cluster)
                                   throws IOException
Changes the launcher to know about the new cluster and use it next time the system starts.

Parameters:
clusterName - the name of the cluster
cluster - file previously returned by findCluster
Returns:
the list of current cluster directories, including the newly added one
Throws:
IOException - if the registration fails

org.netbeans.modules.autoupdate.services 1.16.1

Built on December 7 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.