|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.marshall.AbstractMarshaller org.jboss.cache.marshall.VersionAwareMarshaller
public class VersionAwareMarshaller
A delegate to various other marshallers like CacheMarshaller200
.
This delegating marshaller adds versioning information to the stream when marshalling objects and
is able to pick the appropriate marshaller to delegate to based on the versioning information when
unmarshalling objects.
Field Summary |
---|
Fields inherited from class org.jboss.cache.marshall.AbstractMarshaller |
---|
configuration, defaultClassLoader, defaultInactive, regionManager, trace, useRefs, useRegionBasedMarshalling |
Constructor Summary | |
---|---|
VersionAwareMarshaller()
|
Method Summary | |
---|---|
protected int |
getCustomMarshallerVersionInt()
|
void |
initReplicationVersions()
|
Object |
objectFromByteBuffer(byte[] buf)
|
Object |
objectFromObjectStream(ObjectInputStream in)
Unmarshalls an object from an ObjectInputStream |
Object |
objectFromStream(InputStream is)
Unmarshalls an object from an InputStream |
byte[] |
objectToByteBuffer(Object obj)
|
void |
objectToObjectStream(Object obj,
ObjectOutputStream out)
Marshalls an object to a given ObjectOutputStream |
void |
objectToObjectStream(Object obj,
ObjectOutputStream out,
Fqn region)
Overloaded form of Marshaller.objectToObjectStream(Object,java.io.ObjectOutputStream) which adds a hint to the Fqn region |
org.jboss.cache.marshall.RegionalizedMethodCall |
regionalizedMethodCallFromByteBuffer(byte[] buf)
Returns a RegionalizedMethodCall from a byte buffer. |
Methods inherited from class org.jboss.cache.marshall.AbstractMarshaller |
---|
extractFqn, getRegion, init, initLogger, regionalizedMethodCallFromObjectStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionAwareMarshaller()
Method Detail |
---|
public void initReplicationVersions()
protected int getCustomMarshallerVersionInt()
public byte[] objectToByteBuffer(Object obj) throws Exception
objectToByteBuffer
in interface org.jgroups.blocks.RpcDispatcher.Marshaller
objectToByteBuffer
in class AbstractMarshaller
Exception
public Object objectFromByteBuffer(byte[] buf) throws Exception
objectFromByteBuffer
in interface org.jgroups.blocks.RpcDispatcher.Marshaller
objectFromByteBuffer
in class AbstractMarshaller
Exception
public org.jboss.cache.marshall.RegionalizedMethodCall regionalizedMethodCallFromByteBuffer(byte[] buf) throws Exception
Marshaller
RpcDispatcher.Marshaller.objectFromByteBuffer(byte[])
regionalizedMethodCallFromByteBuffer
in interface Marshaller
regionalizedMethodCallFromByteBuffer
in class AbstractMarshaller
buf
- byte buffer
Exception
- if there are issuespublic Object objectFromStream(InputStream is) throws Exception
Marshaller
InputStream
objectFromStream
in interface Marshaller
objectFromStream
in class AbstractMarshaller
is
- stream to unmarshall from
Exception
public void objectToObjectStream(Object obj, ObjectOutputStream out, Fqn region) throws Exception
Marshaller
Marshaller.objectToObjectStream(Object,java.io.ObjectOutputStream)
which adds a hint to the Fqn
region
obj
- object to marshallout
- stream to marshall toregion
- fqn that this object pertains to
Exception
public void objectToObjectStream(Object obj, ObjectOutputStream out) throws Exception
Marshaller
ObjectOutputStream
obj
- object to marshallout
- stream to marshall to
Exception
public Object objectFromObjectStream(ObjectInputStream in) throws Exception
Marshaller
ObjectInputStream
in
- stream to unmarshall from
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |