org.jclouds.cloudstack.domain
Class Event
java.lang.Object
org.jclouds.cloudstack.domain.Event
- All Implemented Interfaces:
- Comparable<Event>
public class Event
- extends Object
- implements Comparable<Event>
- Author:
- Vijay Kiran
Constructor Summary |
Event(long id,
String account,
String description,
Date created,
String domain,
long domainId,
String level,
String parentId,
String state,
String type,
String username)
|
Event
public Event(long id,
String account,
String description,
Date created,
String domain,
long domainId,
String level,
String parentId,
String state,
String type,
String username)
builder
public static Event.Builder builder()
getId
public long getId()
- Returns:
- the ID of the event
getAccount
public String getAccount()
- Returns:
- the account name for the account that owns the object being acted on in the event
(e.g. the owner of the virtual machine, ip address, or security group)
getCreated
public Date getCreated()
- Returns:
- the date the event was created
getDescription
public String getDescription()
- Returns:
- the description of the event
getDomain
public String getDomain()
- Returns:
- the name of the account's domain
getDomainId
public long getDomainId()
- Returns:
- the id of the account's domain
getLevel
public String getLevel()
- Returns:
- the event level (INFO, WARN, ERROR)
getParentId
public String getParentId()
- Returns:
- whether the event is parented
getState
public String getState()
- Returns:
- the state of the event
getType
public String getType()
- Returns:
- the type of the event (see event types)
getUsername
public String getUsername()
- Returns:
- the name of the user who performed the action (can be different from the account if
an admin is performing an action for a user, e.g. starting/stopping a user's virtual machine)
compareTo
public int compareTo(Event arg0)
- Specified by:
compareTo
in interface Comparable<Event>
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.