org.jppf.server.nio.nodeserver
Class LocalNodeMessage
java.lang.Object
org.jppf.server.nio.nodeserver.AbstractNodeMessage
org.jppf.server.nio.nodeserver.LocalNodeMessage
public class LocalNodeMessage
- extends AbstractNodeMessage
Node message implementation for an in-VM node.
- Author:
- Laurent Cohen
LocalNodeMessage
public LocalNodeMessage()
read
public boolean read(ChannelWrapper<?> wrapper)
throws Exception
- Read data from the channel.
- Overrides:
read in class AbstractNodeMessage
- Parameters:
wrapper - the channel to read from.
- Returns:
- true if the data has been completely read from the channel, false otherwise.
- Throws:
Exception - if an IO error occurs.
readNextObject
protected boolean readNextObject(ChannelWrapper<?> wrapper)
throws Exception
- Read the next serializable object from the specified channel.
- Specified by:
readNextObject in class AbstractNodeMessage
- Parameters:
wrapper - the channel to read from.
- Returns:
- true if the object has been completely read from the channel, false otherwise.
- Throws:
Exception - if an IO error occurs.
write
public boolean write(ChannelWrapper<?> wrapper)
throws Exception
- Read data from the channel.
- Overrides:
write in class AbstractNodeMessage
- Parameters:
wrapper - the channel to write to.
- Returns:
- true if the data has been completely written the channel, false otherwise.
- Throws:
Exception - if an IO error occurs.
writeNextObject
protected boolean writeNextObject(ChannelWrapper<?> wrapper)
throws Exception
- Write the next object to the specified channel.
- Specified by:
writeNextObject in class AbstractNodeMessage
- Parameters:
wrapper - the channel to write to.
- Returns:
- true if the object has been completely written the channel, false otherwise.
- Throws:
Exception - if an IO error occurs.
Copyright © 2005-2010 JPPF Team.