Diapositiva 1 - (ARCOS), UC3M

MASIPE
Mobile Agent Systems Integration into Parallel Environments
How does it work?
user@c200:~/masipe/bin/naming-service$ ./naming-service.sh
[naming-service.sh][tnameserv][Running 'Corba naming' service in 'Mobile agent system
integration into parallel environment' system ...]
Initial Naming
Context:IOR:000000000000002b49444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746
578744578743a312e300000000000010000000000000096000102000000000a3132372e302e302e31002328000000
45afabcb00000000202cd8bcef00000001000000000000000200000008526f6f74504f41000000000d544e616d655
365727669636500000000000000080000000100000001140000000000000200000001000000200000000000010001
Parallel
environment
user@c300:~/masipe/bin/register$
./register.sh
00000002050100010001002000010109000000010001010000000026000000020002
TransientNameServer: setting port for initial object references to: 9000
[Thu
Feb 22 09:23:33 CET 2007][Register][main][Running 'Register' service in 'Mobile agents
Ready.
systems integration into parallel environments' system ...]
[Thu Feb 22 09:23:34 CET 2007][Register][main][Initing ORB ...]
[Thu Feb 22 09:23:34 CET 2007][Register][main][Getting RootPOA reference ...]
[Thu Feb 22 09:23:34 CET 2007][Register][main][Creating a servant ...]
[Thu Feb 22 09:23:34 CET 2007][Register][main][Activating object ...]
Agent
system
N-1
[Thu Feb
22
09:23:34
CET 2007][Register][main][Getting servant object reference ...]
user@c500:~/masipe/bin/control-unit$
./control-unit.sh
[Thu Feb 22 09:23:34 CET 2007][Register][main][Getting
naming context
reference ...]
CORBA naming service
[Thu Feb 22 09:23:34 CET 2007][Register][main][Binding remote object into naming context ...]
[Thu Feb 22[Thu
09:23:36
2007][ControlUnit][ControlUnit][Running
'Control
Unit' service
in 'Mobile agents
Feb 22CET
09:23:34
CET 2007][Register][main][Activating
POA Manager
...]
systems integration
into
parallel
environments'
system
...]
[Thu Feb 22 09:23:34 CET 2007][Register][main][Waiting for request ...]
[Thu Feb 22[Thu
09:23:36
2007][MafFinderClient][MafFinderClient][Initing
Feb 22CET
09:23:34
CET 2007][Register][main][Running ORB ...]ORB ...]
[Thu
Feb
22
09:23:36
CET
2007][MafFinderClient][MafFinderClient][Getting
Root POA reference ...]
user@c400:~/mpi-program$ ./execute
[Thu Feb 22 09:23:37 CET 2007][MafFinderClient][MafFinderClient][Getting MAFFinder reference ...]
[Thu
Feb 22 09:23:37 CET 2007][ControlUnit][ControlUnit][Creating
MAFFinder client ...]
Running
/home/user/mpi-program/execute
on 7 LINUX ch_p4 processors
Agent CET
system 2007][ControlUnitServer][init][Initing
1
[Thu
Feb
22
09:23:37
ORB
...]
Registry service
c400
[Thu
Feb
22
09:23:37
CET
2007][ControlUnitServer][init][Getting
RootPOA
reference ...]
c401
c402 [Thu Feb 22 09:23:37 CET 2007][ControlUnitServer][init][Creating a servant ...]
[Thu Feb 22 09:23:37 CET 2007][ControlUnitServer][init][Activating object ...]
403
object reference ...]
c404 [Thu Feb 22 09:23:37 CET 2007][ControlUnitServer][init][Getting servant
Control unit
[Thu
Feb
22
09:23:37
CET
2007][ControlUnitServer][init][Getting
naming
context
reference ...]
c405
Agent
system Ninto naming context ...]
[Thu
Feb
22
09:23:37
CET
2007][ControlUnitServer][init][Binding
remote
object
c406
[Thu Feb 22 09:23:37
CET 2007][ControlUnitServer][init][Activating POA Manager ...]
Agent system 0
…
[Thu Feb 22 09:23:37 CET 2007][ControlUnitServer][init][Waiting for request ...]
[Thu Feb 22 09:23:37 CET 2007][ControlUnit][ControlUnit][Creating MAFAgentSystem server ...]
[Thu Feb 22 Stopped
09:23:37 CET 2007][ControlUnitServer][run][Running ORB ...]
[Thu Feb 22 Running
09:23:37 CET 2007][ControlUnit][ControlUnit][Registering MAFAgentSystem server into Register
service ...]
[Thu Feb 22 09:23:40 CET 2007][FrameFactory][createFrames][Creating frames ...]
Running processes
Running agent systems
Parallel environment
Agent systems request the
location of the registry
Agent
systems
service
to theregister
CORBA in
thenaming
registry
service
service
Agent system N-1
CORBA naming service
Agent system 1
Registry service
Control unit
Agent system N
Agent system 0
Running
Running a mobile agent
Parallel environment
The control unit requests
The
unit
sends
the
thecontrol
location
of0 the
first
Agent
system
registers
mobile
agent
to
first
agent
system
in the
the
The
agent
executes
Agent
system
0path
themobile
mobile
agent
in
the
in the path
a unregisters
setnode
of
operations
in
the
mobile
registry service the
agent in node
the registry
service
Agent system N-1
CORBA naming service
Agent system 1
Registry service
Control unit
Agent system N
Agent system 0
Running
Agent system 0 requests
Agent
systemof0 the
sends
the
the location
agent
Agent
system
1
registers
mobile
agent
toexecutes
agent
system
1agent
in
the
path
The
mobile
the
mobile
agent
in the
system
1
in
the
path
Agent
system
1
unregisters
a setregistry
of operations
in the
service
the mobile
agent
in
the
node
registry service
Visiting nodes
Parallel environment
Agent system N-1
CORBA naming service
Agent system 1
Registry service
Control unit
Agent system N
Agent system 0
Running
Agent system 1 requests
Agent
system 1of
sends
the
the
location
agent
Agent
system
N-1
mobile
agent
to
agent
system
N-1
in
the
path
The
mobile
agent
executes
Agent
system
N-1
registers
the
mobile
agent
system
N-1
in
the
path
a unregisters
set
of
operations
in
the
the
mobile
in the registry service
agent in node
the registry
service
Visiting nodes II
Parallel environment
Agent system N-1
CORBA naming service
Agent system 1
Registry service
Control unit
Agent system N
Agent system 0
Running
Agent system N-1 requests
Agent
system
the
location
ofN-1
the sends
agent
the
mobile
agent
to
agent
system N in the path
system N in the path
Returning home
Parallel environment
Agent system N-1
CORBA naming service
Agent system 1
Registry service
Control unit
Agent system N
Agent system 0
Running
Getting results
Parallel environment
Agent system N-1
CORBA naming service
Agent system 1
Registry service
Control unit
Agent system N
Agent system 0
Running
MASIPE 2007