|
Log4j 1.0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.psnc.expres.broker.notification.handler.AbstractNotificationHandler
public abstract class AbstractNotificationHandler
AbstractNotificationHandler
class - abstract notification handler
class. This class is parent class for all notification handlers.
Constructor Summary | |
---|---|
AbstractNotificationHandler(pl.psnc.expres.model.experiment.VlbiExperiment vlbiExperiment,
pl.psnc.expres.remote.protocol.notification.Notification notification)
Creates a new instance of AbstractNotificationHandler |
Method Summary | |
---|---|
protected void |
debugState()
Prints state information and sender |
protected java.lang.String |
getCallBackLocation()
Get location of callback service - vlbi broker notification service |
pl.psnc.expres.remote.protocol.ChunkInfo |
getChunkInfo()
Get value of field: chunkInfo |
pl.psnc.expres.remote.protocol.MessageHeader |
getMHeader()
Get value of field: mHeader |
pl.psnc.expres.remote.protocol.notification.Notification |
getNotification()
Get value of field: notification |
java.lang.String |
getSenderLocation()
Get location of a message sender |
pl.psnc.expres.remote.protocol.notification.State |
getState()
Get value of field: state |
pl.psnc.expres.model.experiment.VlbiExperiment |
getVlbiExperiment()
Get value of field: vlbiExperiment |
abstract void |
handle()
Handles notification event |
protected void |
handleExperimentEnd()
Handles experiment end event: notifies all observer |
protected void |
handleOk()
|
protected void |
saveState(CorrelationJobValue corJob,
pl.psnc.expres.remote.protocol.notification.State state)
Save correlation state for the given translation node |
void |
setChunkInfo(pl.psnc.expres.remote.protocol.ChunkInfo chunkInfo)
Set value of field: chunkInfo |
void |
setMHeader(pl.psnc.expres.remote.protocol.MessageHeader header)
Set value of field: mHeader |
void |
setState(pl.psnc.expres.remote.protocol.notification.State state)
Set value of field: state |
void |
setVlbiExperiment(pl.psnc.expres.model.experiment.VlbiExperiment vlbiExperiment)
Set value of field: vlbiExperiment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractNotificationHandler(pl.psnc.expres.model.experiment.VlbiExperiment vlbiExperiment, pl.psnc.expres.remote.protocol.notification.Notification notification)
AbstractNotificationHandler
vlbiExperiment
- vlbi experiment instancenotification
- instance of Notification
Method Detail |
---|
protected void debugState()
protected void handleOk()
protected void saveState(CorrelationJobValue corJob, pl.psnc.expres.remote.protocol.notification.State state)
corJob
- correlation job instancestate
- state to storeprotected java.lang.String getCallBackLocation() throws pl.psnc.vlab.exception.ResourceNotFoundException
pl.psnc.vlab.exception.ResourceNotFoundException
- thrown when configuration object cannot
be foundprotected void handleExperimentEnd() throws pl.psnc.expres.exception.RemoteException
pl.psnc.expres.exception.RemoteException
public pl.psnc.expres.remote.protocol.ChunkInfo getChunkInfo()
public pl.psnc.expres.remote.protocol.MessageHeader getMHeader()
public pl.psnc.expres.remote.protocol.notification.Notification getNotification()
public java.lang.String getSenderLocation()
public pl.psnc.expres.remote.protocol.notification.State getState()
public pl.psnc.expres.model.experiment.VlbiExperiment getVlbiExperiment()
public abstract void handle()
public void setChunkInfo(pl.psnc.expres.remote.protocol.ChunkInfo chunkInfo)
chunkInfo
- the chunkInfo to setpublic void setMHeader(pl.psnc.expres.remote.protocol.MessageHeader header)
header
- the mHeader to setpublic void setState(pl.psnc.expres.remote.protocol.notification.State state)
state
- the state to setpublic void setVlbiExperiment(pl.psnc.expres.model.experiment.VlbiExperiment vlbiExperiment)
vlbiExperiment
- the vlbiExperiment to set
|
Log4j 1.0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |