|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.marshall.AbstractMarshaller
public abstract class AbstractMarshaller
Abstract AbstractMarshaller for JBoss Cache.
Field Summary | |
---|---|
protected Configuration |
configuration
|
protected ClassLoader |
defaultClassLoader
|
protected boolean |
defaultInactive
|
protected org.apache.commons.logging.Log |
log
|
protected RegionManager |
regionManager
|
protected boolean |
trace
|
protected boolean |
useRefs
|
protected boolean |
useRegionBasedMarshalling
|
Constructor Summary | |
---|---|
AbstractMarshaller()
|
Method Summary | |
---|---|
protected Fqn |
extractFqn(MethodCall methodCall)
|
protected Fqn |
extractFqnFromListOfMethodCall(MethodCall call)
This is "replicate" call with a list of MethodCall argument. |
protected Fqn |
extractFqnFromMethodCall(MethodCall call)
This is "replicate" call with a single MethodCall argument. |
protected Region |
getRegion(Fqn fqn)
Retrieves the Region from the RegionManager after taking into account that this may be a Buddy Backup Fqn. |
protected void |
init()
|
protected void |
initLogger()
|
Object |
objectFromByteBuffer(byte[] bytes)
|
Object |
objectFromStream(InputStream in)
Unmarshalls an object from an InputStream |
byte[] |
objectToByteBuffer(Object obj)
|
byte[] |
objectToByteBuffer(Object obj,
boolean b)
Same as RpcDispatcher.Marshaller.objectToByteBuffer(Object) except that you can optionally specify to write object stream headers. |
org.jboss.cache.marshall.RegionalizedMethodCall |
regionalizedMethodCallFromByteBuffer(byte[] buffer)
Returns a RegionalizedMethodCall from a byte buffer. |
org.jboss.cache.marshall.RegionalizedMethodCall |
regionalizedMethodCallFromObjectStream(ObjectInputStream in)
Returns a RegionalizedMethodCall from an object input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.cache.marshall.Marshaller |
---|
objectFromObjectStream, objectToObjectStream, objectToObjectStream |
Field Detail |
---|
protected boolean useRegionBasedMarshalling
protected RegionManager regionManager
protected boolean defaultInactive
protected org.apache.commons.logging.Log log
protected boolean trace
protected Configuration configuration
protected ClassLoader defaultClassLoader
protected boolean useRefs
Constructor Detail |
---|
public AbstractMarshaller()
Method Detail |
---|
protected void init()
protected void initLogger()
public byte[] objectToByteBuffer(Object obj) throws Exception
objectToByteBuffer
in interface org.jgroups.blocks.RpcDispatcher.Marshaller
Exception
public byte[] objectToByteBuffer(Object obj, boolean b) throws Exception
Marshaller
RpcDispatcher.Marshaller.objectToByteBuffer(Object)
except that you can optionally specify to write object stream headers.
Useful if you intend to deserialize the stream with non-pooled input streams.
objectToByteBuffer
in interface Marshaller
Exception
public Object objectFromByteBuffer(byte[] bytes) throws Exception
objectFromByteBuffer
in interface org.jgroups.blocks.RpcDispatcher.Marshaller
Exception
public Object objectFromStream(InputStream in) throws Exception
Marshaller
InputStream
objectFromStream
in interface Marshaller
in
- stream to unmarshall from
Exception
public org.jboss.cache.marshall.RegionalizedMethodCall regionalizedMethodCallFromByteBuffer(byte[] buffer) throws Exception
Marshaller
RpcDispatcher.Marshaller.objectFromByteBuffer(byte[])
regionalizedMethodCallFromByteBuffer
in interface Marshaller
buffer
- byte buffer
Exception
- if there are issuespublic org.jboss.cache.marshall.RegionalizedMethodCall regionalizedMethodCallFromObjectStream(ObjectInputStream in) throws Exception
Marshaller
Marshaller.objectFromObjectStream(java.io.ObjectInputStream)
regionalizedMethodCallFromObjectStream
in interface Marshaller
in
- object inout stream
Exception
- if there are issuesprotected Fqn extractFqnFromMethodCall(MethodCall call)
call
- protected Fqn extractFqnFromListOfMethodCall(MethodCall call)
call
- protected Fqn extractFqn(MethodCall methodCall)
protected Region getRegion(Fqn fqn)
Region
from the RegionManager
after taking into account that this may be a Buddy Backup Fqn.
If the fqn passed in is null, the region has been deactivated or if a region cannot be found, this method returns a null.
fqn
- of the region to locate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |