model-based approaches and a novel way to develop management tools state mgmt api runtime model...

17

Upload: emerald-hicks

Post on 13-Dec-2015

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access
Page 2: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access
Page 3: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

Model-based Approaches and

A novel way to develop management tools

State

Mgmt API

Runtime Model

Adapter

MOF Reflection Interface

StateMeta-Model

AccessModel

specify

model-based manage

SM@AT Language

SM@AT Generator

Model-based Approaches and Techniques

automatically generate

use as areference operate

Page 4: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

Specification and generation

System

Mgmt API

Runtime Model

AdapterMOF Reflection Interface

SystemMeta-Model

AccessModel Specification

automatically generates

conformstospecified

as

Page 5: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

raw code

function

scope

Page 6: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access
Page 7: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access
Page 8: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

11 11-1 11-2 11-3

15 15-1 15-2 15-3

16 16-1 16-2 16-3 16-4 16-5

17 17-1 17-2

4:

11-2:

5:

Page 9: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

1 2 3 4 5 6 7 8 9 10 11 12 13

10 10-1 10-2 10-311 11-1 11-2 11-3 11-4 11-512 12-1 12-2

4:Management mgmt= $meta::package.getMainEntry();try{10-2: Object res=mgmt.getAttribute( $sys::this, $meta::prpt_name) $sys::result= ((Integer)res).intValue();5:}catch(Exception e){ e.printStackTrace(); $sys::result=null;}

Page 10: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

server_imgOCL interpreter list

datasource_imgcore=“…hsql..”

eGet(“jdbcDataSource”) refreshlistSub(“entityBean”)

listSub: [“…hsql”]create(“…user…”)

add(datasource)refresheGet: listget(0)

get: datasourceeGet(“currentOpened”)

getCurrentOpened()

eGet: 5

The Adapter

Page 11: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access
Page 12: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

Runtime Model

Management API

Running System

synchengine

System Meta-Model

Access Model

Generatorgenerates

conforms to

Page 13: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

Planner

Model Observer

Model Effector

Model Proxy Relationship Database

Conflict Handler

System Observer

System Effector

System Proxy

Page 14: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

In-m

em

ory

mo

de

l

Mo

de

l li

ste

ne

rM

od

el

pro

xy Planner

Mapping pool

Exception catcher

Mg

mt

AP

I

Ru

nn

ing

S

ys

tem

Sy

ste

m p

rox

y

1

2

3

4

3

5

Page 15: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access
Page 16: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

context

WifiManager

ActivityManager

WirelessPKU CCMC

Synchronizer

meta-model of runtime data

Specification of API

define

SM@RT

generates

inputs

as reference

conforms to

manipulate runtime data using OCL

RM providerRM consumer

Page 17: Model-based Approaches and A novel way to develop management tools State Mgmt API Runtime Model Adapter MOF Reflection Interface State Meta-Model Access

(a) (b) (c) (d)