Mercurial > hg > blitz_condensed
view src/org/dancres/blitz/RegTicketImpl.java @ 34:6f68e94c1fb8 default tip
Add CondensedStats monitoring utility, equivalent to vmstat
author | Dominic Cleal <dominic-cleal@cdo2.com> |
---|---|
date | Thu, 05 Aug 2010 11:07:25 +0100 |
parents | 3dc0c5604566 |
children |
line wrap: on
line source
package org.dancres.blitz; import org.dancres.blitz.lease.SpaceUID; import org.dancres.blitz.notify.Registrar; /** Contains the necessary details to build an EventRegistration object. These details are internal source ID, initial sequence number and UID (which will be converted into a SpaceUID). The raw details are received from EventQueue via the Registrar interface. The details are then slightly massaged (convert UID to SpaceUID). This object is then returned to the caller who can then turn these details into a suitable EventRegistration object. */ class RegTicketImpl implements RegTicket, Registrar { private long theInternalSource; private long theInitialSequenceNum; private SpaceUID theUID; private long theExpirationTime; RegTicketImpl(long anExpirationTime) { theExpirationTime = anExpirationTime; } public void newRegistration(long aSourceId, long aSeqNum, SpaceUID aUID) { theInternalSource = aSourceId; theInitialSequenceNum = aSeqNum; theUID = aUID; } public SpaceUID getUID() { return theUID; } public long getSourceId() { return theInternalSource; } public long getSeqNum() { return theInitialSequenceNum; } public long getExpirationTime() { return theExpirationTime; } }