TELKOM
NIKA
, Vol.13, No
.3, Septembe
r 2015, pp. 1
062
~10
6
8
ISSN: 1693-6
930,
accredited
A
by DIKTI, De
cree No: 58/DIK
T
I/Kep/2013
DOI
:
10.12928/TELKOMNIKA.v13i3.1977
1062
Re
cei
v
ed Ma
rch 1
0
, 2015;
Re
vised J
une
5, 2015; Accepted June 2
4
, 2015
Resear
ch and Application of Java Au
to-Configuration
and Deployment Tool Based on XML Metadata
Wu Hailli*, G
ong Renbin, Wang
Congbin
Rese
arch Institute of Petrole
u
m
Expl
orat
i
on
& Devel
opme
n
t
-North
w
e
st, PetroCh
i
na,
No.53
5
Yan
e
r
w
a
n
R
oad, L
a
n
Z
hou, GanSu 7
300
20,
Ch
ina,
Ph./F
ax: +
010-
515
51
230-
88
2
3
/515
51
390
*Corres
p
o
ndi
n
g
author, e-ma
i
l
:
w
u
hl_
x
b@p
e
trochi
na.com.
cn
A
b
st
r
a
ct
With the on-l
i
n
e
an
d acc
epta
n
ce of A1
1
’
s
p
r
oducti
on
ma
n
age
ment syste
m
, the
oper
atio
nal w
o
rk
is bec
om
ing increasingly cr
itical to
managing distributed s
ystem
. Ho
w to ensur
e system
v
e
rsion update
w
o
rk fast, stable
an
d
efficie
n
t, bec
ome
a
n
ur
ge
nt pro
b
l
e
m to
be
so
lved. W
e
des
ig
n a
n
d
i
m
p
l
e
m
en
t
Confi
g
T
ool
w
h
i
c
h is a
a
u
to-c
onfig
uratio
n a
n
d
de
pl
oy
ment
t
ool bas
ed on XML metad
a
ta
impl
e
m
ente
d
by
Java. Co
nfigT
ool r
e
a
l
i
z
e
s
t
h
e aut
o
m
ated
process
e
s of
deco
m
pressi
on
, mo
dificati
on,
co
mpress
io
n
and
dep
loy
m
e
n
t of
packa
ges. In
a
ddito
n, w
e
a
l
s
o
study
a
n
d
o
p
timi
z
e
t
h
e
file
co
mpr
e
ssio
n
alg
o
tith
m w
h
ic
h i
s
used
in
Co
nfi
g
T
ool. T
h
r
oug
h Co
nfigT
o
ol,
oper
atio
nal
w
o
rk can b
e
c
o
me si
mple
a
nd i
m
provi
n
g
w
o
rk
efficiency.
Ke
y
w
ords
:
dis
t
ributed syste
m
, XML, auto-configur
at
ion
and
depl
oy
ment, compresssi
on a
l
gotith
m
Copy
right
©
2015 Un
ive
r
sita
s Ah
mad
Dah
l
an
. All rig
h
t
s r
ese
rved
.
1. Introduc
tion
With the
o
n
-line
an
d a
c
ceptan
ce
of
A11’
s p
r
od
uction
man
a
gement
sy
stem, the
operational
work i
s
b
e
co
ming in
crea
singly critic
al to
mana
ging
distri
buted system. Ho
w
to
ensure
syste
m
version u
p
date wo
rk fast, stabl
e and efficient, become an urge
nt problem to
be
solved. Beca
use of the foll
owin
g rea
s
o
n
s
, we devel
op
ed Co
nfigToo
l
.
Firstly, the distribute
d
syst
em is used
with tens of se
rv
e
r
s som
e
t
i
mes t
hou
s
and
s in
different oilfie
ld, beside
s
confi
guration files a
sso
ciate
d
with sy
ste
m
upgra
d
ing
are di
stribute
d
in
many differe
nt files e
nd
with ”.p
r
op
ert
i
es”,
so
wh
e
n
co
nfigu
r
e t
hese p
r
ofile
s manu
ally wi
ll
inevitably pro
duce errors which a
r
e ha
rd
to find.
Secon
d
ly,
rel
a
tional datab
ase, re
al-t
im
e data
b
a
s
e
and
domai
n
nam
e a
ddress a
r
e
different in dif
f
erent oilfiled.
Config
uratio
n items
lik
e
th
e
s
e
a
r
e
co
un
tle
s
s
.
T
h
es
e c
o
nd
itio
ns
ha
ve
increa
sed th
e mainten
a
n
c
e
worklo
ad,
and the
wo
rk is
nee
ded
to ensure
th
e accu
ra
cy. From
Figure 1 th
e
relation
shi
p
o
f
A11’s p
r
o
d
u
c
tion
m
ana
ge
ment sy
stem,
you can im
a
ge ho
w m
any
config
uratio
n files and item
s they are!
Figure 1. The
relation
ship
of A11proj
ect
Thirdly,
Whe
n
develo
p
e
r
s rele
ase a
ne
w versio
n
of
prog
ram
(wa
r
or j
a
r), it’s
o
n
ly for a
certai
n oilfiel
d
. To deplo
y
this program
to another oilfield, operational
peopl
e have
to
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
930
Re
sea
r
ch an
d Applicatio
n of Java Auto-Config
uratio
n
and De
plo
y
m
ent Tool… (Wu Hailli)
1063
decomp
r
e
ss
this
war or j
a
r, then
find
the rig
h
t
conf
iguratio
n file
s and
modify
the rig
h
t item
s,
comp
re
ssed
all the extra
c
t
ed files an
d
modified file
s into the ta
rg
et wa
r o
r
ja
r
packa
ge
s, finally,
deploy the
target
wa
r/jar pa
cka
ge to
the ap
plicat
ion serve
r
o
f
the targ
et
oilfield. In th
is
operational
work,
de
com
p
ression,
com
p
ressio
n a
nd
d
eployment
are re
petitive work.
While in
the
large
r
se
nse, modify confi
guratio
n file
s is
al
so the
repetitive
wo
rk;
but in th
e micro
-
sco
p
e
,
operational p
eople nee
d
to
unde
rst
and e
a
ch co
nfigura
t
ion file is
wh
at spe
c
ific
def
ined, an
d ne
ed
to find th
e
correct
configu
r
a
t
ion files an
d i
t
ems to
mo
dify. In this
c
ondition, it’s
normal to
maintain
one
config
ura
t
ion files fo
r e
v
ery enviro
n
m
ent of eve
r
y
oilfield. It’s very ea
sy to m
a
ke
mista
k
e
s
by
doing thi
s
, a
nd the
co
st
and o
peratio
nal time
will gro
w
lin
earl
y
along
with
the incre
a
se of
deployme
nt environm
ents.
Soitis of grea
t practi
cal sig
n
ifican
cetoth
e develop a i
n
telligent aut
o-
config
uratio
n and de
ploym
ent tool [1].
There a
r
e
ma
ny co
nfiguration
tool
s
abo
u
t
softwa
r
e
de
velopment
an
d testin
g. Aut
o
co
nfig
Toolkit of WebX whi
c
h
is
T
aob
ao’
s
o
pen
-s
ource
we
b fra
m
ewo
r
k, def
ine the va
ri
able
config
uratio
n items
a
s
a
te
mplate
file, when run
n
ing t
he tool
ca
n g
enerate the
specifi
c
p
r
ofile
s
base on the
corre
s
p
ondin
g
template file [4]. But to
use the to
ols need
s thro
u
gh the comm
and
line o
r
mav
en, it doe
sn’
t
have a
co
unterintuit
ive interface
and it’s
co
mp
lex
t
o
co
nf
ig
ure
Autoconfig it
self. Ansible i
s
an autom
ation op
er
atio
n
manag
eme
n
t tool impleme
n
ted by Python.
It Contain
s
th
e advanta
g
e
s
of a nu
mbe
r
of main
ten
a
n
c
e tool
s
(pu
p
pet, Cfengi
ne
, chef, fun
c
),
but
it is only appl
icabl
e to Linu
x system. Puppet is
a con
f
iguration m
a
nagem
ent tools ba
se o
n
C/S
frame
w
ork.
Whe
n
u
s
in
g t
h
is to
ol, you
have to
Inst
al
l Pupp
et ma
ster o
n
a
central serve
r
, In
stall
the pupp
et client softwa
r
e
on the targ
et host.
Whe
n
the client i
s
co
nne
cted
on the Pupp
et
maste
r
, the configuration files De
fined in
the Puppet maste
r
are compiled, an
d
run o
n
the cli
ent.
If use thi
s
to
ol, its way of comm
uni
cati
on will
affect
the A11’
s p
r
o
ductio
n
ma
na
gement
syste
m
and it’s not a
pplicable for
our sy
stem [2
-3].
Our g
oal i
s
to de
sign a
u
tomation
confi
guratio
n an
d
deployme
nt tool which
co
mpletely
don't o
r
ne
ed
little manual
work. We im
plement
a
u
to
mation
config
uration and d
eployment
to
ol
based o
n
XM
L metadata
with Java. By u
s
ing it
we co
nfigure and d
eploy
every
p
r
og
ram
ve
rsi
on
of A11 ea
sily, and effectively redu
ce
s the sy
st
em op
eration time
and the p
r
ob
ability of makin
g
mistakes,
whi
c
h greatly impr
ove
s
the work effi
cien
cy.
2.
Design a
nd Implementa
tion of Tool
Automation configuration and
d
eploym
ent
tool
(call
ed a
s
Config
Tool),
we d
e
s
ign it
s
pro
c
ed
ures a
s
follows ba
sed on all of o
u
r re
se
arch a
nd the actu
al need
s.
First, sel
e
ct the wa
r/jar p
a
c
kage
(s) (call
ed
A) whi
c
h n
eed(s) to conf
igure a
nd de
p
l
oy.
Secon
d
, rea
d
and pa
rse
the XML configuration template (call
ed B), in which tag
”co
n
ffile” (call
ed C)
corre
s
pond
s tothe name of
the config
uratio
n
file, subtag “conf” u
s
e
s
key-
value pai
rs
to expre
s
s the a
s
soci
ate
d
co
nfig
u
r
ati
on item
s. While K
e
y (calle
d D) i
s
a
config
uratio
n
item’s nam
e in th
e
“.p
r
ope
rtie
s”
co
nfiguratio
n fil
e
, value
(ca
lled E) is t
h
is
config
uratio
n item’s value.
Third, de
com
p
re
ss A, and
find C in the decomp
r
e
s
se
d files, modify D’s value a
s
E in C.
Comp
re
ss all the files as ta
rget wa
r/jar p
a
ckag
e (calle
d F).
At last, deploy F to the tar
get appli
c
atio
n serve
r
.
2.1.
Build and Pa
rse Co
nfigur
ation Templ
a
te
Config
uratio
n
Templ
a
teisa
XML
file
which
contain
s
a la
rge
nu
mber of
conf
iguratio
n
informatio
n,
we
nee
d to e
x
tract the
co
n
f
iguration
file
s, configu
r
ati
on item
s a
nd
the targ
et val
ues
need
ed to mo
dify from the config
uratio
n template.
The XML con
f
iguration tem
p
late is de
sig
ned a
s
follows:
Tag
“lib” indi
cates thi
s
configuration template i
s
for wh
i
c
h oillfiel
d
or
production area.
Tag
“templat
es” in
clud
es
all the
pro
g
ra
m pa
ckage
s
who
s
e
config
uration
files
need
s to
mo
dify.
Each
progra
m
pa
ckage
is a “te
m
plate
”
tag, in
whi
c
h the
“ap
p
”
p
r
ope
rty indi
ca
tes the
nam
e
of
this p
r
og
ram
packa
ge, “typ
e”
pro
perty id
entifie
s th
e type of
enviro
n
m
ent (develo
p
ment, te
st o
r
prod
uctio
n
), “versio
n
” p
r
op
erty spe
c
ifie
s the pr
o
g
ra
m’s versio
n num
ber. The
“src” prop
erty of tag
“co
n
ffile” indi
cate
s whi
c
h confi
guration files of the current pr
og
ram
packa
ge nee
d to modify. T
a
g
“co
n
f” in
dicates
whi
c
h
conf
iguratio
n item
s an
d thei
r
ta
rget valu
es
of the current
configuration fi
le
need to mo
di
fy, in which “key” p
r
op
erty
indicate
s
wh
ich configu
r
at
ion item you
want to modif
y
,
Evaluation Warning : The document was created with Spire.PDF for Python.
ISSN: 16
93-6
930
TELKOM
NIKA
Vol. 13, No. 3, September 20
15 : 1062 – 10
68
1064
“value
” pro
p
e
r
ty indicate
s the
co
rrespon
ding targ
et modified val
ue.
All the tags and prope
rtie
s
mentione
d ab
ove are requi
red.
Figure 2. The
Configu
r
atio
n Template of
ConfigTo
ol
ConfigT
ool a
b
stra
ct ea
ch tag
of the XML file as a cla
ss,
imple
m
en
ts the analysi
s
of XML
Config
uratio
n
Template ba
sed on
JDO
M
, uses t
he
Prope
rties
Cl
ass to achiev
e the readi
ng
and
modifying of the co
nfiguration file.
2.2. Compre
ssio
n
-Decompr
e
ssion
Algorithms
ConfigT
ool
use
s
the A
n
t libra
ry of Java to
complete th
e
decomp
r
e
s
sion
and
comp
re
ssion
operatio
n. In the previo
us algo
ri
thm,
we decomp
r
ess all the files of war/j
a
r
packa
ge, the
n
according
to the analysis result
s o
f
the configu
r
ation templa
te modify th
e
config
uratio
n
items
of co
nfiguratio
n fil
e
s. Fin
a
lly compress
all
the files into target
war/j
a
r
packa
ge.
The optimi
z
e
d
algo
rithmis mainly for t
he
comp
re
ssi
on process,
bec
au
se the
previou
s
algorith
m
is time-con
sumi
n
g
in the comp
ressio
n
pro
c
e
ss. The ta
rget
war/ja
r package is obtai
n
ed
by two
way
s
.
One i
s
for th
e
co
nfigu
r
ation
files
nee
ded
to modify--first decomp
r
e
s
s, then m
odify,
last
com
p
re
ss. Th
e oth
e
r i
s
fo
r all
the remaining files, just
copy t
hese file
s in
t
he
original war/jar
to the target
by the byte
stream. Be
ca
u
s
e th
e nu
mb
er of
all the
remainin
g file
s i
s
far mo
re
than
that of modified co
nfiguration files, so
the effic
i
enc
y
is greatly rais
ed [4-6].
We mad
e
a intercomp
a
ri
son between two algo
rithm
s
. Usi
ng the two algo
rithm
s
make
s
Little differen
c
e onth
e
co
nfiguratio
n time of wa
r p
a
ckag
e. But
they have large vari
ation
s
in
config
urin
g ja
r pa
ckage. B
e
ca
use t
he file stru
ctu
r
e of
jar is mo
re
complicated th
an that of wa
r.
Of cou
r
se, co
py is ea
sie
r
.
By using th
e
optimiz
e
d
alg
o
rithm, the
co
mpre
ssion ti
me of a
com
m
on
jar pa
cket fro
m
initial 1-2
minutes
red
u
c
ed to a few
se
con
d
s.
2.3.
Automa
tic
Deplo
y
ment
ConfigT
ool’
s
automatic
de
ployment fun
c
tion
can be
use
d
se
pa
rat
e
ly, that is, user
ca
n
not u
s
e th
e fu
nction
intro
d
u
c
ed
in l
e
sso
n
2.1 a
nd
2.2.
We
define
a f
l
ag in
Config
Tool, when
u
s
er
u
s
es
th
e p
r
evio
u
s
fu
nc
tion
s
,
fla
g
=
1
, oth
e
r
w
i
s
e
flag
=0. If flag=1, Config
Tool
use
Hu
dson
to
compl
e
te the
automatic
constructio
n
o
f
pac
kage
which i
s
de
co
mpre
ssed in
the automa
t
ic
config
uratio
n
pro
c
e
s
s, th
en de
ploy th
e con
s
tr
u
c
te
d appli
c
atio
n
to the a
ppli
c
ation
se
rver. If
flag=0, user sho
u
ld sel
e
ct
the
p
r
o
g
ra
m
pa
ckage
to
deploy first. I
n
this sectio
n
,
we
use
Hud
s
on
whi
c
h suppo
rts the distrib
u
t
ed con
s
tru
c
ti
on and ab
st
ract the appli
c
ation se
rver console
s
. Figu
re
3 is one of th
e appli
c
ation
serve
r
co
n
s
ol
es’ ab
stra
ct interface [7-9]
.
Figure 4
sho
w
s the
Co
nfigTool’
wh
ole
autom
at
ic d
eployment proce
s
s.
First get
the
prog
ram
pa
ckag
e to
dep
loy, then
sel
e
ct the
ap
plication
serve
r
you
want t
o
de
ploy (e
g:
Tomcat/Web
Sphere), the
n
u
s
e the
Hudson m
a
ke
t
he autom
atic
con
s
tru
c
tio
n
of the
pa
ckag
e,
uploa
d the constructe
d progra
m
to the applicatio
n server, acco
rd
ing to prog
ra
m’s co
nstruct
i
on
stru
cture to d
e
termin
e whe
t
her to d
eplo
y
packag
e
wareh
o
u
s
e [1
0
]. At the sam
e
time, apply
the
resou
r
ce dep
loyment and
agent mid
d
le
ware contai
n
e
r, then d
epl
oy the
appli
c
ation pa
ckag
e,
after a little
while, Config
Tool will retu
rn the
acce
ss add
re
ss a
nd rep
o
rt tha
t
deployment
is
su
cc
es
sf
ul.
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
930
Re
sea
r
ch an
d Applicatio
n of Java Auto-Config
uratio
n
and De
plo
y
m
ent Tool… (Wu Hailli)
1065
Figure 3. The
Abstra
ct Interface of
IBM
W
ebSp
h
e
r
e
Applicatio
n Server
Figure 4. Flow Ch
art of Co
nfigTool’
s
Automatic Deplo
y
ment
3. Resul
t
s
and
Analy
s
is
ConfigT
ool i
s
a
stand
-al
one p
r
og
ram
on aut
o
-
co
nfiguratio
n a
nd de
ploym
ent tool
impleme
n
ted
by Java, re
gard
s
XML f
ile as info
rm
ation rep
o
sit
o
rie
s
, its co
re function i
s
to
automatically com
p
lete th
e configu
r
atio
n proc
ess fro
m
the o
r
igin
a
l
WAR/
WAR
packa
ge to t
he
target one
s. With the experien
c
e of the trial run in
the oilfields of
Petro China,
using Config
Tool
can
smoothly
mana
ge
the
proce
s
s
of
config
urat
io
n
and
de
ploy
ment of
hun
dred
s
of
set
s
of
environ
ment i
n
dozen
s of area
s cu
rrently. Table 1 sho
w
s the
b
a
si
c
prin
ciple of th
e tool:
Table 1. Prin
ciple of Confi
g
Tool
A. O
ilfield’s
paramete
r
librar
y
B. Configuration
template
C. Director
y of
configuration files
D. Tar
get pro
g
ra
m
package
(
E
very
oilfield has
one)
(Ever
y
oilfield ha
s one
w
h
ich includes all the
packages of thre
e
environments)
(corresponding t
o
war/jar
packages’ direct
or
y)
(original package + C)
Librar
y of
Southew
e
st O
ilfield
South
w
est’s template
--A11Web’s director
y
--A11Web_V1.
1.
w
a
r
--A11Se
r
vice’s
director
y
--A11Se
r
vice_V1.2.
w
a
r
--A11S
yncData’s director
y
--A11 S
y
ncData_
V
1.1.
w
a
r
--A11Re
a
lTimeServce’s
-A11RealTimeSe
rvie.w
a
r
Other A
pps’ directories…
Other ve
rsion…
Librar
y of Xinjiang
O
ilfield
Xinjiang’s templa
te
--A11Web’s director
y
--A11Web_V1.
1.
w
a
r
--A11Se
r
vice’s
director
y
--A11Se
r
vice_V1.2.
w
a
r
--A11S
yncData’s director
y
--A11 S
y
ncData_
V
1.1.
w
a
r
--A11Re
a
lTimeServce’s
-A11RealTimeSe
rvie.w
a
r
Other A
pps’ directories…
Other ve
rsion…
Evaluation Warning : The document was created with Spire.PDF for Python.
ISSN: 16
93-6
930
TELKOM
NIKA
Vol. 13, No. 3, September 20
15 : 1062 – 10
68
1066
A rep
r
e
s
ent
s
the pa
ram
e
te
r lib
rary
of oil
f
ield, ea
ch
oil
f
ield ha
s
one
libra
ry. B re
prese
n
ts
the co
nfigura
t
ion template
whi
c
h i
s
co
rre
sp
ondi
ng t
o
one
syste
m
. Its conte
n
ts involve t
he
config
uratio
n
of develop
m
ent, test an
d
pro
d
u
c
tion e
n
vironm
ent. C represents the directo
r
y of
config
uratio
n
files whi
c
h are exactly
correspon
ding
to that of war/jar
pa
ckag
e. D
rep
r
e
s
e
n
ts
target progra
m
packag
e
which
con
s
i
s
ts
of
original p
a
c
kage a
nd th
e files in C.
From left to ri
ght, ConfigT
o
ol automati
c
a
lly generate
deploya
b
le
WAR/JAR pa
ckage.
A
and B can
be edited i
n
the XML/Excel edito
r. C can qui
ckly generate
the app
rop
r
i
a
te
configuration file directory by ConfigTool
. D program will
automatically overwrite the
config
uratio
n files in origi
n
a
l
packag
e
’s
C dire
cto
r
y, an
d get the targ
et deploymen
t
package.
ConfigT
ool
m
a
inly contain
s
fou
r
p
anel
s
whi
c
h
are "
O
rigin
a
l Pa
ckage", "Config
uration
Paramete
rs", "Package", a
nd "Deploy".
Figure 5
sh
o
w
s the "o
rigin
a
l pa
ckage"
p
anel. Sele
ct t
he
path of prog
ram’
s origi
n
a
l
packag
e
in this
panel,
ConfigT
ool can automati
c
ally list all the
packa
ge
s in this path, then
users
can
se
lect t
he pa
ckage
s they wa
nt to
configure and de
ploy.
Figure 5. Con
f
igTool’s "O
ri
ginal Packa
g
e" panel
Figure 6
sho
w
s the "
C
o
n
figuratio
n Pa
ra
meters" p
ane
l. In this pa
n
e
l, sel
e
ct th
e
path
of
config
uratio
n
templates an
d the e
n
viron
m
ent that
the
target
packa
ge to d
eploy,
Config
Tool
can
parse
all the
co
nfiguratio
n template
s i
n
that p
a
th,
and li
st the
result
s. And
according
to
the
environ
ment ConfigT
ool can
ge
nerate the
co
rrespo
ndi
ng
pa
cka
ge. In “Pa
c
kage”
pan
el, click
“pa
c
kage
” b
u
tton, Config
Tool first de
comp
re
ss
th
e origi
nal p
a
ckage
s, an
d
then pa
rse
the
config
uratio
n
template
s,
acco
rdi
ng
to the
anal
ytical results modify the
co
rrespon
di
ng
config
uratio
n items
i
n
confi
guratio
n file
s, finally comp
ress all
the
ori
g
inal
and
mo
dified file
s to t
h
e
target pa
ckag
es. To en
su
re
safety, some
pr
ivate information have
been
covered
in Figure 6.
Figure 6. Con
f
igTool’s "
C
o
n
figuratio
n Param
e
ters" p
anel
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
930
Re
sea
r
ch an
d Applicatio
n of Java Auto-Config
uratio
n
and De
plo
y
m
ent Tool… (Wu Hailli)
1067
Figure 7 sho
w
s the "Package" pan
el. In “Pac
ka
ge”
panel, cli
ck
“start pa
ckage
” button,
ConfigT
ool first de
comp
re
ss the o
r
igin
al
packa
ge
s, an
d then pa
rse
the co
nfiguration template
s,
according to t
he analytical results mo
dify the co
rre
s
p
ondin
g
co
nfig
uration item
s
in config
urati
on
files, finally compress all the origi
nal
an
d modified files to the targ
et packag
e
s.
Figure 7. Con
f
igTool’s "Pa
c
kag
e
" panel
Figure 8
sh
o
w
s the "
D
epl
oy" panel. In
this p
anel
,
se
lect the type
of appli
c
ation
se
rver,
Fill in the
server IP, user nam
e, password, and th
e deployment path, Confi
g
Tool
will
use
Hud
s
o
n
to automatically
build the targ
et
package
a
nd uploa
d it, and then ca
ll the approp
riate
appli
c
ation
se
rver’
s
ab
stra
ct class to com
p
lete
the auto
m
atic depl
oyment
of the target pa
ckage.
Figure 8. Con
f
igTool’s "
D
e
p
loy" panel
Usi
ng
Config
Tool
can
sol
v
e the op
era
t
ion and
mai
n
tenan
ce
pro
b
lems, fo
r th
e A11
proje
c
t, simp
lify the configuratio
n and
deployment
work of A11 system in
all oilfields of
PrtroChina, e
ffectively red
u
ce the e
r
ror
rate
and co
nfiguratio
n-depl
oyment
time, greatly impro
v
e
the wo
rk
effici
ency, an
d the
tool is ea
sy to use.
Table
10 sho
w
s the
effect of co
ntrast b
e
fore a
n
d
after the appli
c
ation of Con
f
igTool.
Table 2. The
effect of contrast befo
r
e an
d afte
r the ap
plicatio
n of ConfigTool fo
r A11 proj
ect
Configuration
an
d
Development Ti
me
No. of Ope
r
ation and
Maintenance Sta
ff
Trainging
Ti
me
Error Rate
before
1-2da
y/version
5-10
1h/person
70%
After
15min/version
1-2
0
10%
For A11 proj
ect, before th
e application
of Conf
igTo
ol, every version of every
oilfield’s
prog
ram
(in
c
lude
s 4 war packa
ge
s a
nd 10 ja
r p
a
ckag
es) ne
eds to d
e
co
mpre
ss, mod
i
fy
config
uratio
n
files, com
p
re
ss
and th
en
deploy to the
serve
r
, in th
e ca
se
of ze
ro error
rate, t
h
is
process
will take 1-2 days
for each versi
on, if an e
rror occurs, this will last
longer, usually about
Evaluation Warning : The document was created with Spire.PDF for Python.
ISSN: 16
93-6
930
TELKOM
NIKA
Vol. 13, No. 3, September 20
15 : 1062 – 10
68
1068
one wee
k
. While u
s
ing
ConfigT
ool o
n
ly spen
ds 1
5
minutes
wi
th nearly ze
ro error rate. The
numbe
r of op
eration a
nd
maintena
nce person
nel fr
o
m
1-2 pe
rson
(s) from ea
ch
oilfield redu
ces
to 1-2 pe
rson
(s) for all the
oilfields. After usi
ng Con
f
igTool, not only redu
ce th
e error rate, but
also
do
n’t’ ne
ed trai
ning
time. Becau
s
e
ope
ration
an
d mainte
nan
ce pe
rsonn
el
are
not
req
u
ired
to unde
rstan
d
the relatio
n
shi
p
an
d m
eanin
g
of ea
ch p
a
cka
ge
and
config
uration file. M
o
re
importa
nt, Co
nfigTool
appli
e
s to
the
con
f
iguration
an
d de
ployment
of all
J2EE
proje
c
ts,
it h
a
s
broa
d appli
c
a
t
ion pro
s
pe
ct
s, use
r
s h
a
ve to do is just writing a co
nfiguratio
n template for ea
ch
packa
ge in a
c
cord
an
ce wit
h
the format whi
c
h intro
d
u
c
ed e
a
rlie
r.
4.
Conclu
sion and Further
Stud
y
From
all o
u
r
work
we
can
see, XM
L
co
nfiguratio
n te
mplate
contai
ns
a la
rge
nu
mber of
proje
c
t’s conf
iguratio
n info
rmation.
Usin
g Config
To
ol
ca
n effe
ctively red
u
ce th
e configu
r
ati
on
and deploym
ent time of maintena
nce st
aff, also help
reduce the
error
rate by av
oiding manually
cha
nge the
config
uratio
n
file, and improve the
work effici
en
cy. To fix the
time-con
sumi
ng
chall
enge fo
r the comp
ression
pro
c
e
ss,
we d
e
scribed
a hig
h
l
y-available
algorith
m
. The
improvem
ent
of the deco
m
pre
s
sion p
r
oce
s
s’s al
gor
ithm is more
pra
c
tical tha
n
ever, and m
a
ke
ConfigT
ool’
s
interface more use
r-f
riendl
y is also impo
rtant.
Referen
ces
[1] Guo
An.
Study
of Softw
are Config
uratio
n M
ana
ge
me
nt Ap
plye
d in Pro
j
ec
t Develo
p
m
e
n
t
. 6
th
Nationa
l
Confer
ence
on
Computer Ap
p
licatio
n.
Beij
in
g
,
China. 20
02;
3: 1082-
10
84.
[2]
Dian
x
i Sh
i, Bo Din
g, W
e
i
Cui, Yimi
ng Z
han
g,
Hua
i
mi
n
W
ang. Res
e
arch
a
nd Impl
ementati
on
of
Depl
o
y
me
nt an
d Co
nfig
uratio
n T
ool
for Li
gh
t-
w
e
ig
ht Comp
one
nts.
Co
mp
uter Scie
nce
. 2
011; 0
6
: 16
5
-
168.
[3]
Z
hang Y
i
min
g
,
Shi D
i
an
xi, D
i
ng B
o
, Yin G
ang.
R
e
se
arch
and I
m
ple
m
e
n
tation
of De
p
l
oy
me
nt an
d
Confi
gurati
on
T
ools for Per
v
asive C
o
mp
u
t
ing Mid
d
l
e
w
a
re
. 4
th
Jiont C
onfere
n
ce o
n
Harmon
i
o
u
s
Huma
n Machi
n
e Enviro
nment
.
W
uhan, Chi
n
a
.
2008; 1: 574-
580.
[4]
Pham D
u
c-So
n, Venk
atesh
Svetha. Effic
i
ent
Al
gor
ithm
s for Ro
bust
Recov
e
r
y
of
Images from
Compress
ed Data.
IEEE Transactions o
n
Image Proc
essin
g
.
2013; 4
1
(6): 221
2-22
21.
[5]
BL Kess, DR
Stein
w
a
nd, SE
Reic
hen
bac
h. Comp
r
e
ssio
n
of the Glob
al
Lan
d 1-km AV
HRR D
a
taset
.
Internatio
na
l Journ
a
l of Re
mote Sensi
n
g
. 1
996; 39(
2): 171
5-17
23.
[6]
Hach F
a
r
a
z, Numa
nag
ic Ib
rahim, Alk
an
Can, Sa
hi
nal
p
S Cenk. S
C
ALCE: Boosti
ng Se
qu
enc
e
Compress
io
n Algorit
hms
Us
ing Loc
all
y
C
onsiste
nt
Enc
odi
ng.
Oxford
Journ
a
l
of Scienc
e a
n
d
Mathem
atics
. 2
012; 21(
4): 282
3-28
30.
[7]
Lin
Bo, Z
h
ou
Min
ghu
i, L
i
u
T
i
anche
ng,
Hua
ng G
ang,
Mei
Ho
ng.
A W
eb
Co
nta
i
ner
Integr
atio
n
F
r
ame
w
ork in
J2EE Appl
icati
on Servers.
Jo
urna
l of Softw
ar
. 2006; 17(
5): 119
5-12
03.
[8]
Li Bing
pe
ng, Sun Ch
ang
qi,
Lan Yan
g
. Method of So
ft
w
a
re Intel
l
i
g
e
n
t Depl
o
y
m
ent
.
Journal of
Co
mp
uter Appl
icatio
ns
. 200
9; 01: 248-
25
2.
[9]
Z
hang Yu
an, Z
han
g Yun
y
o
ng,
F
ang Bing
yi.
An Auto
mate
d Depl
o
y
me
nt Architecture of Cl
oud S
y
ste
m
Based on Workflo
w
.
T
e
l
e
co
mmu
n
ic
ations Sc
ienc
e.
201
4; 11: 14-21.
[10]
Z
hao T
i
anqi. A
u
tomatic De
plo
y
me
nt and R
e
s
ources
Al
locati
on of W
eb App
licatio
n in C
l
o
u
d
Comp
utin
g
Enviro
nment. Harbi
n
Institute
of
T
e
chnolo
g
y
. 2014.
Evaluation Warning : The document was created with Spire.PDF for Python.