Package wt.util.jmx
Interface AbstractPropertiesManagerMBean
- All Superinterfaces:
AbstractFileViewMBean,SelfEmailingMBean
- All Known Subinterfaces:
PropertiesEditorMBean,PropertiesManagerMBean
MBean for managing Windchill properties
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionvoidApply pending property changes
Supported API: truevoidClear pending property changes
Supported API: trueCollect properties managed by this MBean.voidemailClusterPropertyComparison(String addressesOrEmailList) Compare properties across a cluster and email the results.voidemailDefaultPropertyValueComparison(String addressesOrEmailList, boolean skipPropsWODefaults) Compare current property values to default values and email the results.voidE-mail file
Supported API: trueGet the stylesheet used to generate the cluster property comparison output.Get the stylesheet used to generate the default property value comparison output.Name of logger
Supported API: trueLog level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: trueString[]getProperty(String propertyName) Retrieve the value of a property
Supported API: truelonggetSize()Size of file (in bytes)
Supported API: trueString[]Review pending property changes
Supported API: trueString[]searchFile(String searchRegexp, boolean numberLines) View portions of this file that match a specified regular expression.voidsendFileToSupport(long callNumber, String description) Send file to technical support
Supported API: truevoidsetCmpClusterPropsStyleSheet(String newStyleSheet) Set the stylesheet used to generate the cluster property comparison output.voidsetCmpDefaultPropValuesStylesheet(String newStylesheet) Set the stylesheet used to generate the default property value comparison output.voidsetLogLevel(String logLevel) Log level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: trueString[]viewFile()View last reasonable portion of this file
Supported API: trueMethods inherited from interface wt.jmx.core.mbeans.AbstractFileViewMBean
getLastModifiedTime, getName, getPath, isExistsMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Method Details
-
getSize
long getSize()Size of file (in bytes)
Supported API: true -
getLogger
String getLogger()Name of logger
Supported API: true -
getLogLevel
String getLogLevel()Log level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: true -
setLogLevel
Log level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: true -
viewFile
View last reasonable portion of this file
Supported API: true- Throws:
IOException
-
searchFile
@MBeanOperationImpact(0) String[] searchFile(String searchRegexp, boolean numberLines) throws IOException View portions of this file that match a specified regular expression.
Supported API: true- Parameters:
searchRegexp- Regular expression to search withnumberLines- Whether resulting lines should include original line numbers- Throws:
IOException
-
emailClusterPropertyComparison
@MBeanOperationImpact(0) void emailClusterPropertyComparison(String addressesOrEmailList) throws Exception Compare properties across a cluster and email the results.- Parameters:
addressesOrEmailList- The addresses or list to send the results to.- Throws:
Exception- If there are any errors comparing across the cluster or sending the email with the results.
Supported API: true
-
emailDefaultPropertyValueComparison
@MBeanOperationImpact(0) void emailDefaultPropertyValueComparison(String addressesOrEmailList, boolean skipPropsWODefaults) throws Exception Compare current property values to default values and email the results.- Parameters:
addressesOrEmailList- The addresses or list to send the results to.skipPropsWODefaults- Flag for whether or not to include properties that don't have default values in the out put.- Throws:
Exception- If there are any errors during the comparison or sending the email with the results.
Supported API: true
-
emailFile
@MBeanOperationImpact(0) void emailFile(String addressesOrEmailList, String subject) throws IOException E-mail file
Supported API: true- Parameters:
addressesOrEmailList- Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject- Subject to give e-mail- Throws:
IOException
-
sendFileToSupport
@MBeanOperationImpact(0) void sendFileToSupport(long callNumber, String description) throws Exception Send file to technical support
Supported API: true- Parameters:
callNumber- Existing technical support call number to associate this data withdescription- Description to give data- Throws:
Exception
-
getProperty
Retrieve the value of a property
Supported API: true- Parameters:
propertyName- Property to retrieve- Throws:
Exception
-
reviewPendingChanges
Review pending property changes
Supported API: true -
applyPendingChanges
Apply pending property changes
Supported API: true- Throws:
Exception
-
clearPendingChanges
Clear pending property changes
Supported API: true -
setCmpClusterPropsStyleSheet
Set the stylesheet used to generate the cluster property comparison output.- Parameters:
newStyleSheet- The path, relative to codebase, of the new stylesheet.
Supported API: true
-
getCmpClusterPropsStyleSheet
String getCmpClusterPropsStyleSheet()Get the stylesheet used to generate the cluster property comparison output.- Returns:
- The path, relative to codebase, of the new stylesheet.
Supported API: true
-
setCmpDefaultPropValuesStylesheet
Set the stylesheet used to generate the default property value comparison output.- Parameters:
newStylesheet- The path, relative to codebase, of the new stylesheet.
Supported API: true
-
getCmpDefaultPropValuesStylesheet
String getCmpDefaultPropValuesStylesheet()Get the stylesheet used to generate the default property value comparison output.- Returns:
- The path, relative to codebase, of the stylesheet.
Supported API: true
-
collectProperties
Collect properties managed by this MBean.- Returns:
- Map containing all property files, and their properties, managed by this MBean.
The file path, relative to WT_HOME, of each property file managed by this MBean is the key.
And each file's properties is the value.
Supported API: true - Throws:
IOException
-