Skip to Content.
Sympa Menu

perfsonar-dev - Re: [Fwd: [pS-dev] perfsonar: r2323 - in trunk/perfsonar/src/org/perfsonar: commons/messages service/commons/engine]

Subject: perfsonar development work

List archive

Re: [Fwd: [pS-dev] perfsonar: r2323 - in trunk/perfsonar/src/org/perfsonar: commons/messages service/commons/engine]


Chronological Thread 
  • From: Roman Lapacz <>
  • To: Jason Zurawski <>, Maciej Glowiak <>, "" <>
  • Subject: Re: [Fwd: [pS-dev] perfsonar: r2323 - in trunk/perfsonar/src/org/perfsonar: commons/messages service/commons/engine]
  • Date: Thu, 12 Apr 2007 15:19:21 +0200

Roman Lapacz wrote:

Hi all,

today I have added new message service

typo!!! it is message handler


Roman

which allows to get lookup information directly from the service. It might be useful if there is no available Lookup Service but the client application knows the service address and wants to get more general service info.

This message handler is a part of pS base so all it's needed to have it working is adding its name (LookupInfoRequest) to service.properties file in service.ma.message_types property.
Example taken from RRD MA config:

service.ma.message_types=MetadataKeyRequest,SetupDataRequest,MeasurementArchiveStoreRequest,EchoRequest,LookupInfoRequest


Now we have small lookup information set:

- service access point
- service name
- service type
- service description

I'd like to propose to extend it. Some time ago we had the discussion about this, take a look:
http://wiki.perfsonar.net/jra1-wiki/index.php/LS_structure
http://wiki.perfsonar.net/jra1-wiki/index.php/Service_properties_file

For near future I'd like to propose these:

- service version
- organization/domain
- contact email

I believe that this additional small set would be helpful for clients at least to identify service version and send the right requests.


Jason, do you think you could add them to the implementation quite fast or you want other developer to do it?



Roman


-------- Original Message --------
Subject: [pS-dev] perfsonar: r2323 - in trunk/perfsonar/src/org/perfsonar: commons/messages service/commons/engine
Date: Thu, 12 Apr 2007 08:28:05 -0400
From:

Reply-To:

To:




Author: roman
Date: 2007-04-12 08:28:04 -0400 (Thu, 12 Apr 2007)
New Revision: 2323

Added:
trunk/perfsonar/src/org/perfsonar/commons/messages/LookupInfoRequest.java
Modified:
trunk/perfsonar/src/org/perfsonar/service/commons/engine/ActionType.java
Log:

New message handler which gives the ability to request the service (any pS service using pS base) for the lookup information. This should be useful if LS service is unavailable but the client application needs general information about the service.

------------------------------------

Request:

<nmwg:message type="LookupInfoRequest"
id="id1"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>

<nmwg:metadata id="meta">
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/lookupinfo/2.0</nmwg:eventType>
</nmwg:metadata>

<nmwg:data id="data" metadataIdRef="meta"/>

</nmwg:message>

------------------------------------

Example response:

<nmwg:message id="id1_resp" messageIdRef="id1" type="LookupInfoResponse" xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
<nmwg:metadata id="meta1"/>
<nmwg:data id="data1" metadataIdRef="meta1">
<psservice:datum xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
<psservice:service>
<psservice:serviceName>Java RRD MA</psservice:serviceName>
<psservice:serviceType>RRD MA</psservice:serviceType>
<psservice:serviceDescription>Java RRD MA, perfSONAR project</psservice:serviceDescription>
</psservice:service>
</psservice:datum>
</nmwg:data>
</nmwg:message>





Added: trunk/perfsonar/src/org/perfsonar/commons/messages/LookupInfoRequest.java


Property changes on: trunk/perfsonar/src/org/perfsonar/commons/messages/LookupInfoRequest.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native

Modified: trunk/perfsonar/src/org/perfsonar/service/commons/engine/ActionType.java
===================================================================
--- trunk/perfsonar/src/org/perfsonar/service/commons/engine/ActionType.java 2007-04-11 14:02:53 UTC (rev 2322)
+++ trunk/perfsonar/src/org/perfsonar/service/commons/engine/ActionType.java 2007-04-12 12:28:04 UTC (rev 2323)
@@ -61,17 +61,34 @@
*/
public static final String LS_DEREGISTER = "LS_DEREGISTER";

+
/**
* Action type to request a measurement
*/
public static final String LS_KEEPALIVE = "LS_KEEPALIVE";

- // -----------------------------------------


+ // ----------------------------------------- Echo Action

+
+
+ /**
+ * Action type to check service status
+ */
public static final String ECHO = "ECHO";

+
+
+ // ----------------------------------------- Lookup Info Action
+
+
+
+ /**
+ * Action type to request information set of the service + */
+ public static final String GET_LOOKUP_INFO = "GET_LOOKUP_INFO";
+
// ------------------------------------------ Measurement Point Actions
@@ -81,16 +98,19 @@
/**
* Action type to request a measurement
*/
-
public static final String MAKE_MEASUREMENT = "MeasurementRequest";


+
// ------------------------------------------ Topology Service Actions

+
+
/**
* Action type to request a full topology database download
*/
-
public static final String SETUP_DATA_DB = "SETUP_DATA_DB";

-}
+
+
+} //ActionType




Archive powered by MHonArc 2.6.16.

Top of Page