public class JMSActivityServer extends Object implements ActivityServer
Constructor and Description |
---|
JMSActivityServer() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method closes the JMS activity logger.
|
List<ActivityType> |
getActivityTypes(Context context)
This method retrieves a set of activity events associated
with the supplied context value.
|
List<ActivityType> |
getActivityTypes(Context context,
long from,
long to)
This method retrieves a set of activity events associated
with the supplied context value and time range.
|
ActivityUnit |
getActivityUnit(String id)
This method queries the server for an activity unit
with the supplied id.
|
void |
init()
This method initializes the JMS activity server client.
|
List<ActivityType> |
query(QuerySpec query)
This method retrieves a set of activity events associated
with the supplied query.
|
void |
store(List<ActivityUnit> activities)
This method stores the supplied activity events.
|
@PostConstruct public void init()
public void store(List<ActivityUnit> activities) throws Exception
store
in interface ActivityServer
activities
- The activity eventsException
- Failed to store the activitiespublic ActivityUnit getActivityUnit(String id) throws Exception
getActivityUnit
in interface ActivityServer
id
- The activity unit idException
- Failed to get the activity unitpublic List<ActivityType> getActivityTypes(Context context) throws Exception
getActivityTypes
in interface ActivityServer
context
- The context valueException
- Failed to retrieve the activitiespublic List<ActivityType> getActivityTypes(Context context, long from, long to) throws Exception
getActivityTypes
in interface ActivityServer
context
- The context valuefrom
- The 'from' timestampto
- The 'to' timestamp, where 0 represents current timeException
- Failed to retrieve the activitiespublic List<ActivityType> query(QuerySpec query) throws Exception
query
in interface ActivityServer
query
- The queryException
- Failed to query the activities@PreDestroy public void close()
Copyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.