public interface SingletonServiceMBean extends SingletonServiceBaseMBean
SingletonServiceBaseMBean
DEFAULT_EMPTY_BYTE_ARRAY
Modifier and Type | Method and Description |
---|---|
boolean |
addConstrainedCandidateServer(ServerMBean constrainedCandidateServer) |
ServerMBean[] |
getAllCandidateServers()
Return a list of servers that are candidates to host the services
deployed to this migratable target.
|
String |
getClassName()
The fully qualified name of a class to load and run.
|
ClusterMBean |
getCluster()
Returns the cluster this singleton service is associated
with.
|
ServerMBean[] |
getConstrainedCandidateServers()
Returns the (user restricted) list of servers that may host the
migratable target.
|
boolean |
removeConstrainedCandidateServer(ServerMBean constrainedCandidateServer) |
void |
setAllCandidateServers(ServerMBean[] servers)
NOT TO BE USED FROM THE OUTSIDE.
|
void |
setClassName(String className)
Sets the value of the className attribute.
|
void |
setCluster(ClusterMBean cluster)
Set the cluster this singleton service is associated with.
|
void |
setConstrainedCandidateServers(ServerMBean[] constrainedCandidateServers)
All constrained candiate servers must belong to the same
cluster.
|
getAdditionalMigrationAttempts, getHostingServer, getMillisToSleepBetweenAttempts, getUserPreferredServer, setAdditionalMigrationAttempts, setMillisToSleepBetweenAttempts, setUserPreferredServer
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
getAttribute, getAttributes, invoke, setAttribute, setAttributes
postDeregister, postRegister, preDeregister, preRegister
addNotificationListener, getNotificationInfo, removeNotificationListener
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener
String getClassName()
The fully qualified name of a class to load and run. The class must be on the server's classpath.
For example, mycompany.mypackage.myclass
void setClassName(String className) throws InvalidAttributeValueException
Sets the value of the className attribute.
className
- The new className valueInvalidAttributeValueException
SingletonServiceMBean.getClassName()
ServerMBean[] getConstrainedCandidateServers()
Returns the (user restricted) list of servers that may host the migratable target. The target will not be allowed to migrate to a server that is not in the returned list of servers. This feature is used to e.g. configure the two server that have access to a dual ported disk. All servers in this list must be part of the cluster that is associated with the migratable target.
void setConstrainedCandidateServers(ServerMBean[] constrainedCandidateServers) throws InvalidAttributeValueException
All constrained candiate servers must belong to the same cluster.
constrainedCandidateServers
- The new constrainedCandidateServers valueInvalidAttributeValueException
boolean addConstrainedCandidateServer(ServerMBean constrainedCandidateServer) throws InvalidAttributeValueException
constrainedCandidateServer
- The server to be added as a constrained candidateInvalidAttributeValueException
boolean removeConstrainedCandidateServer(ServerMBean constrainedCandidateServer) throws InvalidAttributeValueException
constrainedCandidateServer
- InvalidAttributeValueException
ClusterMBean getCluster()
Returns the cluster this singleton service is associated with.
void setCluster(ClusterMBean cluster)
Set the cluster this singleton service is associated with.
cluster
- The new cluster valueServerMBean[] getAllCandidateServers()
Return a list of servers that are candidates to host the services deployed to this migratable target. If the ConstrainedCandidateServer list is empty, all servers in the cluster are returned. If the ConstrainedCandidateServer is not empty those servers only will be returned. The user preferred server will be the first element in the list returned.
void setAllCandidateServers(ServerMBean[] servers)
NOT TO BE USED FROM THE OUTSIDE. MUST BE HERE ONLY TO SATISFY THE MBEAN SERVER. AllCandidateServers IS A DERIVED ATTRIBUTE AND THUS MUST NOT BE SET.
servers
- The new allCandidateServers value