让我们查看一个利用清单2中所示的数据访问代码的简单应用程序。
Let's look at a simple application that leverages the data-access code shown in Listing 2.
EJB截取程序是我接下来要论述的几个基于截取的插装示例的第一个,借鉴了清单1中查看的跟踪方法。
EJB interceptors are the first of several examples of interception-based instrumentation that I'll discuss next, drawing on the same tracing methods I reviewed in Listing 1.
如果主机是已知的,但是用户抱怨这个主机本身或它上面运行的应用程序没有响应,那么使用ping并查看数据包丢失率是否为0%(见清单6)。
If a host is known but you find that users are complaining that the host itself or an application running on it isn't responding, use ping and look for 0% packet loss (see Listing 6).
清单3展示了与上面介绍的内容相同的收视率程序清单(实际上,是与清单2相同的XML,在这里再次给出只是为了使您便于查看)。
Listing 3 shows the same TV listings as detailed above (this is, in fact, the same XML as in listing 2, reprinted for your convenience).
而且我们必须记得使树查看器使用这个标签提供程序,如清单7所示。
And we have to remember to make the tree viewer use this label provider, as shown in Listing 7.
第一步是学习如何查看提供给应用程序的关于数据库遇到的错误的信息,见清单4。
The first step is to learn how to view the information provided to your application about the error encountered by the database, as shown in Listing 4.
清单5改进了清单4来提供更好的交互性,允许用户在应用程序中输入搜索关键字,并查看匹配该搜索术语Wikipedia页面。
Listing 5 improves Listing 4 to make it more interactive, allowing a user to enter a search term in the application and see Wikipedia pages matching that search term.
例如,如果查看RAP(参见清单2)和RCP(参见清单3)中的工作区顾问程序(workbench advisor)代码,则会看到相似的代码和导入包。
For example, if we look at code for the workbench advisors in RAP (see Listing 2) and RCP (see Listing 3), we notice similar code and imported packages.
找到输出文件之后,可以通过hadoop- 0.20实用程序使用cat命令查看数据(见清单7)。
You can use the cat command (after finding the particular output file) through the hadoop-0.20 utility to emit this data (see Listing 7).
你可以使用这个程序清单来查看歌歌机器。
你可以使用这个程序清单来查看歌歌机器。
应用推荐