|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static long |
CACHING_STUB_SVUID
|
static java.lang.String |
DEFAULT_FILE_NAME
The default name of the file is based on the name of the parent of this this MBean. |
static int |
MAX_ROTATED_FILES
|
static java.lang.String |
NONE
No logfile rotation. |
static java.lang.String |
SIZE
Rotation based on file size. |
static java.lang.String |
TIME
Rotation based on elapsed time. |
Method Summary | |
int |
getFileCount()
|
int |
getFileMinSize()
Returns the minimum size (in kilobytes) that the error log file must reach before it is rolled over. |
java.lang.String |
getFileName()
Returns the pathname of the error log file. |
int |
getFileTimeSpan()
Timespan (in hours) after which logfile should be rotated. |
java.lang.String |
getRotationTime()
Defines the date when the first rotation of the log file will begin. |
java.lang.String |
getRotationType()
Return rotation type for this logfile. |
boolean |
isNumberOfFilesLimited()
|
void |
setFileCount(int numberOfFiles)
This attribute defines the number of file instances which are kept by the logging system, other than the current logfile. |
void |
setFileMinSize(int kBytes)
|
void |
setFileName(java.lang.String fileName)
Specifies name of the error log file. |
void |
setFileTimeSpan(int hours)
|
void |
setNumberOfFilesLimited(boolean value)
This value is relevant only when rotation is on. |
void |
setRotationTime(java.lang.String when)
|
void |
setRotationType(java.lang.String rotationType)
Set rotation type for this logfile. |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
getNotes,
setNotes,
setPersistenceEnabled |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo,
getName,
getObjectName,
getParent,
getType,
isCachingDisabled,
isRegistered,
setName,
setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute,
getAttributes,
invoke,
setAttribute,
setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister,
postRegister,
preDeregister,
preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener,
getNotificationInfo,
removeNotificationListener |
Field Detail |
public static final long CACHING_STUB_SVUID
public static final java.lang.String SIZE
public static final java.lang.String TIME
public static final java.lang.String NONE
public static final java.lang.String DEFAULT_FILE_NAME
public static final int MAX_ROTATED_FILES
Method Detail |
public java.lang.String getFileName()
Each server/client has one and only one logfile on the machine it is running. This file contains all error messages generated by the server/ client and application code running within it. User can configure the system such that the logfile is rotated based on size or time.
public void setFileName(java.lang.String fileName) throws javax.management.InvalidAttributeValueException
Each server/client has one and only one logfile on the machine it is running. This file contains all error messages generated by the server/ client and application code running within it. User can configure the system such that the logfile is rotated based on size or time. By default, file rotation is disabled.
File Names:
The current logfile is always the one whose name equals value of the this attribute. When the current file exceeds the size or time limit, it is renamed.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
myserver_%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, 2003 at
10:05 AM, the log file that contains the old messages will be named
myserver_2003_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,
myserver.log00007
.
Also, if 'NumberOfFilesLimited' is 'true' and curent number of old files exceed 'FileCount' the oldest file is deleted. Hence, at any time the number rotated logfiles equals the value of 'FileCount'.
MachineMBean
public java.lang.String getRotationType()
public void setRotationType(java.lang.String rotationType) throws javax.management.InvalidAttributeValueException
rotationType
- SIZE, TIME or NONE.public void setNumberOfFilesLimited(boolean value) throws javax.management.InvalidAttributeValueException, DistributedManagementException
public boolean isNumberOfFilesLimited()
public int getFileCount()
public void setFileCount(int numberOfFiles) throws javax.management.InvalidAttributeValueException, DistributedManagementException
public int getFileTimeSpan()
public java.lang.String getRotationTime()
public void setRotationTime(java.lang.String when) throws javax.management.InvalidAttributeValueException
public void setFileTimeSpan(int hours) throws javax.management.InvalidAttributeValueException, DistributedManagementException
public int getFileMinSize()
public void setFileMinSize(int kBytes) throws javax.management.InvalidAttributeValueException, DistributedManagementException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |