org.rhq.bundle.ant.type
Class SystemServiceType
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.rhq.bundle.ant.type.AbstractBundleType
org.rhq.bundle.ant.type.SystemServiceType
- All Implemented Interfaces:
- Cloneable
public class SystemServiceType
- extends AbstractBundleType
An Ant task that installs a system startup/shutdown service. Currently only Red Hat Linux versions are supported.
- Author:
- Ian Springer
| Fields inherited from class org.apache.tools.ant.types.DataType |
checked, ref |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
| Methods inherited from class org.apache.tools.ant.types.DataType |
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getDescription, getLocation, log, log, setDescription, setLocation, setProject |
SystemServiceType
public SystemServiceType()
validate
public void validate()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
init
public void init()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
install
public void install()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
getScriptDestFile
public File getScriptDestFile()
getConfigDestFile
public File getConfigDestFile()
start
public void start()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
stop
public void stop()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
uninstall
public void uninstall()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
getName
public String getName()
setName
public void setName(String name)
getScriptFileName
public String getScriptFileName()
getScriptFile
public File getScriptFile()
setScriptFile
public void setScriptFile(String scriptFile)
getConfigFileName
public String getConfigFileName()
getConfigFile
public File getConfigFile()
setConfigFile
public void setConfigFile(String configFile)
isOverwriteScript
public boolean isOverwriteScript()
setOverwriteScript
public void setOverwriteScript(boolean overwriteScript)
isOverwriteConfig
public boolean isOverwriteConfig()
setOverwriteConfig
public void setOverwriteConfig(boolean overwriteConfig)
isOverwriteLinks
public boolean isOverwriteLinks()
setOverwriteLinks
public void setOverwriteLinks(boolean overwriteLinks)
getStartLevels
public String getStartLevels()
setStartLevels
public void setStartLevels(String startLevels)
getStartPriority
public byte getStartPriority()
setStartPriority
public void setStartPriority(byte startPriority)
getStopPriority
public byte getStopPriority()
setStopPriority
public void setStopPriority(byte stopPriority)
getRoot
public File getRoot()
setRoot
public void setRoot(File root)
validateAttributes
protected void validateAttributes()
throws org.apache.tools.ant.BuildException
- Ensure we have a consistent and legal set of attributes, and set
any internal flags necessary based on different combinations
of attributes.
- Throws:
org.apache.tools.ant.BuildException - if an error occurs
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.