Class CorrelationIdPool
- java.lang.Object
-
- com.opencloud.slee.resources.correlation.profile.CorrelationIdPool
-
- All Implemented Interfaces:
CorrelationIdPoolCMP
,Profile
public abstract class CorrelationIdPool extends Object implements Profile, CorrelationIdPoolCMP
Profile abstract class for the configuration of a correlation id pool
-
-
Constructor Summary
Constructors Constructor Description CorrelationIdPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkValidNonZeroPositiveNumFields(String name, int[] content, List<String> errors)
Check that each member of a set of ints is greater than 0void
checkValidPositiveNumField(String name, long content, List<String> errors)
Check that a long number is greater than, or equal to 0void
checkValidPositiveNumFieldWithMaxValue(String name, int content, int maxValue, List<String> errors)
Check that an int number is not greater than a some maximumvoid
checkValidPositiveNumFieldWithMinAndMaxValue(String name, int content, int minValue, int maxValue, List<String> errors)
Check that an int number is not less than a minimum value, or greater than a maximum valuevoid
checkValidStringField(String name, String content, List<String> errors)
Checks that the String provided as 'content' is notnull
and not equal to "".void
profileActivate()
void
profileInitialize()
void
profileLoad()
void
profilePassivate()
void
profilePostCreate()
void
profileRemove()
void
profileStore()
void
profileVerify()
void
setProfileContext(ProfileContext profileContext)
void
unsetProfileContext()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opencloud.slee.resources.correlation.profile.CorrelationIdPoolCMP
getAddressPrefixes, getCorrelationIDNumberOfDigits, getCorrelationIDRangePerNode, getIsPreconfiguredCorrelationIdSetUsed, getMaxCorrelationIDInCluster, getMinCorrelationIDInCluster, getNodeIds, getPreconfiguredCorrelationIdSet, setAddressPrefixes, setCorrelationIDNumberOfDigits, setCorrelationIDRangePerNode, setIsPreconfiguredCorrelationIdSetUsed, setMaxCorrelationIDInCluster, setMinCorrelationIDInCluster, setNodeIds, setPreconfiguredCorrelationIdSet
-
-
-
-
Method Detail
-
setProfileContext
public void setProfileContext(ProfileContext profileContext)
- Specified by:
setProfileContext
in interfaceProfile
-
profileInitialize
public void profileInitialize()
- Specified by:
profileInitialize
in interfaceProfile
-
profileVerify
public void profileVerify() throws ProfileVerificationException
- Specified by:
profileVerify
in interfaceProfile
- Throws:
ProfileVerificationException
-
checkValidPositiveNumField
public final void checkValidPositiveNumField(String name, long content, List<String> errors)
Check that a long number is greater than, or equal to 0- Parameters:
name
- The field namecontent
- the number to checkerrors
- A list of error messages to which this method might add an entry if the check turns out negative.
-
checkValidPositiveNumFieldWithMinAndMaxValue
public final void checkValidPositiveNumFieldWithMinAndMaxValue(String name, int content, int minValue, int maxValue, List<String> errors)
Check that an int number is not less than a minimum value, or greater than a maximum value- Parameters:
name
- The field namecontent
- the number to checkminValue
- the minimum valuemaxValue
- the maximum valueerrors
- A list of error messages to which this method might add an entry if the check turns out negative.
-
checkValidStringField
public final void checkValidStringField(String name, String content, List<String> errors)
Checks that the String provided as 'content' is notnull
and not equal to "".- Parameters:
name
- The field namecontent
- The string to checkerrors
- A list of error messages to which this method might add an entry if the check turns out negative.
-
checkValidNonZeroPositiveNumFields
public final void checkValidNonZeroPositiveNumFields(String name, int[] content, List<String> errors)
Check that each member of a set of ints is greater than 0- Parameters:
name
- The field namecontent
- the number to checkerrors
- A list of error messages to which this method might add an entry if the check turns out negative.
-
checkValidPositiveNumFieldWithMaxValue
public final void checkValidPositiveNumFieldWithMaxValue(String name, int content, int maxValue, List<String> errors)
Check that an int number is not greater than a some maximum- Parameters:
name
- The field namecontent
- the number to checkmaxValue
- the maximum valueerrors
- A list of error messages to which this method might add an entry if the check turns out negative.
-
profilePostCreate
public void profilePostCreate()
- Specified by:
profilePostCreate
in interfaceProfile
-
profileStore
public void profileStore()
- Specified by:
profileStore
in interfaceProfile
-
profileActivate
public void profileActivate()
- Specified by:
profileActivate
in interfaceProfile
-
unsetProfileContext
public void unsetProfileContext()
- Specified by:
unsetProfileContext
in interfaceProfile
-
profileLoad
public void profileLoad()
- Specified by:
profileLoad
in interfaceProfile
-
profileRemove
public void profileRemove()
- Specified by:
profileRemove
in interfaceProfile
-
profilePassivate
public void profilePassivate()
- Specified by:
profilePassivate
in interfaceProfile
-
-