|
|||||||||
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.ResourceDepletionEvent
public class ResourceDepletionEvent
Event that indicates resources are low, and the system is about to destroy application(s) to attempt to correct this.
Field Summary | |
---|---|
static int |
RESOURCE_CPU_BANDWIDTH_DEPLETED
Available CPU cycles is depleted to an implementation specific threshold. |
static int |
RESOURCE_RC_BANDWIDTH_DEPLETED
Available reverse channel bandwidth is depleted to implementation specific threshold. |
static int |
RESOURCE_SYS_MEM_DEPLETED
Overall system memory is depleted to an implementation specific threshold. |
static int |
RESOURCE_VM_MEM_DEPLETED
VM memory for an application is depleted to an implementation specific threshold. |
Constructor Summary | |
---|---|
ResourceDepletionEvent(int typeCode,
java.lang.String message)
System event constructor assigns an eventId, Date, and ApplicationIdentifier. |
|
ResourceDepletionEvent(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 RESOURCE_SYS_MEM_DEPLETED
public static final int RESOURCE_VM_MEM_DEPLETED
public static final int RESOURCE_CPU_BANDWIDTH_DEPLETED
Note that the presence of this event type does not imply that the platform's application manager must destroy applications if CPU usage is too high; merely that if it does then it must first send this event.
public static final int RESOURCE_RC_BANDWIDTH_DEPLETED
Note that the presence of this event type does not imply that the platform's application manager must destroy applications if return channel bandwidth usage is too high; merely that if it does then it must first send this event.
Constructor Detail |
---|
public ResourceDepletionEvent(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. Since there are no defined
application ranges for resource depletion events, this exception will always be
thrown if this constructor is called by an application.public ResourceDepletionEvent(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 |