UML 类图
2019-03-15 13:15:51 0 举报
数据库架构 UML 类图
作者其他创作
大纲/内容
HTTP Server
+ address: string
+ init(): void+ onEvents(event: any): void+ action(request: object): string
Database Server
+ address: string+ pool: ConnectionPool
+ action(request: object): string+ init(): void+ onEvents(event: any): void+ sendTo(server: address): void+ destory(): void
Connection Pool
+ pool: Connection[]
+ init(): void+ getConnection(): Connection+ returnConnection(con): void+ query(statement: string): any[]- destory(): void
Connection
+ con: Connection+ id: number+ usable: boolean
+ init(): void+ query(statement: string): any[]+ destory(): void
Session Pool
+ pool: Session[]+ redis: RedisDatabase
+ init(): void- addSessionn(session): Session- removeSession(session): void- destory(): void
Session
+ id: number
Business Server
+ address: string+ udp: UDPServer+ http: HTTPServer
+ init(): void+ destory(): void
UDP Server
+ action(request: object): string+ init(): void+ onEvents(event: any): void+ sendTo(server: address): void
UDP Socket
+ bind(port: number): void+ init(): void+ on(event: Event): void
Session Server
+ address: string+ udp: UDPServer+ pool: SessionPool
Net Socket
+ init(): void+ on(event: Event): void+ listening(port: number): void
Dispatch Server
+ address: string+ udp: UDPServer
0 条评论
下一页
为你推荐
查看更多