Listing 4 shows the output from the run method.
清单4给出run方法的输出。
Whenever a user selects Open from a menu bar, the run method on line 13 executes.
每当用户从菜单栏选择“open…”时,都要执行第13行上的run方法。
It applies to all of the other IBM Cognos 8 services that implement the run method.
它适用于所有其他实现run方法的IBMCognos8服务。
I simply create an instance of GroovyShell, pass in the script name, and call the run method.
我只是创建了GroovyShell的实例,传递进脚本名称,然后调用run方法。
In the MessageSender's run method, it USES the ServletResponse to send data back to the client.
在MessageSender的run方法中,它使用ServletResponse将数据发送回客户机。
Additional blocks of code after the run method may be required to handle long running reports.
可能需要run方法后的其他代码块处理长期运行的报告。
When the user clicks the Acronym Expander button, the run method of the preceding class is invoked.
当用户单击Acronym Expander按钮时,将调用前述类中的run方法。
This thread is created by the primordial thread, which executes the run method containing a for loop.
此线程由原始线程创建,后者执行包含for循环的run方法。
So the run method of this object keeps on executing until the contextDestroyed variable is set to true.
因此,这个对象的run方法将继续执行,直到将 contextDestroyed变量设置为 true 为止。
Begin by opening the class that displays the Hello World message, SampleAction, and note its run method.
首先打开显示“Hello,World”消息的类SampleAction,请注意其run方法。
The MessageServer run method, shown in Listing 4, establishes an infinite loop to wait for a client connection.
清单4中显示的MessageServer run方法建立了一个无限循环以等待客户机连接。
As with the Work interface, this class extends Runnable, and Timer invokes the run method at the appropriate times.
同使用Work接口时一样,这个类扩展了Runnable,而且Timer会在适当的时间调用run方法。
It implements the run method of the Runnable interface and USES a thread to check if it is time to start making coffee.
它实现了Runnable接口的run方法并使用线程来检查是否该开始煮咖啡了。
The code in Listing 9 instantiates a Python desktop application and then starts the desktop by calling the run method.
清单9中的代码实例化一个Python桌面应用程序,然后通过调用run方法启动桌面。
The application server then associates this transaction with the thread of execution before calling the work object's run method.
然后应用服务器会在调用工作对象的run方法之前把这个事务与执行线程关联起来。
TestCaller is templatized with this class and, as in the case of TestRunner, you make a call to the run method for test execution.
用这个类对TestCaller 进行模板化,与使用TestRunner 时一样,通过调用run方法执行测试。
The only thing of importance to note in the run method is that self.getName() is a method that will identify the name of the thread.
在这个run方法中唯一要注意的是,self.getName() 是一个用于确定该线程名称的方法。
This might not seem like a particularly useful thing to do — isn't it exactly what would happen if you invoked the run method directly?
这看起来可能不是特别有用——这不就是直接调用run方法时发生的事情吗?
Not surprisingly, the run method contains the code I wrote to create new instances of those objects and the main method calls the run method.
不用惊讶,run方法包含我编写的、用来创建这些对象的新实例的代码,而main方法则调用run方法。
That means you should implement the run method of IPlatformRunnable, which is responsible for creating the SWT display and starting up a workbench.
这意味着您应该实现IPlatformRunnable的run方法,负责创建SWT显示和启动工作台。
The pattern has been easy enough: instantiate an object of type TextTestRunner, add tests and the outputter to it, and then invoke the run method.
这种方式非常简便:实例化一个TextTestRunner类型的对象,在其中添加测试和输出器,然后调用 run 方法。
Although the TimerTask's run method is invoked on a new thread, this thread has been allocated by the JVM and is out of the application server's control.
虽然TimerTask的run方法是在新线程中调用,但是这个线程是JVM已经分配的线程,处于应用服务器的控制之外。
The class ThreadClass inherits from threading.Thread and because of this, you need to define a run method that executes the code you run inside of the thread.
类ThreadClass继承自threading . thread,也正因为如此,您需要定义一个run方法,以此执行您在该线程中要运行的代码。
If the report output is not ready after this amount time, the run method will complete and the IBM Cognos 8 SDK application will continue on with processing.
如果报告输出在这个时间段之后仍未就绪,run方法将完成,IBMCognos8SDK应用程序将继续进行处理。
The run method on this class is final so that derived classes cannot use it to specify their logic. Instead, you should override the following method so that it contains the logic for the thread.
此类的run方法是final类型,因此派生类不能使用它指定自己的逻辑。
As you'll recall, when you invoke the run method on an instance of Parallel, it creates (n-1) threads to run the first (n-1) CSProcess instances and runs the last CSProcess instance on its own thread.
您会想起前面介绍过,在您调用Parallel实例上的run方法时,它创建了(n - 1)个线程来运行前面(n - 1)个CSProcess实例,然后在自己的线程中运行最后一个CSProcess实例。
This interface processes various requests in the handler?s thread of control using a run() method.
该接口使用run()方法在处理程序的控制线程中处理各个请求。
The RunMailRules class contains a run() method; this is where your code gets called when the button is clicked.
RunMailRules类包含一个run()方法;这就是单击按钮时调用代码的地方。
The privileged AccessControlContext is saved internally by the runtime and the run() method of the PrivilegedAction object is executed.
运行时在内部保存privileged AccessControlContext并执行 PrivilegedAction对象的run()方法。
For example, with my test, I'll first call the getDefinition() method and then provide an implementation of a Timer's run() method.
以我的测试为例,我将首先调用getDefinition()方法,然后提供一个Timer的run() 方法的实现。
应用推荐