com.phenix.pct
Class PCTBroker

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.phenix.pct.PCT
              extended by com.phenix.pct.PCTBroker
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
PCTASBroker, PCTNSBroker, PCTWSBroker

public abstract class PCTBroker
extends PCT

Abstract class managing AdminServer tasks

Version:
$Revision$
Author:
Gilles QUERRET

Field Summary
protected  String action
           
protected static String CONMGR_PROPERTIES
           
protected static String CREATE
           
protected static String DELETE
           
protected  String file
           
protected static String MERGE_CLASS
           
protected  String name
           
protected static String UBROKER_PROPERTIES
           
protected  String UID
           
protected static String UPDATE
           
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
PCTBroker()
           
 
Method Summary
abstract  void execute()
          This method has to be overridden
 void setAction(String action)
          Action type to handle.
 void setFile(String file)
          Properties file to update.
 void setName(String name)
          Set broker name.
 void setUID(String uid)
          Set unique identifier for broker.
 
Methods inherited from class com.phenix.pct.PCT
addEnv, checkDlcHome, deleteDirectory, escapeString, extractPL, extractPL, getDlcBin, getDlcHome, getDLCMaintenanceVersion, getDLCMajorVersion, getDLCMinorVersion, getDLCPatchLevel, getDLCRevision, getEnvironment, getExecPath, getFullVersion, getIncludedPL, getJavaFileset, getJavaFileset, getProgressProcedures, getRCodeVersion, getReducedVersion, isSourceCodeUsed, nextRandomInt, setDlcBin, setDlcHome, setDlcJava, setIncludedPL
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE

protected static final String UPDATE
See Also:
Constant Field Values

CREATE

protected static final String CREATE
See Also:
Constant Field Values

DELETE

protected static final String DELETE
See Also:
Constant Field Values

UBROKER_PROPERTIES

protected static final String UBROKER_PROPERTIES
See Also:
Constant Field Values

CONMGR_PROPERTIES

protected static final String CONMGR_PROPERTIES
See Also:
Constant Field Values

MERGE_CLASS

protected static final String MERGE_CLASS
See Also:
Constant Field Values

action

protected String action

name

protected String name

file

protected String file

UID

protected String UID
Constructor Detail

PCTBroker

public PCTBroker()
Method Detail

execute

public abstract void execute()
                      throws org.apache.tools.ant.BuildException
Description copied from class: PCT
This method has to be overridden

Specified by:
execute in class PCT
Throws:
org.apache.tools.ant.BuildException

setAction

public void setAction(String action)
Action type to handle. Must be create|update|delete

Parameters:
action - String - Must be create|update|delete

setFile

public void setFile(String file)
Properties file to update. If this method is not called, falls back to default file depending on action, ie $DLC/properties/ubroker.properties for appservers or $DLC/properties/conmgr.properties for databases

Parameters:
file - File

setName

public void setName(String name)
Set broker name. No default value.

Parameters:
name - String

setUID

public void setUID(String uid)
Set unique identifier for broker. Default value is none.

Parameters:
uid - String auto|none|uid


Copyright © 2003-2011 Gilles QUERRET. All Rights Reserved.