public class InetAccountingEvent extends PoolEvent
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_START |
static int |
TYPE_STOP |
static int |
TYPE_UPDATE |
CONTRACT_GLOBAL, NO_MODULE, NO_PLUGIN
Modifier | Constructor and Description |
---|---|
protected |
InetAccountingEvent() |
|
InetAccountingEvent(PoolEventPublisher<?> publisher,
int contractId,
InetConnection connection,
long sessionId,
int type,
java.util.Date accountingTime) |
|
InetAccountingEvent(PoolEventPublisher<?> publisher,
int contractId,
InetConnection connection,
long sessionId,
int type,
java.util.Map<java.lang.Integer,TrafficAmount> counterTraffics,
java.util.Date accountingTime) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAccountingTime() |
InetConnection |
getConnection() |
java.util.Map<java.lang.Integer,TrafficAmount> |
getCounterTraffics() |
long |
getSessionId() |
int |
getType() |
protected void |
prepareMessage(javax.jms.Message message) |
protected void |
toString(java.lang.StringBuilder sb) |
getContractId, getContractID, getDestination, getGenerateTime, getModuleId, getModuleID, getPluginId, getSuperContractId, getTime, getTimestamp, getTypeId, getUserId, isLogFunctionProcess, serializeAsObject, setLogFunctionProcess, toString
public static final int TYPE_START
public static final int TYPE_STOP
public static final int TYPE_UPDATE
protected InetAccountingEvent()
public InetAccountingEvent(PoolEventPublisher<?> publisher, int contractId, InetConnection connection, long sessionId, int type, java.util.Date accountingTime)
public InetAccountingEvent(PoolEventPublisher<?> publisher, int contractId, InetConnection connection, long sessionId, int type, java.util.Map<java.lang.Integer,TrafficAmount> counterTraffics, java.util.Date accountingTime)
protected void prepareMessage(javax.jms.Message message) throws javax.jms.JMSException
prepareMessage
in class Event
javax.jms.JMSException
public InetConnection getConnection()
public long getSessionId()
public int getType()
public java.util.Map<java.lang.Integer,TrafficAmount> getCounterTraffics()
public java.util.Date getAccountingTime()