org.ow2.jonas.ant.jonasbase
Class Carol

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.ant.BootstrapTask
              extended by org.ow2.jonas.ant.jonasbase.JTask
                  extended by org.ow2.jonas.ant.jonasbase.Carol
All Implemented Interfaces:
BaseTaskItf

public class Carol
extends JTask
implements BaseTaskItf

Allow to configure the properties in carol.properties file. carol.protocols rmi.local.registry rmi.local.call carol.start.cmi cmi.server.provider.urls

Author:
Florent Benoit, coqp

Field Summary
static String SEPARATOR
          Property separators (4 spaces).
static String SEQ_PROTOCOLS_TO_PROVIDER_URLS
          Sequence of associations between a protocol and a list of provider URLs.
static String START_CMI_PROPERTY
          Start CMI.
 
Fields inherited from class org.ow2.jonas.ant.jonasbase.JTask
SEPARATORS
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Carol()
          Default constructor.
 
Method Summary
 void execute()
          Execute this task.
 void setClusterViewProviderUrls(String seqProtocol2ProviderURLs)
          Set the sequence of protocols and provider urls.
 void setCmiStarted(boolean enabled)
          Enable or disable the use of CMI.
 void setDefaultPort(String portNumber)
          Set the port for all protocols.
 void setHost(String host)
          Set the host.
 void setIiopPort(String portNumber)
          Set the connection url for IIOP.
 void setIrmiPort(String portNumber)
          Set the connection url for IRMI.
 void setJrmpOptimization(boolean enabled)
          Enable or disable optimization.
 void setJrmpPort(String portNumber)
          Set the connection url for JRMP.
 void setLocalRegistry(boolean enabled)
          Enable or disable local registry.
 void setProtocols(String protocols)
          Set the initial protocols when JOnAS start.
 
Methods inherited from class org.ow2.jonas.ant.jonasbase.JTask
changeValueForKey, changeValueForKey, getConfigurationFile, getDestDir, getLogInfo, setConfigurationFile, setDestDir, setLogInfo, writePropsToFile
 
Methods inherited from class org.ow2.jonas.ant.BootstrapTask
createClasspath, getBootstraptask, getBootstraptask, getDomainName, getJonasRoot, getMaven2Repository, getServerName, getTaskName, setCatalinaHome, setClasspath, setDomainName, setJettyHome, setJonasBase, setJonasRoot, setJvmopts, setServerName, setTaskName
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.jonas.ant.jonasbase.BaseTaskItf
getLogInfo, setConfigurationFile, setDestDir, setJonasRoot, setLogInfo
 

Field Detail

SEPARATOR

public static final String SEPARATOR
Property separators (4 spaces).

See Also:
Constant Field Values

START_CMI_PROPERTY

public static final String START_CMI_PROPERTY
Start CMI.

See Also:
Constant Field Values

SEQ_PROTOCOLS_TO_PROVIDER_URLS

public static final String SEQ_PROTOCOLS_TO_PROVIDER_URLS
Sequence of associations between a protocol and a list of provider URLs.

See Also:
Constant Field Values
Constructor Detail

Carol

public Carol()
Default constructor.

Method Detail

setJrmpPort

public void setJrmpPort(String portNumber)
Set the connection url for JRMP.

Parameters:
portNumber - port for JRMP

setIiopPort

public void setIiopPort(String portNumber)
Set the connection url for IIOP.

Parameters:
portNumber - port for IIOP

setIrmiPort

public void setIrmiPort(String portNumber)
Set the connection url for IRMI.

Parameters:
portNumber - port for IRMI

setDefaultPort

public void setDefaultPort(String portNumber)
Set the port for all protocols.

Parameters:
portNumber - port for all protocols

setProtocols

public void setProtocols(String protocols)
Set the initial protocols when JOnAS start.

Parameters:
protocols - comma separated list of protocols

setHost

public void setHost(String host)
Set the host.

Parameters:
host - hostname

setJrmpOptimization

public void setJrmpOptimization(boolean enabled)
Enable or disable optimization.

Parameters:
enabled - (true or false) the default value is currently false in carol.properties

setLocalRegistry

public void setLocalRegistry(boolean enabled)
Enable or disable local registry.

Parameters:
enabled - (true or false) the default value is currently true in carol.properties

setCmiStarted

public void setCmiStarted(boolean enabled)
Enable or disable the use of CMI.

Parameters:
enabled - (true or false) the default value is currently false in carol.properties

setClusterViewProviderUrls

public void setClusterViewProviderUrls(String seqProtocol2ProviderURLs)
Set the sequence of protocols and provider urls.

Parameters:
seqProtocol2ProviderURLs - a sequence of protocols and provider urls

execute

public void execute()
Execute this task.

Specified by:
execute in interface BaseTaskItf
Overrides:
execute in class org.apache.tools.ant.Task


Copyright © 2010 OW2 Consortium. All Rights Reserved.