第五章 servlet容器
第 5 章讨论 container 模块。container 指的是 org.apache.catalina.Container 接口,有4 种类型的 container:engine, host, context 和 wrapper。这章提供了两个工作于 context 和wrapper 的程序。
容器共分四类,类图如下:
一个wrapper就是一个serv...
分类:
其他好文 时间:
2014-11-03 19:31:04
阅读次数:
289
function Map() //自定义map{ this.container = new Object();}Map.prototype.put = function(key, value){ this.container[key] = value;};Map.prototype.ge...
分类:
Web程序 时间:
2014-11-03 16:12:18
阅读次数:
280
开篇介绍Precedence Constraint 优先约束 - 在控制流中使用,用来链接控制流中各种 Task,Container,并且要求满足一定的条件才能执行相关联的 Task 或者 Container。 比如下图中,第一个 Execute SQL Task 叫做 Precedence-Exe...
分类:
其他好文 时间:
2014-11-02 23:58:05
阅读次数:
436
#include "stdafx.h"
#include
#include
#include
#include
#include
#include
#include
/*
标题:boost.Multi_Index库的使用
功能:类似std::map的容器,但是可以用多个关键词索引数据
描述:boost::multi_index::multi_index_container为容器...
分类:
其他好文 时间:
2014-11-02 09:19:12
阅读次数:
305
题目:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints ...
分类:
编程语言 时间:
2014-10-30 07:09:03
阅读次数:
274
Kubernetes是Google开源的容器集群管理系统。它构建于docker技术之上,为容器化的应用提供资源调度、部署运行、服务发现、扩容缩容等整一套功能,本质上可看作是基于容器技术的mini-PaaS平台。本文旨在梳理Kubernetes的架构、概念及基本工作流,并且通过运行一个简单的示例应用来介绍如何使用Kubernetes。...
分类:
Web程序 时间:
2014-10-30 01:55:32
阅读次数:
284
$.extend($.fn.datagrid.defaults.editors, {textarea: {//textarea就是你要自定义editor的名称 init: function(container, options){ var me = this; va...
分类:
其他好文 时间:
2014-10-30 01:34:39
阅读次数:
211
APCS 全称:ARM 过程调用标准如果要写用来与编译后的 C 连接的汇编代码,则必须使用 APCS。 今天的课程最终的两个目标:使用符合APCS标准的汇编写输出hello world 以及编写container_of宏 。这两个的推导过程比较复杂和具有跳跃性。结论的话要记住两个知识点,一:编...
分类:
其他好文 时间:
2014-10-29 21:22:21
阅读次数:
185
1. 从 container 到 主机(host)使用 docker cp 命令 docker cp :/file/path/within/container /host/path/target2. 从 主机(host) 到 containerGet container name or short....
分类:
其他好文 时间:
2014-10-29 19:14:24
阅读次数:
204
生产者类:publicclassProducer{ArrayListcontainer=null;//得到一个容器publicProducer(ArrayListcontainer){this.container=container;}//定义一个生产物品的方法装入容器publicvoidProduct(stringname){//创建一个新物品装入容器Goodsgoods=newGoods();goods.Name=name;this..