本文整理了Java中org.opennms.netmgt.xml.event.Events.<init>()
方法的一些代码示例,展示了Events.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Events.<init>()
方法的具体详情如下:
包路径:org.opennms.netmgt.xml.event.Events
类名称:Events
方法名:<init>
暂无
代码示例来源:origin: stackoverflow.com
// A unique dispatcher
final static Events events = new Events();
// Somewhere, an observer is interested by collision events
CollisionListener observer = ...
events.listen( Collision.class, observer );
// there is some moving parts
Spaceship aShip = ...
Meteor aMeteor = ...
// Later they collide => a collision event is notified trough the dispatcher
events.notify( new Collision( ship, meteor ) );
代码示例来源:origin: stackoverflow.com
@Override
public void onClick.... {
...
Fragment fragment = new Events();
FragmentManager fm = getSupportFragmentManager();
FragmentTransaction transaction = fm.beginTransaction();
transaction.replace(R.id.contentFragment, fragment); //Container -> R.id.contentFragment
transaction.commit();
...
}
代码示例来源:origin: OpenNMS/opennms
protected void assertEventsExists() {
if (this._events == null) {
this._events = new Events();
}
}
代码示例来源:origin: stackoverflow.com
var myFilteredCollection = new Events();
_.each(myFilteredData, function(eventModel){
myFilteredCollection.add(eventModel);
});
myFilteredCollection.toJSON();
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.api
protected void assertEventsExists() {
if (this._events == null) {
this._events = new Events();
}
}
代码示例来源:origin: stackoverflow.com
var events = new Events();
var tracks = new Tracks();
$.when( events.fetch() )
.done( function(data) {
console.dir(data)
new EventsView({el: $("#calendar"), collection: events, collection2: tracks}).render();
new AddSessionView({ collection: events}).render();
});
代码示例来源:origin: OpenNMS/opennms
/**
* Create an instance of {@link Events }
*
*/
public Events createEvents() {
LOG.debug("createEvents");
return new Events();
}
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.api
/**
* Create an instance of {@link Events }
*
*/
public Events createEvents() {
LOG.debug("createEvents");
return new Events();
}
代码示例来源:origin: stackoverflow.com
var events = new Events();
var filteredEvents = new Events(events.filtered(true));
console.log(filteredEvents.toJSON());
代码示例来源:origin: stackoverflow.com
public static void addRandomEvents(Events[] events) {
Random random = new Random();
for(int i = 0; i < 10; i++){
int randomEventIndex = random.nextInt(eventNames.length);
String randomEventName = eventNames[randomEventIndex];
String randomEventTime = new Date().toString();
int randomPriority = random.nextInt(events.length);
Events randomEvent = new Events(randomEventTime, randomEventName, randomPriority);
events[i] = randomEvent;
}
}
代码示例来源:origin: stackoverflow.com
var events = new Events();
var tracks = new Tracks();
events.fetch();
new EventsView({el: $("#calendar"), collection: events, collection2: tracks}).render();
new AddSessionView({ collection: events}).render();
代码示例来源:origin: OpenNMS/opennms
@Override
public void sendNowSync(Event event) {
Objects.requireNonNull(event);
Events events = new Events();
events.addEvent(event);
Log eventLog = new Log();
eventLog.setEvents(events);
sendNowSync(eventLog);
}
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.daemon
@Override
public void sendNowSync(Event event) {
Objects.requireNonNull(event);
Events events = new Events();
events.addEvent(event);
Log eventLog = new Log();
eventLog.setEvents(events);
sendNowSync(eventLog);
}
代码示例来源:origin: OpenNMS/opennms
/**
* {@inheritDoc}
*
* Called by a service to send an event to other listeners.
*/
@Override
public void sendNow(Event event) {
Assert.notNull(event, "event argument cannot be null");
Events events = new Events();
events.addEvent(event);
Log eventLog = new Log();
eventLog.setEvents(events);
sendNow(eventLog);
}
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.daemon
/**
* {@inheritDoc}
*
* Called by a service to send an event to other listeners.
*/
@Override
public void sendNow(Event event) {
Assert.notNull(event, "event argument cannot be null");
Events events = new Events();
events.addEvent(event);
Log eventLog = new Log();
eventLog.setEvents(events);
sendNow(eventLog);
}
代码示例来源:origin: OpenNMS/opennms
/** {@inheritDoc} */
@Override
public void sendNow(Event event) {
Log eventLog = new Log();
Events events = new Events();
eventLog.setEvents(events);
events.addEvent(event);
sendNow(eventLog);
}
代码示例来源:origin: OpenNMS/opennms
private Log createLog(List<Event> eventList) {
final Header header = new Header();
header.setCreated(StringUtils.toStringEfficiently(new Date()));
final Events events = new Events();
events.setEvent(eventList);
final Log log = new Log();
log.setEvents(events);
log.setHeader(header);
return log;
}
代码示例来源:origin: org.opennms.features/org.opennms.features.opennms-es-rest
private Log createLog(List<Event> eventList) {
final Header header = new Header();
header.setCreated(StringUtils.toStringEfficiently(new Date()));
final Events events = new Events();
events.setEvent(eventList);
final Log log = new Log();
log.setEvents(events);
log.setHeader(header);
return log;
}
代码示例来源:origin: stackoverflow.com
for (int i=0;i<day1.length;i++)
{
Events event= new Events();
event.setEvent(day1[i]);
event.setVenue(day1venue[i]);
event.setTime(timings[i]);
event.setDetails("This is Pantheon 2016\n Play it safe and have a good time. Live long and prosper");
event.setFavourite(false);
}
代码示例来源:origin: OpenNMS/opennms
public Log getLog() {
Event event = getEvent();
Events events = new Events();
events.setEvent(new Event[]{event});
Header header = new Header();
header.setCreated(StringUtils.toStringEfficiently(event.getCreationTime()));
Log log = new Log();
log.setHeader(header);
log.setEvents(events);
return log;
}
内容来源于网络,如有侵权,请联系作者删除!