public class ServerOnlineStatusEvent extends ApplicationEvent
ClusterManagementService
when this server's online
status changes. Listeners can register for this event by implementing the
ApplicationListener
interface or using the EventListener
annotation.source
Constructor and Description |
---|
ServerOnlineStatusEvent(ClusterManagementService source,
boolean online)
Creates an event sent by the specified cluster management service and
having the specified online status.
|
Modifier and Type | Method and Description |
---|---|
ClusterManagementService |
getSource() |
boolean |
isOnline()
Tells the new online status of the server.
|
getTimestamp
toString
public ServerOnlineStatusEvent(ClusterManagementService source, boolean online)
source
- cluster management service sending the event.online
- true
if this server is online now,
false
if it is offline now.public ClusterManagementService getSource()
getSource
in class EventObject
public boolean isOnline()
true
means that
the server changed from offline to online and false
means
that it changed from online to offline.Copyright © 2011–2017 aquenos GmbH. All rights reserved.