|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.jboss.dtf.testframework.productrepository.ProductRepository
public class ProductRepository
| Field Summary | |
|---|---|
static java.lang.String |
PRODUCT_REPOSITORY_NAMESERVICE_NAME
|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
ProductRepository(NameServiceInterface ns)
|
|
| Method Summary | |
|---|---|
void |
fileAdded(java.io.File f)
|
void |
fileChanged(java.io.File f)
|
void |
fileDeleted(java.io.File f)
|
long |
getCurrentVersion(java.lang.String name)
Retrieves the current version number for the given product. |
ProductConfiguration |
getProductConfiguration(java.lang.String productName)
Retrieve the product configuration for the given product name. |
java.net.URL |
getProductInstaller(java.lang.String name)
Retrieves the URL to the ANT script for installing the product represented by the given unique name. |
java.lang.String[] |
getProductNames()
List the products in the repository. |
boolean |
isCurrentVersion(java.lang.String name,
long versionId)
Used to check that the version of a product is the most recent version. |
static void |
main(java.lang.String[] args)
|
void |
remoteProductConfiguration(java.lang.String productName)
|
void |
setProductConfiguration(java.lang.String productName,
ProductConfiguration productConfiguration)
Add or update a product configuration in the product repository. |
long |
setProductInstaller(java.lang.String name,
java.net.URL antURL)
Sets the install procedure for a given product in the repository. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PRODUCT_REPOSITORY_NAMESERVICE_NAME
| Constructor Detail |
|---|
public ProductRepository(NameServiceInterface ns)
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public void fileAdded(java.io.File f)
fileAdded in interface DirectoryChangeListenerpublic void fileChanged(java.io.File f)
fileChanged in interface DirectoryChangeListenerpublic void fileDeleted(java.io.File f)
fileDeleted in interface DirectoryChangeListener
public ProductConfiguration getProductConfiguration(java.lang.String productName)
throws java.rmi.RemoteException
getProductConfiguration in interface ProductRepositoryInterfaceproductName - The name of the product to retrieve.
java.rmi.RemoteException
public void remoteProductConfiguration(java.lang.String productName)
throws java.rmi.RemoteException
remoteProductConfiguration in interface ProductRepositoryInterfacejava.rmi.RemoteException
public void setProductConfiguration(java.lang.String productName,
ProductConfiguration productConfiguration)
throws java.rmi.RemoteException
ProductRepositoryInterface
setProductConfiguration in interface ProductRepositoryInterfacejava.rmi.RemoteException
public java.lang.String[] getProductNames()
throws java.rmi.RemoteException
getProductNames in interface ProductRepositoryInterfacejava.rmi.RemoteException
public long setProductInstaller(java.lang.String name,
java.net.URL antURL)
throws java.rmi.RemoteException
setProductInstaller in interface ProductRepositoryInterfacename - The unique name of the product the installer is for.antURL - The URL to the ANT script used to install the product.
java.rmi.RemoteException
public java.net.URL getProductInstaller(java.lang.String name)
throws java.rmi.RemoteException
getProductInstaller in interface ProductRepositoryInterfacename - The unique name of the product.
java.rmi.RemoteException
public boolean isCurrentVersion(java.lang.String name,
long versionId)
throws java.rmi.RemoteException
isCurrentVersion in interface ProductRepositoryInterfacename - The name of the product to check the version against.versionId - The versionId to check against.
java.rmi.RemoteException
public long getCurrentVersion(java.lang.String name)
throws java.rmi.RemoteException
getCurrentVersion in interface ProductRepositoryInterfacename - The unique name of the product.
java.rmi.RemoteExceptionpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||