public interface JMSMessageLogFileMBean extends LogFileMBean
DEFAULT_FILE_NAME, MAX_ROTATED_FILES, NONE, SIZE, TIME, TIME_FORMATDEFAULT_EMPTY_BYTE_ARRAY| Modifier and Type | Method and Description |
|---|---|
String |
getFileName()
The name of the file that stores current JMS server log messages.
|
void |
setFileName(String fileName)
The name of the file that stores current JMS server log messages.
|
getBufferSizeKB, getDateFormatPattern, getFileCount, getFileMinSize, getFileTimeSpan, getLogFileRotationDir, getRotateLogOnStartup, getRotationTime, getRotationType, isNumberOfFilesLimited, setBufferSizeKB, setDateFormatPattern, setFileCount, setFileMinSize, setFileTimeSpan, setFileTimeSpanFactor, setLogFileRotationDir, setNumberOfFilesLimited, setRotateLogOnStartup, setRotationTime, setRotationTypefreezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSetgetMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParentgetAttribute, getAttributes, invoke, setAttribute, setAttributespostDeregister, postRegister, preDeregister, preRegisteraddNotificationListener, getNotificationInfo, removeNotificationListeneraddPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListenerString getFileName()
The name of the file that stores current JMS server log messages. Usually it is a
computed value based on the name of the parent of this MBean. For example,
for a JMS server log, it is jmsserverName.log.
However, if the name of the parent cannot be obtained,
the file name is weblogic.log. If you
specify a relative pathname, it is interpreted as relative to the
server's root directory.
To include a time and date stamp in the file name when the log
file is rotated, add java.text.SimpleDateFormat
variables to the file name. Surround each variable with percentage
(%) characters.
For example, if the file name is defined to be
myjmsserver_%yyyy%_%MM%_%dd%_%hh%_%mm%.log, the log file
will be named myserver_yyyy_mm_dd_hh_mm.log.
When the log file is rotated, the rotated file name contains the
date stamp. For example, if the log file is rotated on 2 April,
2005 at 10:05 AM, the log file that contains the old messages will
be named myserver_2005_04_02_10_05.log.
If you do not include a time and date stamp, the rotated log
files are numbered in order of creation. For example,
myjmsserver.log00007.
getFileName in interface LogFileMBeanvoid setFileName(String fileName) throws InvalidAttributeValueException
The name of the file that stores current JMS server log messages. Usually it is a
computed value based on the name of the parent of this MBean. For example,
for a JMS server log, it is jmsserverName.log.
However, if the name of the parent cannot be obtained,
the file name is weblogic.log. If you
specify a relative pathname, it is interpreted as relative to the
server's root directory.
To include a time and date stamp in the file name when the log
file is rotated, add java.text.SimpleDateFormat
variables to the file name. Surround each variable with percentage
(%) characters.
For example, if the file name is defined to be
myjmsserver_%yyyy%_%MM%_%dd%_%hh%_%mm%.log, the log file
will be named myserver_yyyy_mm_dd_hh_mm.log.
When the log file is rotated, the rotated file name contains the
date stamp. For example, if the log file is rotated on 2 April,
2005 at 10:05 AM, the log file that contains the old messages will
be named myserver_2005_04_02_10_05.log.
If you do not include a time and date stamp, the rotated log
files are numbered in order of creation. For example,
myjmsserver.log00007.
setFileName in interface LogFileMBeanfileName - The new fileName valueInvalidAttributeValueExceptionLogFileMBean.getFileName(),
MachineMBean