public class SystemAccounting extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SystemAccounting() |
| Modifier and Type | Method and Description |
|---|---|
void |
sendSystemAccountingMessage(org.gcube.common.core.contexts.GCUBEServiceContext context,
String type,
HashMap<String,Object> parameters,
org.gcube.common.core.scope.GCUBEScope... scope)
The method create SystemAccountingMessages and send them to the D4science MessageBroker configured in the Infrastructure.
|
void |
sendSystemAccountingMessage(String type,
org.gcube.common.core.scope.GCUBEScope scope,
String sourceGHN,
HashMap<String,Object> parameters)
The method creates a SystemAccoutingMessage and sends it to the D4science MessageBroker configured in the given scope
This method is intended to be executed by clients using client GHN libraries
|
protected SystemAccounting()
throws IOException,
org.gcube.common.core.scope.GCUBEScopeNotSupportedException
IOExceptionorg.gcube.common.core.scope.GCUBEScopeNotSupportedExceptionpublic void sendSystemAccountingMessage(org.gcube.common.core.contexts.GCUBEServiceContext context,
String type,
HashMap<String,Object> parameters,
org.gcube.common.core.scope.GCUBEScope... scope)
throws org.gcube.messaging.accounting.system.SystemAccounting.GHNClientModeException,
org.gcube.messaging.common.messages.SystemAccountingMessage.ReservedFieldException,
IllegalArgumentException,
Exception
context - the Service Contexttype - The type of messageparameters - 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 parametersGHNClientModeException - the Exception is thrown when the method is invoked from a clientorg.gcube.messaging.common.messages.SystemAccountingMessage.ReservedFieldException - if one or more parameters clash the ones already reserved by the systemIllegalArgumentException - if one or more parameters type are not supported by the systemExceptionorg.gcube.messaging.accounting.system.SystemAccounting.GHNClientModeExceptionpublic void sendSystemAccountingMessage(String type, org.gcube.common.core.scope.GCUBEScope scope, String sourceGHN, HashMap<String,Object> parameters) throws org.gcube.common.core.scope.GCUBEScopeNotSupportedException, org.gcube.messaging.common.messages.SystemAccountingMessage.ReservedFieldException, IllegalArgumentException, Exception
type - The type of the messagescope - the GCUBEScope where the message will be publishedsourceGHN - the GHN Source of the messageparameters - the map of parameters to sendorg.gcube.common.core.scope.GCUBEScopeNotSupportedException - the scope is not supported in the current GHNorg.gcube.messaging.common.messages.SystemAccountingMessage.ReservedFieldException - if one or more parameters clash the ones already reserved by the systemIllegalArgumentException - if one or more parameters type are not supported by the systemExceptionCopyright © 2015. All Rights Reserved.