|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.grid.jgdi.event.Event com.sun.grid.jgdi.event.ChangedObjectEvent
public abstract class ChangedObjectEvent
Base class of all events which signalizes a changes of objects in the Sun [tm] Grid Engine.
Constructor Summary | |
---|---|
ChangedObjectEvent(EventType eventType,
long timestamp,
int eventId,
java.lang.Class objectType)
Creates a new instance of ChangedObjectEvent |
Method Summary | |
---|---|
java.lang.Object |
getChangedObject()
Get the new version of the changed object which has been changed by this event |
java.lang.Class |
getObjectType()
Get the type of the changed objects |
void |
setChangedObject(java.lang.Object changedObj)
Set the new version of the changed object |
abstract void |
setPKInfo(int numKey1,
int numKey2,
java.lang.String strKey1,
java.lang.String strKey2)
Set the primary key information of the changed object into the event. |
java.lang.String |
toString()
|
Methods inherited from class com.sun.grid.jgdi.event.Event |
---|
getEventId, getTimestamp, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChangedObjectEvent(EventType eventType, long timestamp, int eventId, java.lang.Class objectType)
eventType
- type of eventtimestamp
- timestamp when the event occuredeventId
- id of the eventobjectType
- type of the changed objectsMethod Detail |
---|
public java.lang.Class getObjectType()
public void setChangedObject(java.lang.Object changedObj)
changedObj
- the changed object
java.lang.IllegalArgumentException
- if changedObj
is null
java.lang.IllegalArgumentException
- if the class object type for the event is not
assignable from the class of changedObj
getObjectType()
public java.lang.Object getChangedObject()
public java.lang.String toString()
toString
in class Event
public abstract void setPKInfo(int numKey1, int numKey2, java.lang.String strKey1, java.lang.String strKey2)
This method is called from the the native part of jgdi to fill the primary key information into a del event
numKey1
- first numerical primary key of the deleted objectnumKey2
- second numerical primary key of the deleted objectstrKey1
- first string primary key of the deleted objectstrKey2
- second string primary key of the deleted object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |