|
TPTP 4.4.0 Monitoring Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.logging.adapter.impl.Component
org.eclipse.hyades.logging.adapter.impl.Context
Context is a component. A Context instance corresponds to one thread of processing - sensor, event extractor, parser, outputters etc.
| Field Summary | |
|---|---|
protected IContextListener |
listener
Listener for this context |
| Fields inherited from class org.eclipse.hyades.logging.adapter.impl.Component |
|---|
logger, status, stopping |
| Constructor Summary | |
|---|---|
Context()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCharset()
Retrieve the name of the character set that this context is working with |
IContextListener |
getContextListener()
Get the IContextListener that is invoked as the context manages its sub-components. |
Status |
getContextStatus()
Get the status of the context |
boolean |
getContinuousOperation()
Get whether the context is running in continuous monitoring mode. |
int |
getDay()
Get the day of the month the log file was generated. |
java.util.Locale |
getLocale()
Retrieve the locale that this context is operating within |
long |
getMaximumIdleTime()
Get the maximum idle time used for determining when to stop the context that is running in continuous mode. |
int |
getMonth()
Get the month the log file was generated in. |
protected long |
getPauseCount()
Get the pause counter. |
long |
getPauseInterval()
Get the pause interval time used for determining when to stop the context that is running in continuous mode. |
java.lang.String |
getTimezone()
Get the timezone the log file was generated in. |
com.ibm.icu.util.ULocale |
getULocale()
|
int |
getYear()
Get the year the log file was generated in. |
void |
handleControledStop()
Determine if the context should be stopped based whether it is running in continuous monitoring mode and the maximum idle time has been reached. |
protected void |
incrementPauseCount()
Increment the pause counter. |
boolean |
isEnableICU()
|
protected boolean |
isHardStop()
Is the context stopping without notifying its listeners. |
boolean |
isValidating()
Is the context in validating mode? |
void |
resetControledStop()
Reset the counters used to determine if the context should be stopped when running in continuous monitoring mode. |
protected void |
resetPauseCount()
Reset the pause counter back to zero. |
void |
setCharset(java.lang.String charset)
Set the character set to be used by this context |
void |
setContextListener(IContextListener listener)
Set the IContextListener that will be invoked as the context manages its sub-components. |
void |
setContinuousOperation(boolean newContinuousOperation)
Set whether the context should run in continuous monitoring mode or not. |
void |
setDay(int day)
Set the day of the month the log file was generated. |
void |
setEnableICU(boolean enableICU)
Set the enableICU flag |
void |
setHardStop()
Set the hardStop flag so the context will stop without notifying its listeners. |
void |
setLocale(java.util.Locale locale)
Set the locale to be used by this context |
void |
setMaximumIdleTime(long newMaximumIdleTime)
Set the maximum idle time used for determining when to stop the context that is running in continuous mode. |
void |
setMonth(int month)
Set the month the log file was generated in. |
protected void |
setPauseCount(long newPauseCount)
Set the pause counter. |
void |
setPauseInterval(long newPauseInterval)
Set the pause interval time used for determining when to stop the context that is running in continuous mode. |
void |
setTimezone(java.lang.String timezone)
Set the timezone the log file was generated in. |
void |
setValidating(boolean validating)
Set the context validating state. |
void |
setYear(int year)
Set the year the log file was generated in. |
void |
stop()
Stop the context. |
void |
update()
Method update. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Field Detail |
protected IContextListener listener
| Constructor Detail |
public Context()
| Method Detail |
public void stop()
stop in interface IComponentstop in class ComponentIComponent.stop()public void resetControledStop()
protected void resetPauseCount()
protected void incrementPauseCount()
protected long getPauseCount()
protected void setPauseCount(long newPauseCount)
newPauseCount - - the new value of the pause counter.public void setContinuousOperation(boolean newContinuousOperation)
newContinuousOperation - - boolean for whether context is to run in continuous mode.public boolean getContinuousOperation()
public void setMaximumIdleTime(long newMaximumIdleTime)
newMaximumIdleTime - - the new maximum idle time in microsecondspublic long getMaximumIdleTime()
public void setPauseInterval(long newPauseInterval)
newPauseInterval - - the new pause interval in microsecondspublic long getPauseInterval()
public void update()
throws AdapterInvalidConfig
IComponent
update in interface IComponentupdate in class ComponentAdapterInvalidConfigIComponent.update()public void handleControledStop()
public void setContextListener(IContextListener listener)
IContext
setContextListener in interface IContextlistener - IContext.setContextListener(IContextListener)public IContextListener getContextListener()
IContext
getContextListener in interface IContextIContext.getContextListener()protected boolean isHardStop()
public void setHardStop()
public java.util.Locale getLocale()
IContext
getLocale in interface IContextIContext.getLocale()public void setLocale(java.util.Locale locale)
IContext
setLocale in interface IContextlocale - to be used by the contextIContext.setLocale(java.util.Locale)public java.lang.String getCharset()
IContext
getCharset in interface IContextIContext.getCharset()public void setCharset(java.lang.String charset)
IContext
setCharset in interface IContextcharset - the name of the character set to use for this contextorg.eclipse.hyades.logging.adapter.IContext#setCharset(java.nio.charset.Charset)public Status getContextStatus()
public int getDay()
public int getMonth()
public java.lang.String getTimezone()
public int getYear()
public void setDay(int day)
day - The day to set as an integer.public void setMonth(int month)
month - The month to set as an integer.public void setTimezone(java.lang.String timezone)
timezone - The timezone to set. It must be in RFC 822 format. For example, -0500public void setYear(int year)
year - The year to set.public boolean isValidating()
public void setValidating(boolean validating)
validating - boolean to indicate whether context is in validating modepublic com.ibm.icu.util.ULocale getULocale()
public boolean isEnableICU()
public void setEnableICU(boolean enableICU)
enableICU - the boolean value to set
|
TPTP 4.4.0 Monitoring Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||