|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl
org.smartfrog.sfcore.prim.PrimImpl
org.smartfrog.services.utils.logtofile.SFLogToFile
public class SFLogToFile
Class used to log system.out and system.err messages into a file.
| Field Summary |
|---|
| Fields inherited from class org.smartfrog.sfcore.prim.PrimImpl |
|---|
refLivenessDelay, refLivenessFactor, sfCompleteName, sfContext, sfDeployHooks, sfDeployWithHooks, sfExportRef, sfIsDeployed, sfIsStarted, sfIsTerminated, sfIsTerminating, sfLivenessCount, sfLivenessDelay, sfLivenessFactor, sfLivenessSender, sfParent, sfStartHooks, sfTerminateWithHooks, termLock |
| Constructor Summary | |
|---|---|
SFLogToFile()
Constructor. |
|
| Method Summary | |
|---|---|
void |
createFile()
Creates the file using attributes. |
java.io.OutputStream |
getErrorStream()
Gets the errorStream attribute of the SFDisplay object |
java.io.InputStream |
getInputStream()
Gets the inputStream attribute of the SFDisplay object |
java.io.OutputStream |
getOutputStream()
Gets the outputStream attribute of the SFDisplay object |
void |
printErrMsg(java.lang.String msg)
Method of interface PrintErrMsgInt |
void |
printMsg(java.lang.String msg)
Method of interface PrintMsgInt |
void |
redirectOutputs()
Redirects the outputs to a file. |
void |
sfDeploy()
Reads attributes for the log file and deploys and component. |
void |
sfStart()
Life cycle method to start the component. |
void |
sfTerminateWith(TerminationRecord t)
Terminates the component and put the out and err streams in their original statee. |
| Methods inherited from class org.smartfrog.sfcore.reference.RemoteReferenceResolverHelperImpl |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.smartfrog.sfcore.prim.Prim |
|---|
sfAddAttribute, sfAttributeKeyFor, sfAttributes, sfCompleteName, sfContainsAttribute, sfContainsValue, sfContext, sfDeployedHost, sfDeployedProcessName, sfDeployWith, sfDetach, sfDetachAndTerminate, sfDumpState, sfIsDeployed, sfIsStarted, sfIsTerminated, sfIsTerminating, sfParent, sfParentageChanged, sfRemoveAttribute, sfReplaceAttribute, sfTerminate, sfTerminatedWith, sfTerminateQuietlyWith, sfValues |
| Methods inherited from interface org.smartfrog.sfcore.prim.Liveness |
|---|
sfPing |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolver |
|---|
sfResolve, sfResolve, sfResolveHere, sfResolveHere, sfResolveParent |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolverHelper |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Methods inherited from interface org.smartfrog.sfcore.prim.Diagnostics |
|---|
sfDiagnosticsReport |
| Constructor Detail |
|---|
public SFLogToFile()
throws java.rmi.RemoteException
java.rmi.RemoteException - in case of metwork/rmi error.| Method Detail |
|---|
public void sfDeploy()
throws SmartFrogException,
java.rmi.RemoteException
sfDeploy in interface PrimsfDeploy in class PrimImplSmartFrogException - if there is any error while reading the
attributes or deploying the component
SmartFrogException - in case of error while deploying
java.rmi.RemoteException - if there is any newwork or remote error
public void sfStart()
throws SmartFrogException,
java.rmi.RemoteException
sfStart in interface PrimsfStart in class PrimImplSmartFrogException - if there is any error while reading the
attributes or deploying the component
SmartFrogException - in case of error while starting
java.rmi.RemoteException - if there is any newwork or remote error
public void createFile()
throws java.lang.Exception
java.lang.Exception - error while creating file
public void redirectOutputs()
throws java.lang.Exception
java.lang.Exception - if any io errorpublic void sfTerminateWith(TerminationRecord t)
sfTerminateWith in class PrimImplt - TerminationRecord objectpublic void printMsg(java.lang.String msg)
printMsg in interface PrintMsgIntmsg - messagepublic void printErrMsg(java.lang.String msg)
printErrMsg in interface PrintErrMsgIntmsg - error messagepublic java.io.OutputStream getOutputStream()
public java.io.OutputStream getErrorStream()
public java.io.InputStream getInputStream()
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||