|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.hci.AdminMessageSender
public class AdminMessageSender
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.highdeal.hci.MessageSender |
|---|
MessageSender.IRedirectHandler |
| Field Summary | |
|---|---|
static java.lang.String |
ADMIN_INSTANCE_ID_ADDITIONAL_HEADER
|
| Constructor Summary | |
|---|---|
AdminMessageSender(java.lang.String instanceKey,
XMLMapping adminMapping,
javax.net.ssl.SSLSocketFactory sslSocketFactory,
java.net.URL... dispatcherAdminUrl)
|
|
AdminMessageSender(java.lang.String instanceKey,
XMLMapping adminMapping,
java.net.URL... dispatcherAdminUrl)
|
|
| Method Summary | |
|---|---|
void |
activate(MessageOriginator ori)
Activate the connection |
void |
addRedirectHandler(MessageSender.IRedirectHandler redirectHandler)
Adds a redirection handler to this MessageSender;
This handler is notified of redirection events. |
MessageContext |
asyncSend(MessageEnvelope env,
ClientMessageListener listener)
Sends a HCI message and receives notification of progress
and upon termination of the message process via a dedicated listener. |
AdminMessageSender[] |
getAdminMessageSenderByInstanceType(boolean living,
MessageOriginator mo,
InstanceType... instanceTypes)
|
AdminMessageSender |
getAdminMessageSenderOnLivingUpdater(boolean fresh,
MessageOriginator mo)
|
protected InstanceType |
getDestinationInstanceType()
|
java.lang.String |
getInstanceKey()
|
protected java.lang.String |
getPath()
|
protected java.util.List<MessageSender.IRedirectHandler> |
getRedirectHandlers()
|
protected HttpMessageSender |
getSender(MessageOriginator ori)
|
java.net.URL |
getServerUrl()
|
protected javax.net.ssl.SSLSocketFactory |
getSSLSocketFactory()
|
java.util.List<InstanceStatus> |
getStatus(MessageOriginator ori,
InstanceType type,
boolean alive)
|
SystemStatus |
getSystemStatus(MessageOriginator ori)
Returns the current system status. |
protected java.net.URL |
getURL(MessageOriginator ori)
|
protected XMLMapping |
getXMLMapping()
|
void |
removeRedirectHandler(MessageSender.IRedirectHandler redirectHandler)
Removes a MessageSender.IRedirectHandler from this MessageSender;
The handler is not be notified anymore of redirection events. |
MessageEnvelope |
send(MessageEnvelope message)
Sends a HCI message and receives its results via the HCI technical interface;
The communications are synchronous. |
MessageEnvelope |
send(MessageEnvelope message,
int timeout)
Sends a HCI message and receives its results via the HCI technical interface;
this method is protected by a timeout, that means that, if the SAP CC system
does not answer within the timeout, a communication failure
is sent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ADMIN_INSTANCE_ID_ADDITIONAL_HEADER
| Constructor Detail |
|---|
public AdminMessageSender(java.lang.String instanceKey,
XMLMapping adminMapping,
java.net.URL... dispatcherAdminUrl)
public AdminMessageSender(java.lang.String instanceKey,
XMLMapping adminMapping,
javax.net.ssl.SSLSocketFactory sslSocketFactory,
java.net.URL... dispatcherAdminUrl)
| Method Detail |
|---|
public MessageContext asyncSend(MessageEnvelope env,
ClientMessageListener listener)
throws BadMessageFormatException,
CommunicationFailureException
MessageSenderHCI message and receives notification of progress
and upon termination of the message process via a dedicated listener.
asyncSend in interface MessageSenderenv - The HCI message to sendlistener - A listener that will be notified of
progress and upon termination of
operations and message
message context that can be used to cancel
the message or retrieve results
BadMessageFormatException - if the message is in
a bad format
CommunicationFailureException - if the SAP CC system
cannot be reached
public MessageEnvelope send(MessageEnvelope message)
throws CommunicationFailureException,
BadMessageFormatException
MessageSenderHCI message and receives its results via the HCI technical interface;
The communications are synchronous.
send in interface MessageSendermessage - The message to send
CommunicationFailureException - if the SAP CC system cannot be reached
BadMessageFormatException - if the message received is in a bad format
public MessageEnvelope send(MessageEnvelope message,
int timeout)
throws CommunicationFailureException,
BadMessageFormatException
MessageSenderHCI message and receives its results via the HCI technical interface;
this method is protected by a timeout, that means that, if the SAP CC system
does not answer within the timeout, a communication failure
is sent.
Option: You can define a client-side timeout.
send in interface MessageSendermessage - The HCI message to sendtimeout - The timeout in millisecond (ms), a negative number means no timeout
CommunicationFailureException - if the SAP CC system cannot be reached or
if the timeout expires
BadMessageFormatException - if the message received is in a bad formatpublic java.net.URL getServerUrl()
public java.lang.String getInstanceKey()
public AdminMessageSender getAdminMessageSenderOnLivingUpdater(boolean fresh,
MessageOriginator mo)
throws CommunicationFailureException
CommunicationFailureException
public AdminMessageSender[] getAdminMessageSenderByInstanceType(boolean living,
MessageOriginator mo,
InstanceType... instanceTypes)
throws CommunicationFailureException
CommunicationFailureException
public SystemStatus getSystemStatus(MessageOriginator ori)
throws OperationFailureException,
CommunicationFailureException
ori - a valid message originator.
system status
OperationFailureException - if the system status cannot be retrieved
CommunicationFailureException - if the server cannot be contacted
public void activate(MessageOriginator ori)
throws CommunicationFailureException,
OperationFailureException
ori - a valid message originator.
CommunicationFailureException
OperationFailureException
protected final HttpMessageSender getSender(MessageOriginator ori)
throws CommunicationFailureException,
OperationFailureException
CommunicationFailureException
OperationFailureException
protected final java.net.URL getURL(MessageOriginator ori)
throws CommunicationFailureException,
OperationFailureException
CommunicationFailureException
OperationFailureException
public final java.util.List<InstanceStatus> getStatus(MessageOriginator ori,
InstanceType type,
boolean alive)
throws CommunicationFailureException,
OperationFailureException
CommunicationFailureException
OperationFailureExceptionprotected XMLMapping getXMLMapping()
protected javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
protected InstanceType getDestinationInstanceType()
protected java.lang.String getPath()
public final void addRedirectHandler(MessageSender.IRedirectHandler redirectHandler)
MessageSenderredirection handler to this MessageSender;
This handler is notified of redirection events.
addRedirectHandler in interface MessageSenderredirectHandler - The redirection event handler to addMessageSender.IRedirectHandlerpublic final void removeRedirectHandler(MessageSender.IRedirectHandler redirectHandler)
MessageSenderMessageSender.IRedirectHandler from this MessageSender;
The handler is not be notified anymore of redirection events.
removeRedirectHandler in interface MessageSenderredirectHandler - The redirection event handler to removeprotected final java.util.List<MessageSender.IRedirectHandler> getRedirectHandlers()
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||