mingyi's profile大头的空间PhotosBlogListsMore ![]() | Help |
|
November 19 The Boss Man: ActionInvocation The most import object in Struts2 Framework is ActionInvocation, It almost controlled the whole process of Strusts2 from request to action workflow. The most mysterious part in ActionInvocation is the recursion. Below is the sample code for the process of ActionInvocation: Request comes=======>Decide which Action to fire ====> Instantiate a new ActionInvocation ======>>put all request objects , intercptors, actions into this object====> Inside the ActionInvocation: invoke(){ global variable state: decide which interceptor goes; if( hasInterceptor ){ call interceptor; interceptor( ActionInvocation actioninvocation){ do some preprocessing; actioninvocation.invoke(); do some postprocessing; return result; } } else { Action action = actioninvocation.getAction(); action.execute(){ call some business logics; return result; } } } November 18 Everything is service Cloud Software as a Service (SaaS). The
capability provided to the consumer is to use the provider’s
applications running on a cloud infrastructure and accessible from
various client devices through a thin client interface such as a Web
browser (e.g., web-based email). The consumer does not manage or
control the underlying cloud infrastructure, network, servers,
operating systems, storage, or even individual application
capabilities, with the possible exception of limited user-specific
application configuration settings.
Cloud Platform as a Service (PaaS). Platform as a service refers to providing a virtual computing platform to the user. Computing platform is a term that has typically referred to the hardware and operating system required to support computing. In recent years with the introduction of virtual machines, the term has been expanded somewhat to include virtual machines as well as hardware. With Platform as a Service the consumer is able to deploy their own applications, sometimes purchased and sometimes developed in the programming languages, APIs, sandboxes and other tools supported by the provider. Cloud platform services are not tied to a particular piece of hardware or operating system, so most providers support programming languages that can easily be moved from platform to platform, such as Java, Python, Perl, PHP and .Net). Because PaaS is a support layer for the Software as a Service, database services are provided within this set of services. Although the consumer does not manage or control the underlying virtualization system, network, servers, or storage, the consumer has the ability to provide their own “gold” image of the operating system and they may have some control over other application hosting environment configurations. Cloud Infrastructure as a Service (IaaS). With IaaS, the user is allowed to interact with the infrastructure, although the functions required to provide the infrastructure are abstracted, provisioned by the service provider. Services typically included at this level provide the user with the ability to acquire processing, storage, networks, and other fundamental computing resources, although the actual implementation is generally performed by the service provider and governed by contractual vehicles such as Service Level Agreements. Consumers are able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over their instance of operating systems, storage, deployed applications, and possibly select networking components (e.g., firewalls, load balancers). November 10 哎....怀揣着理想在外闯荡
孤独的灯光陪我在小巷 November 07 经典1.现在女人真伟大。不知不觉肚子大、有了孩子没有爸! November 02 安全变换车道变换车道前,通过室内外后视镜,按顺序认真确认是否安全。
*行车路线向右侧变更时 ①通过室内后视镜确认后方。
②用右后视镜确认右后方。
③用眼睛直接观察右侧(后视镜盲区)。 *行车路线向左侧变更时 ①用室内后视镜确认后方。 ②用左侧后视镜确认左后 方。 ③用眼睛直接观察左侧(后视镜盲区)。
四轮汽车的死角很多,单靠后视镜判断安全是不够的,还应该用眼睛直接确认安全,这也是非常重要的。但是应该迅速确认。 2.变换车道时的信号 提前打开转向灯,以便提醒其他车辆。 3.变换车道的顺序 变换车道时应该留有余量,缓慢转向。
|
|
|