站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

Deployer - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.framework.deployment
Class Deployer

java.lang.Object
  extended byorg.jboss.portal.test.framework.deployment.Deployer

public class Deployer
extends java.lang.Object

Client side view of deployment.

Version:
$Revision: 5498 $
Author:
Julien Viet

Field Summary
private  java.util.Map deployments
          .
private  TestAgentFactory testAgentFactory
          .
 
Constructor Summary
Deployer()
           
 
Method Summary
 void create()
           
 void deploy(java.lang.String url, java.util.Collection nodes)
           
 void deploy(java.lang.String url, Node node)
           
 void deploy(java.net.URL url, java.util.Collection nodes)
           
 void deploy(java.net.URL url, Node node)
           
 void destroy()
           
private  java.net.URL getArchiveURL(java.lang.String archive)
          Try to discover the URL for the deployment archive based on the archive name and "standard" archive locations (relative to the where the test is executed):

. output/libs/ test/outputs/libs/ output/lib/ test/output/lib/ ../output/lib/ ../test/output/lib/

 TestAgentFactory getTestAgentFactory()
           
 void setTestAgentFactory(TestAgentFactory testAgentFactory)
           
 void start()
           
 void stop()
           
 void undeploy(java.lang.String url)
           
 void undeploy(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deployments

private java.util.Map deployments
.


testAgentFactory

private TestAgentFactory testAgentFactory
.

Constructor Detail

Deployer

public Deployer()
Method Detail

getTestAgentFactory

public TestAgentFactory getTestAgentFactory()

setTestAgentFactory

public void setTestAgentFactory(TestAgentFactory testAgentFactory)

create

public void create()

start

public void start()

stop

public void stop()

destroy

public void destroy()

deploy

public void deploy(java.lang.String url,
                   Node node)
            throws java.lang.Exception
Throws:
java.lang.Exception

deploy

public void deploy(java.net.URL url,
                   Node node)
            throws java.lang.Exception
Throws:
java.lang.Exception

deploy

public void deploy(java.net.URL url,
                   java.util.Collection nodes)
            throws java.lang.Exception
Throws:
java.lang.Exception

undeploy

public void undeploy(java.net.URL url)

deploy

public void deploy(java.lang.String url,
                   java.util.Collection nodes)
            throws java.lang.Exception
Throws:
java.lang.Exception

undeploy

public void undeploy(java.lang.String url)
              throws java.lang.Exception
Throws:
java.lang.Exception

getArchiveURL

private java.net.URL getArchiveURL(java.lang.String archive)
Try to discover the URL for the deployment archive based on the archive name and "standard" archive locations (relative to the where the test is executed):

  • .
  • output/libs/
  • test/outputs/libs/
  • output/lib/
  • test/output/lib/
  • ../output/lib/
  • ../test/output/lib/

Parameters:
archive - the name of the archive to deploy
Returns:
a URL pointing to the archive to be deployed
Throws:
java.lang.IllegalArgumentException - if no archive with the given name can be found to be deployed