org.sapia.regis.ant
Class RegistryTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.sapia.regis.ant.RegistryTask

public class RegistryTask
extends org.apache.tools.ant.Task

This Ant task is used to update a configuration into a remote registry. It must be given the host/port of that registry, or the JNDI name of that registry as well as the URL of the Ubik JNDI server to which it is bound.

Author:
yduchesne
See Also:
RegistryServer

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
RegistryTask()
           
 
Method Summary
 void execute()
           
 void setConfig(File file)
           
 void setHost(String host)
           
 void setJndiName(String jndiName)
           
 void setNodePath(String path)
           
 void setPassword(String password)
           
 void setPort(int port)
           
 void setUrl(String url)
           
 void setUsername(String username)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, 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
 

Constructor Detail

RegistryTask

public RegistryTask()
Method Detail

setHost

public void setHost(String host)
Parameters:
host - the registry host to which to connect

setPort

public void setPort(int port)
Parameters:
port - the port of the registry which to connect

setUrl

public void setUrl(String url)
Parameters:
url - the URL of the Ubik JNDI server from which to lookup the registry to update (example: ubik://localhost:1099)

setJndiName

public void setJndiName(String jndiName)

setConfig

public void setConfig(File file)
Parameters:
file - the registry configuration File to upload into the remote registry

setPassword

public void setPassword(String password)
Parameters:
password - the password of the registry to which to connect

setUsername

public void setUsername(String username)
Parameters:
username - the username of the registry to which to connect

setNodePath

public void setNodePath(String path)
Parameters:
path - the path to the node that is to be updated (if not specified, root the root not will be updated).

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException


Copyright © 2006 Sapia Open Community, Inc. All Rights Reserved.