Apache Tomcat 7.0.28

org.apache.catalina.tribes.tipis
Class AbstractReplicatedMap.MapEntry

java.lang.Object
  extended by org.apache.catalina.tribes.tipis.AbstractReplicatedMap.MapEntry
All Implemented Interfaces:
Map.Entry<Object,Object>
Enclosing class:
AbstractReplicatedMap

public static class AbstractReplicatedMap.MapEntry
extends Object
implements Map.Entry<Object,Object>


Constructor Summary
AbstractReplicatedMap.MapEntry(Object key, Object value)
           
 
Method Summary
 void apply(byte[] data, int offset, int length, boolean diff)
          apply a diff, or an entire object
 boolean equals(Object o)
           
 Member[] getBackupNodes()
           
 Object getKey()
           
 Member getPrimary()
           
 Object getValue()
           
 int hashCode()
           
 boolean isActive()
           
 boolean isBackup()
           
 boolean isDiffable()
           
 boolean isKeySerializable()
           
 boolean isPrimary()
           
 boolean isProxy()
           
 boolean isSerializable()
           
 boolean isValueSerializable()
           
 void setBackup(boolean backup)
           
 void setBackupNodes(Member[] nodes)
           
 Object setKey(Object key)
           
 void setPrimary(Member m)
           
 void setProxy(boolean proxy)
           
 Object setValue(Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractReplicatedMap.MapEntry

public AbstractReplicatedMap.MapEntry(Object key,
                                      Object value)
Method Detail

isKeySerializable

public boolean isKeySerializable()

isValueSerializable

public boolean isValueSerializable()

isSerializable

public boolean isSerializable()

isBackup

public boolean isBackup()

setBackup

public void setBackup(boolean backup)

isProxy

public boolean isProxy()

isPrimary

public boolean isPrimary()

isActive

public boolean isActive()

setProxy

public void setProxy(boolean proxy)

isDiffable

public boolean isDiffable()

setBackupNodes

public void setBackupNodes(Member[] nodes)

getBackupNodes

public Member[] getBackupNodes()

setPrimary

public void setPrimary(Member m)

getPrimary

public Member getPrimary()

getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry<Object,Object>

setValue

public Object setValue(Object value)
Specified by:
setValue in interface Map.Entry<Object,Object>

getKey

public Object getKey()
Specified by:
getKey in interface Map.Entry<Object,Object>

setKey

public Object setKey(Object key)

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry<Object,Object>
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Specified by:
equals in interface Map.Entry<Object,Object>
Overrides:
equals in class Object

apply

public void apply(byte[] data,
                  int offset,
                  int length,
                  boolean diff)
           throws IOException,
                  ClassNotFoundException
apply a diff, or an entire object

Parameters:
data - byte[]
offset - int
length - int
diff - boolean
Throws:
IOException
ClassNotFoundException

toString

public String toString()
Overrides:
toString in class Object

Apache Tomcat 7.0.28

Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.