public class MSGClient extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MSGClient.GHNClientModeException |
| Modifier and Type | Field and Description |
|---|---|
org.slf4j.Logger |
logger |
| Modifier | Constructor and Description |
|---|---|
protected |
MSGClient() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDestination(org.gcube.common.core.monitoring.GCUBEMessage message) |
String |
getSource(org.gcube.common.core.monitoring.GCUBEMessage message) |
void |
sendMessage(org.gcube.common.core.contexts.GCUBEServiceContext context,
TransferMessage message,
org.gcube.common.core.scope.GCUBEScope... scope) |
void |
sendRequestMessage(org.gcube.common.core.contexts.GCUBEServiceContext context,
TransferRequestMessage message,
org.gcube.common.core.scope.GCUBEScope... scope)
The method create Messages and send them to the D4science MessageBroker configured in the Infrastructure.
|
void |
sendResponseMessage(org.gcube.common.core.contexts.GCUBEServiceContext context,
TransferResponseMessage message,
org.gcube.common.core.scope.GCUBEScope... scope) |
protected MSGClient()
throws IOException,
org.gcube.common.core.scope.GCUBEScopeNotSupportedException
IOExceptionorg.gcube.common.core.scope.GCUBEScopeNotSupportedExceptionpublic void sendRequestMessage(org.gcube.common.core.contexts.GCUBEServiceContext context,
TransferRequestMessage message,
org.gcube.common.core.scope.GCUBEScope... scope)
throws MSGClient.GHNClientModeException,
IllegalArgumentException,
Exception
context - the Service Contextmessage - the map of parameters to sendscope, - if the service is running in more than one scope and we want to specify the caller scope, is it possible to use this optional parametersMSGClient.GHNClientModeException - the Exception is thrown when the method is invoked from a clientReservedFieldException - if one or more parameters clash the ones already reserved by the systemIllegalArgumentException - if one or more parameters type are not supported by the systemExceptionpublic void sendResponseMessage(org.gcube.common.core.contexts.GCUBEServiceContext context,
TransferResponseMessage message,
org.gcube.common.core.scope.GCUBEScope... scope)
throws MSGClient.GHNClientModeException,
IllegalArgumentException,
Exception
public void sendMessage(org.gcube.common.core.contexts.GCUBEServiceContext context,
TransferMessage message,
org.gcube.common.core.scope.GCUBEScope... scope)
throws MSGClient.GHNClientModeException,
IllegalArgumentException,
Exception
public String getSource(org.gcube.common.core.monitoring.GCUBEMessage message)
public String getDestination(org.gcube.common.core.monitoring.GCUBEMessage message)
Copyright © 2014. All Rights Reserved.