<!-- <questionid="arch-overall"when="init"> Describetheoverallarchitecture. <hint> WhatwillbeAPIfor <ahref="http://openide.netbeans.org/tutorial/api-design.html#design.apiandspi"> clientsandwhatsupportAPI</a>? Whatpartswillbepluggable? Howwillplug-insberegistered?Pleaseuse<code><apitype="export"/></code> todescribeyourgeneralAPIsandspecifytheir <ahref="http://openide.netbeans.org/tutorial/api-design.html#category-private"> stabilitycategories</a>. Ifpossiblepleaseprovidesimplediagrams. </hint> </question>
-->
<answer id="arch-overall">
<p>
This module tracks certain UI gestures produced by user and collects a log
of his actions. It is capable to display such log and also upload it to
a central server for additional processing and analysis.
</p>
</answer>
<answer id="arch-quality">
<p>
Client side is going to be covered with unit tests to certain extent.
</p>
</answer>
<answer id="arch-time">
<p>
The module shall work with NetBeans 6.0. As it needs certain cooperation
with modules in standard distribution, like
<api name="UI-Actions-org.openide.awt"type="import" group="logger" category="friend">
which log info about invoked actions
</api> and
<api name="UI-Actions-org.openide.windows"type="import" group="logger" category="friend">
which log info about invoked actions by keystrokes
</api>.
</p>
</answer>
<answer id="arch-usecases">
<usecase id="gather-info" name="Gather information about UI gestures">
<p>
Primary purpose of this module is collect information about
the user actions that take place in the running NetBeans based
application.
</p>
<p>
<api name="UI_LOGGER_NAME" group="logger" category="devel"type="export">
The info about various UI events in the system is collected thru
listening on
<a href="@JDK@@JDKMODULE_JAVA_LOGGING@/java/util/logging/LogRecord.html">log records</a> send to
<a href="@JDK@@JDKMODULE_JAVA_LOGGING@/java/util/logging/Logger.html">
Logger.getLogger(UI_LOGGER_NAME_VALUE)
</a>, where UI_LOGGER_NAME_VALUE is a value of UI_LOGGER_NAME
resource bundle key, defining the name of the UI usage logger.
Any code in the system can get instance of this logger
or any child logger and send useful informations to it.
At the end of the session the last few hundereds events
is taken and displayed to the user for further processing.
</api>
<api name="METRICS_LOGGER_NAME" group="logger" category="devel"type="export">
The info about various UI events in the system is collected thru
listening on
<a href="@JDK@@JDKMODULE_JAVA_LOGGING@/java/util/logging/LogRecord.html">log records</a> send to
<a href="@JDK@@JDKMODULE_JAVA_LOGGING@/java/util/logging/Logger.html">
Logger.getLogger(METRICS_LOGGER_NAME_VALUE)
</a>, where METRICS_LOGGER_NAME_VALUE is a value of
METRICS_LOGGER_NAME resource bundle key, defining the name
of the metrics logger.
Any code in the system can get instance of this logger
or any child logger and send useful informations to it.
At the end of the session the last few hundereds events
is taken and displayed to the user for further processing.
</api>
</p>
</usecase>
<usecase id="showing-results" name="Presenting usage statistics">
<p>
Important part of the behaviour of this module is the ability
to cooperate with information analyzing tools and present their
results. This is done thru special HTTP contracts, where the
module reads and understands various server responses and is
able to open browser after submitting data to analysis.
</p>
<p>
<api name="WELCOME_URL" group="property" category="private"type="export">
There is a key in the <code>org.netbeans.modules.uihandler.Bundle</code>
that specifies the location of the page on a server one shall
query and display to the user when the module is about the
submit usage data for analysis.
</api>
<api name="METRICS_URL" group="property" category="private"type="export">
There is a key in the <code>org.netbeans.modules.uihandler.Bundle</code>
that specifies the location of the page on a server one shall
query and display to the user when the module is about the
submit metrics data for analysis.
</api>
<api name="ERROR_URL" group="property" category="private"type="export">
There is a key in the <code>org.netbeans.modules.uihandler.Bundle</code>
that specifies the location of the page on a server one shall
query and display to the user when the module is about the
submit an error report.
</api>
<api name="WelcomePageContent" group="java.io.File" category="friend"type="export">
The page pointed by <code>WELCOME_URL</code> can contain
any XHTML text, but it also should contain a <form/> tag
that defines <input type="hidden" name="submit" value="localizedName"/>.
The <code>localizedName</code> is then going to be used for a button
for the dialog displaying the summary. When this button is invoked,
the "action"URL is then feed with data from the UI logs.
The server is then supposed to process the data, create
some analytics pages and return them back to the client.
If the returned page contains tag like
<meta http-equiv='Refresh' content='3; URL=somepage'>
an (external) browser is opened with the specified URL and
the user can then interact directly with the server, thru
pages it serves.
</api>
<api name="org.netbeans.modules.uihandler.Submit" group="systemproperty"
category="private"type="export">
For testing purposes one can
specify different URL for upload of files, by setting
<code>org.netbeans.modules.uihandler.Submit</code>
property when invoking NetBeans.
</api>
</p>
</usecase>
<usecase id="extending-info" name="Adding own UI gestures">
<p>
The base module is in fact just an infrastructure which collects
data about UI gestures, but the actual gestures need to be delivered
to it somehow. Here is the description of the ways how one can
extend own modules to cooperate with this UI gestures infrastructure.
</p>
<p>
To feed own data about special UI gestures one can just create own
<a href="@JDK@@JDKMODULE_JAVA_LOGGING@/java/util/logging/Logger.html">
Logger.getLogger(UI_LOGGER_NAME_VALUE+".ownname")
</a> and send own log records to it.
UI_LOGGER_NAME_VALUE is a value of UI_LOGGER_NAME
resource bundle key, defining the name of the logger.
The format of the log messages shall follow the one described by the
<a href="@org-openide-util@/org/openide/util/doc-files/logging.html">
structured logging
</a> document, e.g. the
<a href="@JDK@@JDKMODULE_JAVA_LOGGING@/java/util/logging/LogRecord.html">LogRecord</a>
shall have associated
<a href="@JDK@@JDKMODULE_JAVA_BASE@/java/util/ResourceBundle.html">ResourceBundle</a>
and the record's <code>getMessage</code> shall point to a key
in that bundle.
<api name="ICON_BASE" group="property"type="export" category="devel">
there is an extension to the regular formatting done by
the <a href="@JDK@@JDKMODULE_JAVA_LOGGING@/java/util/logging/Formatter.html">logging
formatter</a> that, in order to achieve nicer appearance to
the user, allows each record to be associated with an icon.
Just define <code>MSG_KEY_ICON_BASE</code> in the bundle associated
with the
<a href="@JDK@@JDKMODULE_JAVA_LOGGING@/java/util/logging/LogRecord.html">LogRecord</a>
(where the MSG_KEY is the string returned by <code>record.getMessage()</code>)
and the value is then going to be used for the
<a href="@org-openide-nodes@/org/openide/nodes/AbstractNode.html#setIconBaseWithExtension(java.lang.String)">
Node
</a> representing the UI gesture.
</api>
</p>
<p>
Sometimes direct logging may not be possible. For example for
performance data it might be meaningful to collect the information
over a longer time period and only at the end output some statistics.
This is supported as well. Just implement and register one
of the
<api name="CallbackInterfaces" group="java"type="export" category="devel" url="@TOP@/org/netbeans/modules/uihandler/api/Activated.html">interfaces from the API of this module</api>
and properly register
them and the implementation will be called when the logger module
is activated or when the user finishes the work with the application.
In order to keep dependencies clean, it is strongly adviced
to make modules that implement this API
eager,
so they get enabled as soon as the UI logger module is enabled.
</p>
</usecase>
<p>
These usecases are realized as described in
<a href="@TOP@/org/netbeans/modules/uihandler/api/doc-files/ui.html">
here in provided UI specification</a>.
</p>
</answer>
<!-- <questionid="arch-what"when="init"> Whatisthisprojectgoodfor? <hint> Pleaseprovidehereafewlinesdescribingtheproject, whatproblemitshouldsolve,providelinkstodocumentation, specifications,etc. </hint> </question>
-->
<answer id="arch-what">
<p>
XXX no answer for arch-what
</p>
</answer>
<!-- <questionid="compat-i18n"when="impl"> Isyourmodulecorrectlyinternationalized? <hint> Correctinternationalizationmeansthatitobeysinstructions at<ahref="http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/i18n-branding.html"> NetBeansI18Npages</a>. </hint> </question>
-->
<answer id="compat-i18n">
There are several resource bundle keys related to branding.
These are:
<ul>
<li>
<code>userNameURL</code> - The URL used to report Exception
reporter results, the user name is appended to the URL.
</li>
<li>
<code>userIdURL</code> - The URL used to report by user identity,
when user name is not defined. The user identity is appended
to the URL.
</li>
<li>
<code>ReportPanel.loginField.AccessibleContext.accessibleName</code> -
The accessible name of the application's user name field
</li>
<li>
<code>ReportPanel.loginField.AccessibleContext.accessibleDescription</code> -
The accessible description of the application's user name field
</li>
<li>
<code>REGISTRATION_URL</code> - The URL to register a new user
</li>
<li>
<code>ReportPanel.jLabel11.text</code> - A label next to the
application's user name field
</li>
<li>
<code>ReportPanel.jPasswordField1.AccessibleContext.accessibleDescription</code> -
The accessible description of the application's user password field
</li>
<li>
<code>no_data_found</code> - Description text about
a connection problem.
</li>
<li>
<code>METRICS_LOGGER_NAME</code> - The logger name of metrics
logging.
</li>
<li>
<code>UI_LOGGER_NAME</code> - The logger name of UI usages
logging.
</li>
<li>
<code>UI_PERFORMANCE_LOGGER_NAME</code> - The logger name
of performance-related logging.
</li>
<li>
<code>UI_USER_CONFIGURATION</code> - Text of a configuration
log message. Following three keys are used to provide the
application version:
<ul>
<li>
<code>ApplicationVersionResourceBundle</code> -
A resource bundle the application version is read from
</li>
<li>
<code>ApplicationVersionResourceKey</code> -
A key with the application version number
</li>
<li>
<code>ApplicationVersionSysPropertyResourceArg</code> -
A system property, that is used as an argument to the
application version number key
</li>
</ul>
</li>
<li>
<code>WELCOME_URL</code> - The URL with the welcome text
</li>
<li>
<code>METRICS_URL</code> - The URL to upload metrics logs to
</li>
<li>
<code>ERROR_URL</code> - The URL to upload errors to
</li>
<li>
<code>CHECKING_SERVER_URL</code> - The URL to authenticate
the user with password
</li>
<li>
<code>LOG_FILE</code> - The application's log file relative
to the user directory
</li>
<li>
<code>MSG_ConnetionFailedReport</code> - This message is
displayed when connection to the server fails.
</li>
<li>
<code>LBL_BottomText1</code>, <code>LBL_BottomText2</code>,
<code>LBL_BottomText3</code> - Text displayed on the usage
statistics dialog.
</li>
<li>
<code>METRICS_INFO_URL</code> - This URL is displayed in
a browser to provide more information about the metrics
usage tracking.
</li>
</ul>
</answer>
<!-- <questionid="compat-standards"when="init"> Doesthemoduleimplementordefineanystandards?Isthe implementationexactordoesitdeviatesomehow? </question>
-->
<answer id="compat-standards">
<p>
XXX no answer for compat-standards
</p>
</answer>
<ul>
<li><api type='import' group='java' category='private' name='org.openide.explorer'url='../org-openide-explorer/overview-summary.html' >
The module uses explorer view to present the results before they get submitted to
the analysis server.
</api>
</li>
<li><api type='import' group='java' category='friend' name='uihandler-hooks' >
This module makes on of its <code>Handler</code> implement
<code>Callable<JButton></code> which is a signal for
core providing the exception dialog to include such a
<code>JButton</code> in its list of options. That way this
module can enhance the dialog with "Report..." button.
</api>
</li>
</ul>
<!-- <questionid="deploy-dependencies"when="final"> Whatdoothermodulesneedtodotodeclareadependencyonthisone, inadditiontoorinsteadofthenormalmoduledependencydeclaration (e.g.tokenstorequire)? <hint> Provideasampleoftheactuallinesyouwouldaddtoamodulemanifest todeclareadependency,forexampleOpenIDE-Module-Requires:some.token. Ifothermodulesshouldnotdependonthismodule,orshouldjustusea simpleregularmoduledependency,youcanjustanswer"nothing".Ifyou intentionallyexposeasemistableAPItoclientsusingimplementation dependencies,youshouldmentionthathere(butthereisnoneedtogive anexampleofusage). </hint> </question>
-->
<answer id="deploy-dependencies">
<p>
Modules may use functionality of this module either by depending on its presence
and registering <a href="@TOP@/org/netbeans/modules/uihandler/api/Deactivated.html">callback interfaces</a>
provided by its API. Or the modules do not need to depend on this module at all,
and just generate <a href="@JDK@@JDKMODULE_JAVA_LOGGING@/java/util/logging/LogRecord.html">log records</a>
to the <code>UI_LOGGER_NAME_VALUE+".someloggername"</code> logger. These records are
then going to be consumed by this module, if enabled.
</p>
</answer>
<!-- <questionid="exec-privateaccess"when="final"> Areyouawareofanyotherpartsofthesystemcallingsomeof yourmethodsbyreflection? <hint> Ifso,describethe"contract"asanAPI.Likelyprivateorfriendone,but stillAPIandconsiderrewriteofit. </hint> </question>
-->
<answer id="exec-privateaccess">
<p>
XXX no answer for exec-privateaccess
</p>
</answer>
<!-- <questionid="exec-process"when="impl"> Doyouexecuteanexternalprocessfromyourmodule?Howdoyouensure thattheresultisthesameondifferentplatforms?Doyouparseoutput? Doyoudependonresultcode? <hint> Ifyoufeedaninput,parsetheoutputpleasedeclarethatasanAPI. </hint> </question>
-->
<answer id="exec-process">
<p>
XXX no answer for exec-process
</p>
</answer>
<!-- <questionid="exec-property"when="impl"> Isexecutionofyourcodeinfluencedbyanyenvironmentor Javasystem(<code>System.getProperty</code>)property? <hint> Ifthereisapropertythatcanchangethebehaviorofyour code,somebodywilllikelyuseit.Youshoulddescribewhatitdoes andthe<ahref="http://openide.netbeans.org/tutorial/api-design.html#life">stabilitycategory</a> ofthisAPI.Youmayuse <pre> <apitype="export"group="property"name="id"category="private"url="http://..."> descriptionoftheproperty,whereitisused,whatitinfluence,etc. </api> </pre> </hint> </question>
-->
<answer id="exec-property">
<p>
<api name="MSG_USER_CONFIGURATION" group="logger" category="devel"type="export">
Before the results are submitted one more LogRecord is added. This LogRecord message is
set to <code>MSG_USER_CONFIGURATION</code> . Four upto six parameters are added.
Four common parameters are added always before sending logger info and two error
parameters are added only if an exception rised.
<ul id="common_parameters">
<li>Operating system name, version and architecture</li>
<li>Virtual machine name and version</li>
<li>Application version and build number</li>
<li>User name</li>
</ul>
<ul id="error_parameters">
<li>Error summary</li>
<li>User's comment to an error situation</li>
</ul>
</api>
<api name="REGISTRATION_URL" group="property" category="private"type="export">
There is a key in the <code>org.netbeans.modules.exceptions.Bundle</code>
that specifies the location of the page on a server. This page
should be display to the user when he uses a "register here" link on ReportPanel.
</api>
</p>
</answer>
<!-- <questionid="exec-reflection"when="impl"> DoesyourcodeuseJavaReflectiontoexecuteothercode? <hint> ThisusuallyindicatesamissingorinsufficientAPIintheother partofthesystem.Iftheothersideisnotawareofyourdependency thiscontractcanbeeasilybroken. </hint> </question>
-->
<answer id="exec-reflection">
<p>
XXX no answer for exec-reflection
</p>
</answer>
<!-- <questionid="perf-spi"when="init"> Howtheperformanceofthepluggedincodewillbeenforced? <hint> Ifyouallowforeigncodetobepluggedintoyourownmodule,how doyouenforcethatitwillbehavecorrectlyandquicklyandwillnot negativelyinfluencetheperformanceofyourownmodule? </hint> </question>
-->
<answer id="perf-spi">
<p>
XXX no answer for perf-spi
</p>
</answer>
<!-- <questionid="perf-startup"when="final"> Doesyourmodulerunanycodeonstartup? </question>
-->
<answer id="perf-startup">
<p>
XXX no answer for perf-startup
</p>
</answer>
<!-- <questionid="perf-wakeup"when="final"> Doesanypieceofyourcodewakeupperiodicallyanddosomething evenwhenthesystemisotherwiseidle(nouserinteraction)? </question>
-->
<answer id="perf-wakeup">
<p>
XXX no answer for perf-wakeup
</p>
</answer>
<!-- <questionid="resources-file"when="final"> Doesyourmoduleuse<code>java.io.File</code>directly? <hint> NetBeansprovidealogicalwrapperoverplainfilescalled <code>org.openide.filesystems.FileObject</code>that providesuniformaccesstosuchresourcesandisthepreferred waythatshouldbeused.Butofcoursetherecanbesituationswhen thisisnotsuitable. </hint> </question>
-->
<answer id="resources-file">
<p>
<api name="var-log-uigestures" group="java.io.File" category="private"type="export">
The module stores its loggging
information in $userdir/var/log/uigestures and
$userdir/var/log/uigestures.1 files. There are written whenever
a UI action happens and read when the data are send to server.
Each of these files is supposed to contain at most 1000 of
actions</api>
</p>
</answer>
<!-- <questionid="security-grant"when="final"> Doesyourcodegrantadditionalrightstosomeothercode? <hint>Avoidusingaclassloaderthataddsextra permissionstoloadedcodeunlessreallynecessary. AlsonotethatyourAPIimplementation canalsoexposeunneededpermissionstoenemycodeby callingAccessController.doPrivileged().</hint> </question>
-->
<answer id="security-grant">
<p>
XXX no answer for security-grant
</p>
</answer>
<!-- <questionid="security-policy"when="final"> Doesyourfunctionalityrequiremodificationstothestandardpolicyfile? <hint>Yourcodemightpasscontroltothird-partycodenot comingfromtrusteddomains.Thiscouldbecodedownloadedoverthe networkorcodecomingfromlibrariesthatarenotbundled withNetBeans.Whichpermissionsneedtobegrantedtowhichdomains?</hint> </question>
-->
<answer id="security-policy">
<p>
XXX no answer for security-policy
</p>
</answer>
<!-- <questionid="resources-preferences"when="final"> DoesyourmoduleusespreferencesviaPreferencesAPI?DoesyourmoduleuseNbPreferencesor orregularJDKPreferences?Doesitread,writeorboth? Doesitsharepreferenceswithothermodules?Ifso,thenwhy? <hint> Youmayuse <apitype="export"group="preferences" name="preferencenodename"category="private"> descriptionofindividualkeys,whereitisused,whatit influences,whetherthemodulereads/writeit,etc. </api> DuetoXMLIDrestrictions,ratherthan/org/netbeans/modules/foogivethe"name"asorg.netbeans.modules.foo. NotethatifyouuseNbPreferencesthisnamewillthenbethesameasthecodenamebaseofthemodule. </hint> </question>
-->
<answer id="resources-preferences">
<p>
<api name="org.netbeans.modules.autoupdate.ideIdentity" category="friend" group="preferences"type="import">
This module shares the identity with autoupdate and reads it from its preferences node.
</api>
<api name="org.netbeans.modules.uihandler.autoautoSubmitWhenFull" category="devel" group="preferences"type="export">
This property allows other parts of the system to turn on/off the
automatic submission of log files to the server. This can be
used for example by installer to query the user and on his
confirmation create <code>config/Preferences/org/netbeans/modules/uihandler.properties</code>
file in user dir or in nbX.Y cluster with one line saying:
<code>autoSubmitWhenFull=true</code>. This works since version1.30 of this module.
</api>
</p>
<api type="export" group="systemproperty" name="nb.show.statistics.ui" category="private">
System property "nb.show.statistics.ui" controls if UI for Usage statistics is displayed in General panel.
If this property is non null (for IDE) UI is shown. This property contains key of preference used
to save status - true if usage statistics are collected and uploaded, false if not.
Key is "usageStatisticsEnabled" and is described below.
</api>
<api type="import" group="preferences" name="org.netbeans.core.usageStatisticsEnabled" category="private">
Key "usageStatisticsEnabled" is read and controls if metrics logging is enabled or disabled.
Installer has also similar UI to set this and stores it into NetBeans install dir
<code>nb/config/Preferences/org/netbeans/core.properties</code>
</api>
</answer>
</api-answers>
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.33Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.