|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.services.stats.StatsRecorderSettings
public class StatsRecorderSettings
This class is responsible for maintaining the on/off settings
for each type of portal event that the StatsRecorder can record.
The default, legacy StatsRecorder implementation will consult with this
class before it attempts to record an event. The initial values for each
setting will be read upon portal startup from portal.properties. At runtime,
the settings in this class can be controlled via
StatsRecorder.set()
.
An alternative to using this Static Singleton is to wrap your IStatsRecorder implementation with ConditionalStatsRecorder and use a StatsRecorderFlagsImpl to represent the settings as a JavaBean. That approach allows multiple IStatsRecorder instances differently configured.
Constructor Summary | |
---|---|
private |
StatsRecorderSettings()
Constructor with private access so that StatsRecorderSettings maintains only one instance of itself. |
Method Summary | |
---|---|
boolean |
get(int setting)
Get the value of a particular setting. |
static StatsRecorderSettings |
instance()
Creates an instance of StatsRecorderSettings. |
void |
set(int setting,
boolean newValue)
Set the value of a particular setting. |
java.lang.String |
toString()
Returns a String representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
public static final int RECORD_LOGIN
public static final int RECORD_LOGOUT
public static final int RECORD_SESSION_CREATED
public static final int RECORD_SESSION_DESTROYED
public static final int RECORD_CHANNEL_DEFINITION_PUBLISHED
public static final int RECORD_CHANNEL_DEFINITION_MODIFIED
public static final int RECORD_CHANNEL_DEFINITION_REMOVED
public static final int RECORD_CHANNEL_ADDED_TO_LAYOUT
public static final int RECORD_CHANNEL_UPDATED_IN_LAYOUT
public static final int RECORD_CHANNEL_MOVED_IN_LAYOUT
public static final int RECORD_CHANNEL_REMOVED_FROM_LAYOUT
public static final int RECORD_FOLDER_ADDED_TO_LAYOUT
public static final int RECORD_FOLDER_UPDATED_IN_LAYOUT
public static final int RECORD_FOLDER_MOVED_IN_LAYOUT
public static final int RECORD_FOLDER_REMOVED_FROM_LAYOUT
public static final int RECORD_CHANNEL_INSTANTIATED
public static final int RECORD_CHANNEL_RENDERED
public static final int RECORD_CHANNEL_TARGETED
private boolean recordLogin
private boolean recordLogout
private boolean recordSessionCreated
private boolean recordSessionDestroyed
private boolean recordChannelDefinitionPublished
private boolean recordChannelDefinitionModified
private boolean recordChannelDefinitionRemoved
private boolean recordChannelAddedToLayout
private boolean recordChannelUpdatedInLayout
private boolean recordChannelMovedInLayout
private boolean recordChannelRemovedFromLayout
private boolean recordFolderAddedToLayout
private boolean recordFolderUpdatedInLayout
private boolean recordFolderMovedInLayout
private boolean recordFolderRemovedFromLayout
private boolean recordChannelInstantiated
private boolean recordChannelRendered
private boolean recordChannelTargeted
private static StatsRecorderSettings settingsInstance
Constructor Detail |
---|
private StatsRecorderSettings()
Method Detail |
---|
public static final StatsRecorderSettings instance()
StatsRecorderSettings
instancepublic boolean get(int setting)
setting
- the setting
public void set(int setting, boolean newValue)
setting
- the setting to changenewValue
- the new value for the settingpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |