com.isti.quakewatch.common.qw_services
Class _QWServicesStub

java.lang.Object
  extended by org.omg.CORBA.portable.ObjectImpl
      extended by com.isti.quakewatch.common.qw_services._QWServicesStub
All Implemented Interfaces:
QWServices, QWServicesOperations, java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity

public class _QWServicesStub
extends org.omg.CORBA.portable.ObjectImpl
implements QWServices

Interface definition: QWServices.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.isti.quakewatch.common.qw_services.QWServices
CS_BAD_DISTNAME, CS_CONN_ERROR, CS_CONNECT_OK, CS_INVALID_LOGIN, CS_SERVER_REDIRECT, CS_VERSION_OBSOLETE, NUM_CS_VALUES
 
Constructor Summary
_QWServicesStub()
           
 
Method Summary
 java.lang.String[] _ids()
           
 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 org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

_QWServicesStub

public _QWServicesStub()
Method Detail

_ids

public java.lang.String[] _ids()
Specified by:
_ids in class org.omg.CORBA.portable.ObjectImpl

getConnectionStatusVal

public int getConnectionStatusVal()
Operation getConnectionStatusVal

Specified by:
getConnectionStatusVal in interface QWServicesOperations
Returns:
One of the 'CS_' values.

getConnectionStatusMsg

public java.lang.String getConnectionStatusMsg()
Operation getConnectionStatusMsg

Specified by:
getConnectionStatusMsg in interface QWServicesOperations
Returns:
A message string describing the status of the current connection to the server.

getRedirectedServerLoc

public java.lang.String getRedirectedServerLoc()
Operation getRedirectedServerLoc

Specified by:
getRedirectedServerLoc in interface QWServicesOperations
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

Specified by:
getServerIdNameStr in interface QWServicesOperations
Returns:
The server ID name string.

getServerHostAddrStr

public java.lang.String getServerHostAddrStr()
Operation getServerHostAddrStr

Specified by:
getServerHostAddrStr in interface QWServicesOperations
Returns:
The host address string for this server.

getServerRevisionString

public java.lang.String getServerRevisionString()
Operation getServerRevisionString

Specified by:
getServerRevisionString in interface QWServicesOperations
Returns:
The revision string for this server.

getStatusMsgTypeNameStr

public java.lang.String getStatusMsgTypeNameStr()
Operation getStatusMsgTypeNameStr

Specified by:
getStatusMsgTypeNameStr in interface QWServicesOperations
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

Specified by:
getAltServersIdsListStr in interface QWServicesOperations
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

Specified by:
getEventChLocStr in interface QWServicesOperations
Returns:
The locator string, or an empty string if an error occurred.

requestAliveMessage

public void requestAliveMessage()
Operation requestAliveMessage

Specified by:
requestAliveMessage in interface QWServicesOperations

requestMessages

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

Specified by:
requestMessages in interface QWServicesOperations
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

Specified by:
requestFilteredMessages in interface QWServicesOperations
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

Specified by:
requestSourcedMessages in interface QWServicesOperations
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

Specified by:
requestSourcedFilteredMessages in interface QWServicesOperations
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

Specified by:
clientStatusCheck in interface QWServicesOperations
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

Specified by:
getClientUpgradeInfo in interface QWServicesOperations
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

Specified by:
getStatusReportTime in interface QWServicesOperations
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

Specified by:
getStatusReportData in interface QWServicesOperations
Returns:
A string containing the latest status-report data, or an empty string if no report is available.

getCertificateFileData

public byte[] getCertificateFileData()
Operation getCertificateFileData

Specified by:
getCertificateFileData in interface QWServicesOperations
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

Specified by:
disconnectClient in interface QWServicesOperations
Parameters:
clientInfoStr - the client-connection-information properties string for the client.