|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
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 name of the error log file, including the absolute directory path. |
int |
getFileTimeSpan()
Timespan (in hours) after which logfile should be rotated. |
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)
Sets the log file name If the filepath is not absolute, the path is assumed to be relative to the root directory of the machine on which the server is running. |
void |
setFileTimeSpan(int hours)
|
void |
setNumberOfFilesLimited(boolean value)
This value is relevant only when rotation is on. |
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 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()
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 a versioned name with a format like <FileName>.nnnnn . 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'.
public void setFileName(java.lang.String fileName) throws javax.management.InvalidAttributeValueException
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 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://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |