|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.cluster.impl.ConfigCheck
public final class ConfigCheck
Contains enough information about Hazelcast Config, to do a validation check so that clusters with different configurations don't join.
Constructor Summary | |
---|---|
ConfigCheck()
|
|
ConfigCheck(Config config,
String joinerType)
|
Method Summary | |
---|---|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class. |
int |
getId()
Returns type identifier for this class. |
boolean |
isCompatible(ConfigCheck found)
Checks if 2 Hazelcast configurations are compatible. |
boolean |
isSameGroup(ConfigCheck found)
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigCheck()
public ConfigCheck(Config config, String joinerType)
Method Detail |
---|
public boolean isCompatible(ConfigCheck found)
found
-
ConfigMismatchException
- if the configuration isn't compatible. An exception is thrown so
we can pass a nice message.public boolean isSameGroup(ConfigCheck found)
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |