org.apache.geronimo.plugin.packaging
Class AbstractDistributor

java.lang.Object
  extended byorg.apache.geronimo.plugin.packaging.AbstractDistributor

public abstract class AbstractDistributor
extends java.lang.Object

Base class for Distributors defining common attributes.

Version:
$Rev: 396619 $ $Date: 2006-04-24 19:44:00 +0200 (Mon, 24 Apr 2006) $

Field Summary
protected  javax.management.ObjectName storeName
           
 
Constructor Summary
AbstractDistributor()
           
 
Method Summary
abstract  void execute()
           
 java.io.File getArtifact()
           
 java.lang.String getPassword()
           
 java.lang.String getStoreName()
           
 java.lang.String getUrl()
           
 java.lang.String getUser()
           
 void setArtifact(java.io.File artifact)
          Set the artifact to distribute.
 void setPassword(java.lang.String password)
          Set the password used to connect to the server.
 void setStoreName(java.lang.String storeName)
          Set the name of the ConfigurationStore in the server that the artifact should be installed in.
 void setUrl(java.lang.String url)
          Set the URL of the server.
 void setUser(java.lang.String user)
          Set the username used to connect to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

storeName

protected javax.management.ObjectName storeName
Constructor Detail

AbstractDistributor

public AbstractDistributor()
Method Detail

getUser

public java.lang.String getUser()

setUser

public void setUser(java.lang.String user)
Set the username used to connect to the server.

Parameters:
user - the username

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)
Set the password used to connect to the server.

Parameters:
password - the password

getUrl

public java.lang.String getUrl()

setUrl

public void setUrl(java.lang.String url)
Set the URL of the server.

Parameters:
url - the URL of the server

getArtifact

public java.io.File getArtifact()

setArtifact

public void setArtifact(java.io.File artifact)
Set the artifact to distribute.

Parameters:
artifact - the artifact to distribute

getStoreName

public java.lang.String getStoreName()

setStoreName

public void setStoreName(java.lang.String storeName)
Set the name of the ConfigurationStore in the server that the artifact should be installed in. This allows for server's that have multiple stores, although typical installation may only have one.

Parameters:
storeName - the name of the ConfigurationStore to distribute to

execute

public abstract void execute()
                      throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © -2007 . All Rights Reserved.