com.isti.quakewatch.common.qw_services
Class QWServicesPOATie

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by com.isti.quakewatch.common.qw_services.QWServicesPOA
          extended by com.isti.quakewatch.common.qw_services.QWServicesPOATie
All Implemented Interfaces:
QWServicesOperations, org.omg.CORBA.portable.InvokeHandler

public class QWServicesPOATie
extends QWServicesPOA

Interface definition: QWServices.


Constructor Summary
QWServicesPOATie(QWServicesOperations tieObject)
          Constructor
QWServicesPOATie(QWServicesOperations tieObject, org.omg.PortableServer.POA poa)
          Constructor
 
Method Summary
 org.omg.PortableServer.POA _default_POA()
          _default_POA method
 QWServicesOperations _delegate()
          Get the delegate
 void _delegate(QWServicesOperations delegate_)
          Set the delegate
 boolean clientStatusCheck(java.lang.String clientInfoStr)
          Operation clientStatusCheck
 void disconnectClient(java.lang.String clientInfoStr)
          Operation disconnectClient
 java.lang.String getAltServersIdsListStr()
          Operation getAltServersIdsListStr
 byte[] getCertificateFileData()
          Operation getCertificateFileData
 java.lang.String getClientUpgradeInfo(java.lang.String clientInfoStr)
          Operation getClientUpgradeInfo
 java.lang.String getConnectionStatusMsg()
          Operation getConnectionStatusMsg
 int getConnectionStatusVal()
          Operation getConnectionStatusVal
 java.lang.String getEventChLocStr()
          Operation getEventChLocStr
 java.lang.String getRedirectedServerLoc()
          Operation getRedirectedServerLoc
 java.lang.String getServerHostAddrStr()
          Operation getServerHostAddrStr
 java.lang.String getServerIdNameStr()
          Operation getServerIdNameStr
 java.lang.String getServerRevisionString()
          Operation getServerRevisionString
 java.lang.String getStatusMsgTypeNameStr()
          Operation getStatusMsgTypeNameStr
 java.lang.String getStatusReportData()
          Operation getStatusReportData
 long getStatusReportTime()
          Operation getStatusReportTime
 void requestAliveMessage()
          Operation requestAliveMessage
 java.lang.String requestFilteredMessages(long timeVal, long msgNum, java.lang.String domainTypeListStr)
          Operation requestFilteredMessages
 java.lang.String requestMessages(long timeVal, long msgNum)
          Operation requestMessages
 java.lang.String requestSourcedFilteredMessages(long timeVal, java.lang.String hostMsgNumListStr, java.lang.String domainTypeListStr)
          Operation requestSourcedFilteredMessages
 java.lang.String requestSourcedMessages(long timeVal, java.lang.String hostMsgNumListStr)
          Operation requestSourcedMessages
 
Methods inherited from class com.isti.quakewatch.common.qw_services.QWServicesPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QWServicesPOATie

public QWServicesPOATie(QWServicesOperations tieObject)
Constructor


QWServicesPOATie

public QWServicesPOATie(QWServicesOperations tieObject,
                        org.omg.PortableServer.POA poa)
Constructor

Method Detail

_delegate

public QWServicesOperations _delegate()
Get the delegate


_delegate

public void _delegate(QWServicesOperations delegate_)
Set the delegate


_default_POA

public org.omg.PortableServer.POA _default_POA()
_default_POA method

Overrides:
_default_POA in class org.omg.PortableServer.Servant

getConnectionStatusVal

public int getConnectionStatusVal()
Operation getConnectionStatusVal

Returns:
One of the 'CS_' values.

getConnectionStatusMsg

public java.lang.String getConnectionStatusMsg()
Operation getConnectionStatusMsg

Returns:
A message string describing the status of the current connection to the server.

getRedirectedServerLoc

public java.lang.String getRedirectedServerLoc()
Operation getRedirectedServerLoc

Returns:
The redirect-server location(s) string in the form "hostAddr:portNum", or an empty string if the client is not being redirected.

getServerIdNameStr

public java.lang.String getServerIdNameStr()
Operation getServerIdNameStr

Returns:
The server ID name string.

getServerHostAddrStr

public java.lang.String getServerHostAddrStr()
Operation getServerHostAddrStr

Returns:
The host address string for this server.

getServerRevisionString

public java.lang.String getServerRevisionString()
Operation getServerRevisionString

Returns:
The revision string for this server.

getStatusMsgTypeNameStr

public java.lang.String getStatusMsgTypeNameStr()
Operation getStatusMsgTypeNameStr

Returns:
The type-name string used on status messages sent out by the server (when structured messages are enabled).

getAltServersIdsListStr

public java.lang.String getAltServersIdsListStr()
Operation getAltServersIdsListStr

Returns:
The list of alternate server IDs, as a string in the form "hostAddr:portNum,hostAddr:portNum,...".

getEventChLocStr

public java.lang.String getEventChLocStr()
Operation getEventChLocStr

Returns:
The locator string, or an empty string if an error occurred.

requestAliveMessage

public void requestAliveMessage()
Operation requestAliveMessage


requestMessages

public java.lang.String requestMessages(long timeVal,
                                        long msgNum)
Operation requestMessages

Parameters:
timeVal - the time-generated value for message associated with the given message number, or the requested time value to be used (milliseconds since 1/1/1970).
msgNum - the message number to use, or 0 or none.
Returns:
An XML-formatted string containing the messages, or an empty string if an error occurs.

requestFilteredMessages

public java.lang.String requestFilteredMessages(long timeVal,
                                                long msgNum,
                                                java.lang.String domainTypeListStr)
Operation requestFilteredMessages

Parameters:
timeVal - the time-generated value for message associated with the given message number, or the requested time value to be used (milliseconds since 1/1/1970).
msgNum - the message number to use, or 0 or none.
domainTypeListStr - a list string of event domain and type names in the format "domain:type,domain:type...", where occurrences of the ':' and ',' characters not meant as separators may be "quoted" by preceding them with the backslash ('\') character and list items missing the ':' character will be considered to specify only a domain name (the type name will be an empty string); or an empty string for none.
Returns:
An XML-formatted string containing the messages, or an empty string if an error occurs.

requestSourcedMessages

public java.lang.String requestSourcedMessages(long timeVal,
                                               java.lang.String hostMsgNumListStr)
Operation requestSourcedMessages

Parameters:
timeVal - the time-generated value for message associated with the given message number, or the requested time value to be used (milliseconds since 1/1/1970).
hostMsgNumListStr - a list of feeder-data-source host-name/message-number entries in the form: "hostName"=msgNum,...
Returns:
An XML-formatted string containing the messages, or an empty string if an error occurs.

requestSourcedFilteredMessages

public java.lang.String requestSourcedFilteredMessages(long timeVal,
                                                       java.lang.String hostMsgNumListStr,
                                                       java.lang.String domainTypeListStr)
Operation requestSourcedFilteredMessages

Parameters:
timeVal - the time-generated value for message associated with the given message number, or the requested time value to be used (milliseconds since 1/1/1970).
hostMsgNumListStr - a list of feeder-data-source host-name/message-number entries in the form: "hostName"=msgNum,...
domainTypeListStr - a list string of event domain and type names in the format "domain:type,domain:type...", where occurrences of the ':' and ',' characters not meant as separators may be "quoted" by preceding them with the backslash ('\') character and list items missing the ':' character will be considered to specify only a domain name (the type name will be an empty string); or an empty string for none.
Returns:
An XML-formatted string containing the messages, or an empty string if an error occurs.

clientStatusCheck

public boolean clientStatusCheck(java.lang.String clientInfoStr)
Operation clientStatusCheck

Parameters:
clientInfoStr - the client-connection-information properties string to use.
Returns:
true if the an updated version of the client is available; false if not.

getClientUpgradeInfo

public java.lang.String getClientUpgradeInfo(java.lang.String clientInfoStr)
Operation getClientUpgradeInfo

Parameters:
clientInfoStr - the client-connection-information properties string to use.
Returns:
An XML-formatted string containing information about available client-program upgrades.

getStatusReportTime

public long getStatusReportTime()
Operation getStatusReportTime

Returns:
The timestamp value for the latest status report from the server, or 0 if no report is available.

getStatusReportData

public java.lang.String getStatusReportData()
Operation getStatusReportData

Returns:
A string containing the latest status-report data, or an empty string if no report is available.

getCertificateFileData

public byte[] getCertificateFileData()
Operation getCertificateFileData

Returns:
A byte-array of certificate-file data, or a zero-length array if no data is available.

disconnectClient

public void disconnectClient(java.lang.String clientInfoStr)
Operation disconnectClient

Parameters:
clientInfoStr - the client-connection-information properties string for the client.