|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.messaging.accounting.system.SystemAccounting
public class SystemAccounting
The class implements the System Accounting System accounting give the possibility to account custom information There is a restrictions on the type of the Parameters to send - java.lang.String - java.math.BigDecimal - java.lang.Boolean - java.lang.Integer - java.lang.Long - java.lang.Float - java.lang.Double - byte[] - java.sql.Date - java.sql.Time - java.sql.Timestamp - java.sql.Clob - java.sql.Blob - java.sql.Array - java.sql.Struct - java.sql.Ref
| Method Summary | |
|---|---|
void |
sendSystemAccountingMessage(GCUBEServiceContext context,
java.lang.String type,
java.util.HashMap<java.lang.String,java.lang.Object> parameters,
GCUBEScope... scope)
The method create SystemAccountingMessages and send them to the D4science MessageBroker configured in the Infrastructure. |
void |
sendSystemAccountingMessage(java.lang.String type,
GCUBEScope scope,
java.lang.String sourceGHN,
java.util.HashMap<java.lang.String,java.lang.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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void sendSystemAccountingMessage(GCUBEServiceContext context,
java.lang.String type,
java.util.HashMap<java.lang.String,java.lang.Object> parameters,
GCUBEScope... scope)
throws org.gcube.messaging.accounting.system.SystemAccounting.GHNClientModeException,
org.gcube.messaging.common.messages.SystemAccountingMessage.ReservedFieldException,
java.lang.IllegalArgumentException,
java.lang.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 parameters
GHNClientModeException - the Exception is thrown when the method is invoked from a client
org.gcube.messaging.common.messages.SystemAccountingMessage.ReservedFieldException - if one or more parameters clash the ones already reserved by the system
java.lang.IllegalArgumentException - if one or more parameters type are not supported by the system
java.lang.Exception
org.gcube.messaging.accounting.system.SystemAccounting.GHNClientModeException
public void sendSystemAccountingMessage(java.lang.String type,
GCUBEScope scope,
java.lang.String sourceGHN,
java.util.HashMap<java.lang.String,java.lang.Object> parameters)
throws GCUBEScopeNotSupportedException,
org.gcube.messaging.common.messages.SystemAccountingMessage.ReservedFieldException,
java.lang.IllegalArgumentException,
java.lang.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 send
GCUBEScopeNotSupportedException - the scope is not supported in the current GHN
org.gcube.messaging.common.messages.SystemAccountingMessage.ReservedFieldException - if one or more parameters clash the ones already reserved by the system
java.lang.IllegalArgumentException - if one or more parameters type are not supported by the system
GHNClientModeException - the Exception is thrown when the method is invoked from a service running on a container
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||