public class ServiceComm
extends java.lang.Object
Service
methods and other packages.Constructor and Description |
---|
ServiceComm() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addCommunicationID(java.lang.String communicationID,
java.lang.Object clientURI,
Service service)
Store the communicationID with the related client URI, stored as a
MessageInfo object
with timestamps. |
static boolean |
addCommunicationID(java.lang.String communicationID,
java.lang.Object clientURI,
ServiceWrapperDef wrapper)
Store the commID with the related client URI, on the embedded service.
|
static void |
addMessageMetrics(MethodInfo messageInfo,
java.lang.String password,
Service service)
Add metric or stat values for the message object.
|
static void |
addMessageMetrics(MethodInfo messageInfo,
java.lang.String password,
ServiceWrapperDef service)
Add metric or stat values for the message object.
|
static java.lang.Object |
getClientURI(java.lang.String communicationID,
Service service)
Get the client URI associated with a communication ID.
|
static java.lang.String |
getCommID(Service service)
Get the last read communication ID.
|
static boolean |
hasCommunicationID(java.lang.String commID,
Service service)
Return true if this service currently stores a conversation with the specified
communication ID.
|
static void |
removeCommunicationID(java.lang.String communicationID,
Service service)
Remove the communication ID reference.
|
static boolean |
setParent(Service thisParent,
ServiceWrapperDef wrapper)
Set the parent component value.
|
static void |
setServerPassword(java.lang.String thePassword,
ServiceWrapperDef wrapper)
Set the password that will allow this service to access the server it runs on.
|
static void |
setServiceGrade(java.lang.String serviceGrade,
ServiceWrapperDef wrapper)
Set the service grade or status.
|
public static boolean hasCommunicationID(java.lang.String commID, Service service)
commID
- the communication ID to check for.service
- direct reference to the service to invoke.public static boolean addCommunicationID(java.lang.String communicationID, java.lang.Object clientURI, Service service) throws java.lang.Exception
MessageInfo
object
with timestamps. The method now also checks the timestamps and removes any
communicationIDs that are older than 3 days.communicationID
- the communication id.clientURI
- the URI/reference for the calling client.service
- direct reference to the service to invoke.java.lang.Exception
- any error.public static void removeCommunicationID(java.lang.String communicationID, Service service)
communicationID
- the communication ID.service
- direct reference to the service to invoke.public static java.lang.Object getClientURI(java.lang.String communicationID, Service service)
communicationID
- the communication ID.service
- direct reference to the service to invoke.public static java.lang.String getCommID(Service service)
service
- the service to query.public static boolean addCommunicationID(java.lang.String communicationID, java.lang.Object clientURI, ServiceWrapperDef wrapper) throws java.lang.Exception
MessageInfo
objects with timestamps. The method now also checks the timestamps and removes any communicationIDs
that are older than 3 days.communicationID
- the communication id.clientURI
- the URI/reference for the calling client.wrapper
- direct reference to the service to invoke.java.lang.Exception
- any error.public static void setServiceGrade(java.lang.String serviceGrade, ServiceWrapperDef wrapper)
serviceGrade
- the service grade.wrapper
- direct reference to the service to invoke.public static void setServerPassword(java.lang.String thePassword, ServiceWrapperDef wrapper) throws java.lang.Exception
thePassword
- the server password.wrapper
- direct reference to the service to invoke.java.lang.Exception
- any error.public static boolean setParent(Service thisParent, ServiceWrapperDef wrapper)
thisParent
- the parent component representation.wrapper
- direct reference to the service to invoke.public static void addMessageMetrics(MethodInfo messageInfo, java.lang.String password, Service service) throws java.lang.Exception
messageInfo
- the message info with the message object.password
- the password for this service.service
- the service that adds the metrics.java.lang.Exception
- any error.public static void addMessageMetrics(MethodInfo messageInfo, java.lang.String password, ServiceWrapperDef service)
messageInfo
- the message info with the message object.password
- the password for this service.service
- the service that adds the metrics.