|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.resoa.stack.protocol.service.ProtocolServiceImpl
public abstract class ProtocolServiceImpl
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
|
protected java.lang.String |
protserviceID
|
protected Stack |
stack
|
| Constructor Summary | |
|---|---|
protected |
ProtocolServiceImpl(Stack stack,
java.lang.String serviceID)
Constructor |
| Method Summary | |
|---|---|
void |
execute(org.resoa.grid.GridSession session)
Excute the protocol service |
protected byte[] |
getActivationMap()
|
boolean |
isActive()
is the protocol service activated within stack? |
protected abstract void |
onExecute(org.resoa.grid.Message msg)
Invoked during execute |
abstract void |
onNewMessage(org.resoa.grid.Message msg)
invoked on incoming protocol message |
protected void |
setActivationMap(byte[] activationMap)
|
void |
setActive(boolean active)
set the protocol service active flag? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.slf4j.Logger logger
protected java.lang.String protserviceID
protected Stack stack
| Constructor Detail |
|---|
protected ProtocolServiceImpl(Stack stack,
java.lang.String serviceID)
stack - the stackserviceID - the serviceID| Method Detail |
|---|
public boolean isActive()
ProtocolService
isActive in interface ProtocolServicepublic void setActive(boolean active)
ProtocolService
setActive in interface ProtocolServiceactive - The active to set.
protected abstract void onExecute(org.resoa.grid.Message msg)
throws java.lang.Exception
msg - the message
java.lang.Exception
public void execute(org.resoa.grid.GridSession session)
throws org.resoa.exception.ProtocolException
ProtocolService
execute in interface ProtocolServiceorg.resoa.exception.ProtocolException
public abstract void onNewMessage(org.resoa.grid.Message msg)
throws org.resoa.exception.ProtocolException
ProtocolService
onNewMessage in interface ProtocolServiceorg.resoa.exception.ProtocolExceptionprotected byte[] getActivationMap()
protected void setActivationMap(byte[] activationMap)
activationMap - The activationMap to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||