model-based approaches and a novel way to develop management tools state mgmt api runtime model...
TRANSCRIPT
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
Specification and generation
System
Mgmt API
Runtime Model
AdapterMOF Reflection Interface
SystemMeta-Model
AccessModel Specification
automatically generates
conformstospecified
as
raw code
function
scope
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:
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;}
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
Runtime Model
Management API
Running System
synchengine
System Meta-Model
Access Model
Generatorgenerates
conforms to
Planner
Model Observer
Model Effector
Model Proxy Relationship Database
Conflict Handler
System Observer
System Effector
System Proxy
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
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
(a) (b) (c) (d)