|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.marshall.Marshaller
public abstract class Marshaller
Abstract Marshaller for JBoss Cache.
Field Summary | |
---|---|
protected boolean |
defaultInactive
|
protected RegionManager |
regionManager
|
protected boolean |
useRegionBasedMarshalling
|
Constructor Summary | |
---|---|
Marshaller()
|
Method Summary | |
---|---|
void |
activate(java.lang.String fqn)
Activates unmarshalling of replication messages for the region rooted in the given Fqn. |
protected java.lang.String |
extractFqn(JBCMethodCall methodCall)
|
protected java.lang.String |
extractFqnFromListOfMethodCall(JBCMethodCall call)
This is "replicate" call with a list of MethodCall argument. |
protected java.lang.String |
extractFqnFromMethodCall(JBCMethodCall call)
This is "replicate" call with a single MethodCall argument. |
java.lang.ClassLoader |
getClassLoader(java.lang.String fqn)
Gets the classloader previously registered for fqn by
a call to registerClassLoader(String, ClassLoader) . |
protected Region |
getRegion(java.lang.String fqnString)
|
void |
inactivate(java.lang.String fqn)
Disables unmarshalling of replication messages for the region rooted in the given Fqn. |
protected void |
init(RegionManager manager,
boolean defaultInactive,
boolean useRegionBasedMarshalling)
|
boolean |
isInactive(java.lang.String fqn)
Gets whether unmarshalling has been disabled for the region rooted in the given Fqn. |
abstract java.lang.Object |
objectFromStream(java.io.ObjectInputStream in)
Implementation classes will need to parse the given stream and create an object from it. |
abstract void |
objectToStream(java.lang.Object obj,
java.io.ObjectOutputStream out)
Implementation classes will need to marshall the object passed in and write the object into the given stream. |
void |
registerClassLoader(java.lang.String fqn,
java.lang.ClassLoader cl)
Register the specific classloader under the fqn region. |
void |
unregisterClassLoader(java.lang.String fqn)
Un-register the class loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean useRegionBasedMarshalling
protected RegionManager regionManager
protected boolean defaultInactive
Constructor Detail |
---|
public Marshaller()
Method Detail |
---|
protected void init(RegionManager manager, boolean defaultInactive, boolean useRegionBasedMarshalling)
public abstract void objectToStream(java.lang.Object obj, java.io.ObjectOutputStream out) throws java.lang.Exception
obj
- out
-
java.lang.Exception
public abstract java.lang.Object objectFromStream(java.io.ObjectInputStream in) throws java.lang.Exception
in
-
java.lang.Exception
protected java.lang.String extractFqnFromMethodCall(JBCMethodCall call)
call
- protected java.lang.String extractFqnFromListOfMethodCall(JBCMethodCall call)
call
- protected java.lang.String extractFqn(JBCMethodCall methodCall)
protected Region getRegion(java.lang.String fqnString)
public void registerClassLoader(java.lang.String fqn, java.lang.ClassLoader cl) throws RegionNameConflictException
fqn
region.
fqn
- cl
-
RegionNameConflictException
- thrown if there is a conflict in region definition.public void unregisterClassLoader(java.lang.String fqn) throws RegionNotFoundException
fqn
-
RegionNotFoundException
public java.lang.ClassLoader getClassLoader(java.lang.String fqn) throws RegionNotFoundException
fqn
by
a call to registerClassLoader(String, ClassLoader)
.
fqn
- the fqn
fqn
, or null
if no classloader has
been associated with the region.
RegionNotFoundException
public void activate(java.lang.String fqn) throws RegionNameConflictException
fqn
-
RegionNameConflictException
public void inactivate(java.lang.String fqn) throws RegionNameConflictException
fqn
-
RegionNameConflictException
- if there is a conflict in region definition.public boolean isInactive(java.lang.String fqn)
fqn
-
true
if unmarshalling is disabled;
false
otherwise.activate(java.lang.String)
,
inactivate(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |