org.ocap.system.event.RebootEvent.html Maven / Gradle / Ivy
RebootEvent
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
org.ocap.system.event
Class RebootEvent
java.lang.Object
org.ocap.system.event.SystemEvent
org.ocap.system.event.RebootEvent
public class RebootEvent
- extends SystemEvent
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 |
---|
REBOOT_BY_IMPLEMENTATION
public static final int REBOOT_BY_IMPLEMENTATION
- Reboot instigated by implementation; no error encountered.
- See Also:
- Constant Field Values
REBOOT_FOR_UNRECOVERABLE_SYS_ERROR
public static final int REBOOT_FOR_UNRECOVERABLE_SYS_ERROR
- Reboot instigated by implementation; unrecoverable system error encountered.
- See Also:
- Constant Field Values
REBOOT_FOR_UNRECOVERABLE_HW_ERROR
public static final int REBOOT_FOR_UNRECOVERABLE_HW_ERROR
- Reboot instigated by the implementation; unrecoverable hardware error encountered.
For hardware errors only, not firmware. If indistinguishable between software or
firmware errors in certain implementations,
REBOOT_FOR_UNRECOVERABLE_SYS_ERROR
MUST be generated instead.- See Also:
- Constant Field Values
REBOOT_BY_TRUSTED_APP
public static final int REBOOT_BY_TRUSTED_APP
- Reboot instigated by trusted application.
- See Also:
Host.reboot()
, Constant Field Values
Constructor Detail |
---|
RebootEvent
public RebootEvent(int typeCode, java.lang.String message)
- System event constructor assigns an eventId, Date, and ApplicationIdentifier.
- Parameters:
typeCode
- - Unique event type.message
- - Readable message specific to the event generator.- Throws:
java.lang.IllegalArgumentException
- if the typeCode is not in a defined application range when the event is created by an application.
RebootEvent
public 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.
- Parameters:
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.- Throws:
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 |