Home » Modeling » UML2 » Deployment Diagram (Dazed and confused)
|Deployment Diagram [message #496141]
||Sun, 08 November 2009 22:47
| Paul Murray
Registered: November 2009
Ok. I am at ANBG and there's servers all over the place. There's IP adresses, there are firewalls, we have environments, a couple of different boxes, some different versions of java, a couple of source code repositories ... etc.|
So. It seems that a deployment diagram is the way to go. And eclipse has some free tools for drawing diagrams. No worries.
And I can't get past step 2. (step 1 is downloding the EMF/UML tools and creating a project).
The first thing I need to draw is that we have some ip adresses and some host names. So I created a package named "types", and three types "addr", "hostname" and "ipaddr". Now - these were created as primitive types. Is that right or wrong? I couldn't see any way to explain that these were strings with a particular format, although I did manage to explain that "hostname" and "ipaddr" were subclasess of "addr".
Anyway. I then attempted to make a type "url", with properties addr, port, path, name, querystring and fragment. Then I tried to explain that "host" should be of type "addr". Got nowhere - no combination of clickang and dragging seemed to do the job.
So I backtracked. A "URI" has a "protocol" and a obaque bit. The protocol is an enumeration (http, https, ftp, urn). A "httpaddr" is a uri where the protocol is set to the contant "http" and the "opaquebit" is reimplemented as a host, port, path, etc. Got nowhere with that pretty fast.
Then I had a closer look at the "make a package" thing - a package can be a profile, a model, or a package. Maybe I should use the "profile" package to define types that are going to be used in the rest of my model? So in the profile package I define that a "hostname" may be assigned an "ip", and in a regular package I define our "nightjar" constant and "184.108.40.206" constant, and add the "ismappedto" association. But, no luck there either.
I mean, I'd like to be able to say that Oracle 10.3 is an subtype of Oracle is an subtype of SqlDatabase, that we have a version of it running on 10.4 (aka Accipiter) at /opt/oracle service name IBISDEV port 1521, that the AFD dev set of oracle artifacts (views, stored procedures, tables - no need to list them) is deployed to schema "AFD_TABLES" there, and that that we have Tomcat running on 220.127.116.11, that it defines a JINDI name "devdb" that points to that instance of Oracle, and that the dev version of the AFD webapp (which is on SVN running at "turtle", under /afd/branches/newdev, version 4321) is deployed on that appserver and uses that JINDI name.
UML will do all this, but damned if I can work out how to explain that to eclipse. I don't need code generated, I just want to draw pictures of the environment here.
[Updated on: Sun, 08 November 2009 22:52]
Report message to a moderator
Current Time: Mon May 20 09:45:23 EDT 2013
Powered by FUDForum
. Page generated in 0.03178 seconds