|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ocap.system.event.SystemEvent
org.ocap.system.event.RebootEvent
public class RebootEvent
This class represents an event returned by the system when a reboot is instigated. Reboot event type codes are defined in this class. Implementations may use the reboot type codes in this class or proprietary class codes that are understood by the network.
Field Summary | |
---|---|
static int |
REBOOT_BY_IMPLEMENTATION
Reboot instigated by implementation; no error encountered. |
static int |
REBOOT_BY_TRUSTED_APP
Reboot instigated by trusted application. |
static int |
REBOOT_FOR_UNRECOVERABLE_HW_ERROR
Reboot instigated by the implementation; unrecoverable hardware error encountered. |
static int |
REBOOT_FOR_UNRECOVERABLE_SYS_ERROR
Reboot instigated by implementation; unrecoverable system error encountered. |
Constructor Summary | |
---|---|
RebootEvent(int typeCode,
java.lang.String message)
System event constructor assigns an eventId, Date, and ApplicationIdentifier. |
|
RebootEvent(int typeCode,
java.lang.String message,
long date,
AppID appId)
This constructor is provided for internal use by OCAP implementations; applications SHOULD NOT call it. |
Method Summary |
---|
Methods inherited from class org.ocap.system.event.SystemEvent |
---|
getAppID, getDate, getMessage, getTypeCode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REBOOT_BY_IMPLEMENTATION
public static final int REBOOT_FOR_UNRECOVERABLE_SYS_ERROR
public static final int REBOOT_FOR_UNRECOVERABLE_HW_ERROR
REBOOT_FOR_UNRECOVERABLE_SYS_ERROR
MUST be generated instead.
public static final int REBOOT_BY_TRUSTED_APP
Host.reboot()
,
Constant Field ValuesConstructor Detail |
---|
public RebootEvent(int typeCode, java.lang.String message)
typeCode
- - Unique event type.message
- - Readable message specific to the event generator.
java.lang.IllegalArgumentException
- if the typeCode is not in a defined application range
when the event is created by an application.public RebootEvent(int typeCode, java.lang.String message, long date, AppID appId)
typeCode
- - The unique error type code.message
- - Readable message specific to the event generator.date
- - Event date in milli-seconds from midnight January 1, 1970 GMT.appId
- - The Id of the application logging the event.
java.lang.SecurityException
- if this constructor is called by any application.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |