com.isti.trinetwatch.server
Class CA2S_dp_impl

java.lang.Object
  extended by _PushConsumerImplBase
      extended by com.isti.trinetwatch.server.CA2S_dp_impl

 class CA2S_dp_impl
extends _PushConsumerImplBase

Class CA2S_dp_impl manages all incoming traffic on the dynamic parameter event channel from the Collection Agent for the SeisNetWatch server.


Constructor Summary
CA2S_dp_impl(Server serverObj, PushSupplier supplier)
          Creates an object of CA2S_dp_impl.
 
Method Summary
 void disconnect_push_consumer()
          Disconnect from the event channel.
static java.lang.String getTimeStampParamName()
          Get the time stamp parameter name.
 void push(org.omg.CORBA.Any any)
          Method push is called automatically when information arrives over the dynamic parameter event channel, which it then parses and acts upon.
static void setTimeStampParamName(java.lang.String s)
          Set the time stamp parameter name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CA2S_dp_impl

CA2S_dp_impl(Server serverObj,
             PushSupplier supplier)
Creates an object of CA2S_dp_impl.

Parameters:
serverObj - A handle to the server object.
supplier - A handle to the channel to be used.
Method Detail

disconnect_push_consumer

public void disconnect_push_consumer()
Disconnect from the event channel.


getTimeStampParamName

public static java.lang.String getTimeStampParamName()
Get the time stamp parameter name.

Returns:
the time stamp parameter name or empty string if none.

push

public void push(org.omg.CORBA.Any any)
Method push is called automatically when information arrives over the dynamic parameter event channel, which it then parses and acts upon. Each message observes one of the following formats: DP_MSG:"AGENT":SSSSS:N:"PARAM_NAME1"="VALUE1";...;"PARAM_NAMEn"="VALUEn" where AGENT is the unique identifier for the sending agent, SSSSS is the station name, N is the integer number of parameters being sent for this station, and PARAM_NAMEX=VALUEX is the parameter value pair being passed; or: ID_MSG:"AGENT":"name"="value";... where "AGENT" is the unique identifier for the sending agent, "name" is the name of an agent property (surrounded by double quotes) and "value" is the value for the property (surrounded by double quotes).

Parameters:
any - a variable of the CORBA type Any, it contains a message from the collection agent.

setTimeStampParamName

public static void setTimeStampParamName(java.lang.String s)
Set the time stamp parameter name.

Parameters:
s - the time stamp parameter name or empty string if none.