Package es.bsc.dataclay.util.events.type
Class PersistedObjEventType
- java.lang.Object
-
- es.bsc.dataclay.util.events.type.EventType
-
- es.bsc.dataclay.util.events.type.PersistedObjEventType
-
public final class PersistedObjEventType extends EventType
This class represents an event type for an object was persisted.
-
-
Field Summary
-
Fields inherited from class es.bsc.dataclay.util.events.type.EventType
eventTypeEnum
-
-
Constructor Summary
Constructors Constructor Description PersistedObjEventType()
Constructor used for deserialization.PersistedObjEventType(MetaClassID newclassID)
ConstructorPersistedObjEventType(Class<?> stubClazz)
ConstructorPersistedObjEventType(String newnamespace, String newclassName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkIsEventType(EventMessage message)
Checks if event received belongs to this event type.boolean
equals(Object obj)
MetaClassID
getClassID()
Get the PersistedObjExecCondition::classIDString
getClassName()
String
getNamespace()
int
hashCode()
void
init(AccountID accountID, PasswordCredential credential, String newnamespace, LogicModuleAPI lm)
Initialize (if needed) IDs from specifications (example: className -> class ID)void
setClassID(MetaClassID newclassID)
Set the PersistedObjExecCondition::classIDvoid
setClassName(String newclassName)
void
setNamespace(String newnamespace)
String
toString()
-
Methods inherited from class es.bsc.dataclay.util.events.type.EventType
getEventTypeEnum, getPriority, setEventTypeEnum
-
-
-
-
Constructor Detail
-
PersistedObjEventType
public PersistedObjEventType()
Constructor used for deserialization.
-
PersistedObjEventType
public PersistedObjEventType(String newnamespace, String newclassName)
Constructor- Parameters:
newnamespace
- Namespace of classnewclassName
- Class name of class
-
PersistedObjEventType
public PersistedObjEventType(MetaClassID newclassID)
Constructor- Parameters:
newclassID
- Class ID of condition.
-
PersistedObjEventType
public PersistedObjEventType(Class<?> stubClazz)
Constructor- Parameters:
stubClazz
- Stub of class being used. If it is a class being registered, only the name will be set.
-
-
Method Detail
-
init
public void init(AccountID accountID, PasswordCredential credential, String newnamespace, LogicModuleAPI lm)
Description copied from class:EventType
Initialize (if needed) IDs from specifications (example: className -> class ID)- Specified by:
init
in classEventType
- Parameters:
accountID
- ID of account registering the Event Typecredential
- Credentials of account registering the Event Typenewnamespace
- Namespace being used to register events. Used for registration of classes and ECAs at once.lm
- Reference to LogicModule to seek for IDs and so on.
-
getClassID
public MetaClassID getClassID()
Get the PersistedObjExecCondition::classID- Returns:
- the classID
-
setClassID
public void setClassID(MetaClassID newclassID)
Set the PersistedObjExecCondition::classID- Parameters:
newclassID
- the classID to set
-
checkIsEventType
public boolean checkIsEventType(EventMessage message)
Description copied from class:EventType
Checks if event received belongs to this event type.- Specified by:
checkIsEventType
in classEventType
- Parameters:
message
- Event message- Returns:
- TRUE if message belongs to this event type. FALSE otherwise.
-
getNamespace
public String getNamespace()
- Returns:
- the namespace
-
setNamespace
public void setNamespace(String newnamespace)
- Parameters:
newnamespace
- the namespace to set
-
getClassName
public String getClassName()
- Returns:
- the className
-
setClassName
public void setClassName(String newclassName)
- Parameters:
newclassName
- the className to set
-
-