ConfigurationMBean
, DescriptorBean
, javax.management.DynamicMBean
, javax.management.MBeanRegistration
, javax.management.NotificationBroadcaster
, SettableBean
, SingletonServiceBaseMBean
, WebLogicMBean
public interface SingletonServiceMBean extends SingletonServiceBaseMBean
SingletonServiceBaseMBean
DEFAULT_EMPTY_BYTE_ARRAY
Modifier and Type | Method | Description |
---|---|---|
boolean |
addConstrainedCandidateServer(ServerMBean constrainedCandidateServer) |
|
ServerMBean[] |
getAllCandidateServers() |
Return a list of servers that are candidates to host the services
deployed to this migratable target.
|
java.lang.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(java.lang.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.
|
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener
getAttribute, getAttributes, invoke, setAttribute, setAttributes
postDeregister, postRegister, preDeregister, preRegister
addNotificationListener, getNotificationInfo, removeNotificationListener
getAdditionalMigrationAttempts, getHostingServer, getMillisToSleepBetweenAttempts, getUserPreferredServer, setAdditionalMigrationAttempts, setMillisToSleepBetweenAttempts, setUserPreferredServer
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
java.lang.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(java.lang.String className) throws javax.management.InvalidAttributeValueException
Sets the value of the className attribute.
className
- The new className valuejavax.management.InvalidAttributeValueException
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 javax.management.InvalidAttributeValueException
All constrained candiate servers must belong to the same cluster.
constrainedCandidateServers
- The new constrainedCandidateServers valuejavax.management.InvalidAttributeValueException
boolean addConstrainedCandidateServer(ServerMBean constrainedCandidateServer) throws javax.management.InvalidAttributeValueException
constrainedCandidateServer
- The server to be added as a constrained candidatejavax.management.InvalidAttributeValueException
boolean removeConstrainedCandidateServer(ServerMBean constrainedCandidateServer) throws javax.management.InvalidAttributeValueException
constrainedCandidateServer
- javax.management.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