public class DummyEventReportingService extends EventReceiver implements IService
IEventReportingService
interface, used
for testing the HTTP telemtry service.EventReceiver.EventBTree
eventCache, eventHistoryMillis, log, ndx
Constructor and Description |
---|
DummyEventReportingService()
Construct with an empty set of events
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the service.
|
String |
getHostname()
The host on which this service is running.
|
Class |
getServiceIface()
Return the most interesting interface for the service.
|
String |
getServiceName()
Return name by which a user might recognize this service.
|
UUID |
getServiceUUID()
The unique identifier for this service.
|
void |
readCSV(BufferedReader reader)
Parse a CSV file into a LinkedHashMap of events.
|
getWriteLock, logEvent, notifyEvent, pruneHistory, rangeCount, rangeIterator
public DummyEventReportingService()
public void readCSV(BufferedReader reader) throws IOException
Event.getHeader()
.reader
- a reader for the CSV fileIOException
public String getHostname() throws IOException
IService
getHostname
in interface IService
IOException
- since you can use this method with RMI.public Class getServiceIface() throws IOException
IService
getServiceIface
in interface IService
IOException
- since you can use this method with RMI.public String getServiceName() throws IOException
IService
getServiceName
in interface IService
IOException
- since you can use this method with RMI.public UUID getServiceUUID() throws IOException
IService
Note: Some service discovery frameworks (Jini) will assign the service a
UUID
asynchronously after a new service starts, in which case
this method will return null
until the service
UUID
has been assigned.
getServiceUUID
in interface IService
IOException
- since you can use this method with RMI.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.