|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileViewerMBean
Provides a simple MBean representation of a file
Supported API: true
Extendable: true
| Method Summary | |
|---|---|
void |
emailFile(String addressesOrEmailList,
String subject,
boolean compress)
E-mail entire file as attachment, optionally compressing it Supported API: true |
void |
emailTextFile(String addressesOrEmailList,
String subject,
long maxLines,
long maxChars)
E-mail last portion of text file Supported API: true |
long |
getSize()
Size of file (in bytes) Supported API: true |
String[] |
viewFile()
View last reasonable portion of this file Supported API: true |
String[] |
viewFile(long maxLines,
long maxChars)
View last portion of this file Supported API: true |
| Methods inherited from interface wt.jmx.core.mbeans.AbstractFileViewMBean |
|---|
getLastModifiedTime, getName, getPath, isExists |
| Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean |
|---|
emailThisMBean |
| Method Detail |
|---|
long getSize()
String[] viewFile()
throws IOException
IOException
String[] viewFile(long maxLines,
long maxChars)
throws IOException
maxLines - Maximum number of lines to include; non-positive numbers imply no limitmaxChars - Maximum number of characters to include; non-positive numbers imply no limit
IOException
void emailFile(String addressesOrEmailList,
String subject,
boolean compress)
throws IOException
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailcompress - Whether to compress file attachment
IOException
void emailTextFile(String addressesOrEmailList,
String subject,
long maxLines,
long maxChars)
throws IOException
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailmaxLines - Maximum number of lines to include; non-positive numbers imply no limitmaxChars - Maximum number of characters to include; non-positive numbers imply no limit
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||