Version: 1.1.1

org.biomoby.service.dashboard
Class AntModel

java.lang.Object
  extended by org.biomoby.service.dashboard.AbstractModel
      extended by org.biomoby.service.dashboard.AntModel
All Implemented Interfaces:
DashboardProperties

public class AntModel
extends AbstractModel

A model using Ant to achieve its tasks.

The methods are simple because most of their parameters and properties are not given to them directly but through a property channel where they can be retrieved in due time. This is hopefully more flexible because the number of configurable properties may be changed significantly during the time.

Version:
$Id: AntModel.java,v 1.10 2009/02/03 09:02:28 groscurt Exp $
Author:
Martin Senger

Field Summary
static int MSG_DEBUG
           
static int MSG_INFO
           
static int MSG_QUIET
           
static int MSG_VERBOSE
           
 
Fields inherited from interface org.biomoby.service.dashboard.DashboardProperties
DP_ANT_MODEL, DP_AUTHENTICATION, DP_AXIS_ADMIN, DP_AXIS_IN_TOMCAT, DP_BGCOLOR, DP_CACHE_DIR, DP_CALL_SERVICE, DP_CBS_DEPLOY, DP_CONSOLE_FILE, DP_CONTACT, DP_CS_CLASS, DP_CS_NEWURL, DP_CS_NONE, DP_CS_REGISTRY, DP_CS_URL, DP_DATATYPE_NAME, DP_DEFAULT_REGISTRY, DP_DEPL_SERVICES, DP_DEPLOY_IN_TOMCAT, DP_DESCRIPTION, DP_DESCRIPTION_FILE, DP_DETACH_VIEW, DP_DOT_LOC, DP_ENDPOINT, DP_FL_BIOCASE, DP_FL_HIBERNATE, DP_FL_NONE, DP_FL_SOAPLAB, DP_HOSTNAME, DP_ICON, DP_IMPL_CLASS, DP_INP_ASBYTES, DP_INP_PING, DP_INP_SHOW, DP_INP_SHOWXML, DP_LOCAL_DEPLOY, DP_MOSES_FLAVOUR, DP_OUT_FILE, DP_OUT_SHOW, DP_OUT_SHOWXML, DP_OUT_VIEWER, DP_P_DESCRIPTION, DP_P_DESCRIPTION_FILE, DP_PASSWORD_AUTHENTICATION, DP_PATTERN, DP_PORT, DP_REG_DT_AUTH, DP_REG_DT_DESC, DP_REG_DT_EMAIL, DP_REG_DT_NAME, DP_REG_DT_TREE, DP_REG_INFO, DP_REG_NS_AUTH, DP_REG_NS_DESC, DP_REG_NS_EMAIL, DP_REG_NS_NAME, DP_REG_S_AUTH, DP_REG_S_CATEGORY, DP_REG_S_EMAIL, DP_REG_S_NAME, DP_REG_S_RDF_PATH, DP_REG_S_RDF_URL, DP_REG_S_TYPE, DP_REG_S_URL, DP_REG_S_XML_PATH, DP_REG_ST_AUTH, DP_REG_ST_DESC, DP_REG_ST_EMAIL, DP_REG_ST_ISA, DP_REG_ST_NAME, DP_REG_VERBOSE, DP_REGISTRY_CACHE_DIR, DP_REGISTRY_ENDPOINT, DP_REGISTRY_MODEL, DP_REGISTRY_NAMESPACE, DP_REGISTRY_SYNONYM, DP_RESULT_FILE, DP_S_SELECTED, DP_SC_IN_FILE, DP_SC_INPUT_FILE, DP_SC_SERVICE, DP_SC_SERVICE_NAME, DP_SC_SERVICES, DP_SEL_AUTHORITIES, DP_SEL_SERVICES, DP_SERVICE_NAME, DP_STATUS_MSG, DP_TITLE, DP_TITLE_ICON, DP_TOMCAT_HOME, DP_USE_AUTHORITATIVE, DP_USE_CACHE, DP_USE_DOT, DP_USE_DT_COMP, DP_USE_DT_DOC, DP_USE_DT_GEN, DP_USE_DT_JAR, DP_USE_S_COMP, DP_USE_S_DOC, DP_USE_S_GEN, DP_USE_S_JAR, DP_USE_SIGNATURE, DP_USE_SIMULATE, DP_USER_AUTHENTICATION, DP_USER_JARS, DP_WANTED_REGISTRIES, DP_WSDD_TEMPL
 
Constructor Summary
AntModel()
          Default constructor.
AntModel(RegistryModel registryModel)
          A usual constructor.
 
Method Summary
static File createFileName(String[] parts)
          Utility to create a filename from pieces, independently on a platform-specific file separator.
 void mosesAll()
          Deal both with Moses-generated datatypes and skeletons - in an appropriate order.
 void mosesCleanDatatypes()
          Remove generated datatypes.
 void mosesCleanSkeletons()
          Remove generated skeletons
 void mosesDatatypes()
          Deal with Moses-generated datatypes.
 void mosesDeploy()
          Deploy selected services to a server (Tomcat/Axis).
 void mosesSkeletons()
          Deal with Moses-generated skeletons.
 void mosesUndeploy()
          Undeploy selected services to a server (Tomcat/Axis).
 void setErrorStream(OutputStream os)
          Set output stream where running Ant will be reporting errors.
 void setMsgOutputLevel(int level)
           
 void setOutputStream(OutputStream os)
          Set output stream where running Ant will be reporting.
 
Methods inherited from class org.biomoby.service.dashboard.AbstractModel
setPropertyChannel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_QUIET

public static final int MSG_QUIET
See Also:
Constant Field Values

MSG_INFO

public static final int MSG_INFO
See Also:
Constant Field Values

MSG_VERBOSE

public static final int MSG_VERBOSE
See Also:
Constant Field Values

MSG_DEBUG

public static final int MSG_DEBUG
See Also:
Constant Field Values
Constructor Detail

AntModel

public AntModel()
Default constructor.


AntModel

public AntModel(RegistryModel registryModel)
A usual constructor. The registry model connect this model with a Biomoby registry and with a local cache of Biomoby entities.

Method Detail

setOutputStream

public void setOutputStream(OutputStream os)
Set output stream where running Ant will be reporting.


setErrorStream

public void setErrorStream(OutputStream os)
Set output stream where running Ant will be reporting errors.


setMsgOutputLevel

public void setMsgOutputLevel(int level)

createFileName

public static File createFileName(String[] parts)
Utility to create a filename from pieces, independently on a platform-specific file separator.


mosesDatatypes

public void mosesDatatypes()
                    throws MobyException
Deal with Moses-generated datatypes. It may include generating, compiling, documeting and jarring them.

Throws:
MobyException

mosesCleanDatatypes

public void mosesCleanDatatypes()
                         throws MobyException
Remove generated datatypes.

Throws:
MobyException

mosesSkeletons

public void mosesSkeletons()
                    throws MobyException
Deal with Moses-generated skeletons. It may include generating, compiling, documeting and jarring them.

Throws:
MobyException

mosesDeploy

public void mosesDeploy()
                 throws MobyException
Deploy selected services to a server (Tomcat/Axis).

Throws:
MobyException

mosesUndeploy

public void mosesUndeploy()
                   throws MobyException
Undeploy selected services to a server (Tomcat/Axis).

Throws:
MobyException

mosesCleanSkeletons

public void mosesCleanSkeletons()
                         throws MobyException
Remove generated skeletons

Throws:
MobyException

mosesAll

public void mosesAll()
              throws MobyException
Deal both with Moses-generated datatypes and skeletons - in an appropriate order.

Throws:
MobyException

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010