|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBeanHome
interface.)A target that is suitable for services that shall be active on at most one server of a cluster at a time.
This is a type-safe interface for a
WebLogic Server MBean, which you can import into your client
classes and access through
weblogic.management.MBeanHome
. As of 9.0, the
MBeanHome
interface and all type-safe interfaces for
WebLogic Server MBeans are deprecated. Instead, client classes that
interact with WebLogic Server MBeans should use standard JMX design
patterns in which clients use the
javax.management.MBeanServerConnection
interface to
discover MBeans, attributes, and attribute types at runtime. For
more information, see "Developing Manageable Applications with JMX"
on http://edocs.bea.com.
TargetMBean
,
SingletonServiceBaseMBean
Field Summary | |
static String |
DEFAULT_MIGRATABLETARGET_SUFFIX
|
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
boolean |
addConstrainedCandidateServer(ServerMBean constrainedCandidateServer)
|
ServerMBean[] |
getAllCandidateServers()
Return a list of servers that are candiates to host the services deployed to this migratable target. |
ClusterMBean |
getCluster()
Returns the cluster this singleton service is associated with. |
ServerMBean[] |
getConstrainedCandidateServers()
Returns the (user restricted) list of servers that may host the Singleton. |
ServerMBean |
getDestinationServer()
|
boolean |
isCurrentServerRunning()
|
boolean |
isDestinationServerRunning()
|
boolean |
removeConstrainedCandidateServer(ServerMBean constrainedCandidateServer)
|
void |
setAllCandidateServers(ServerMBean[] servers)
// NOTE reto@bea.com 2001-Jul-30 -- NOT TO BE USED FROM THE OUTSIDE. |
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. |
void |
setCurrentServerRunning(boolean up)
|
void |
setDestinationServer(ServerMBean t)
|
void |
setDestinationServerRunning(boolean up)
|
void |
setPreScript(String filePath)
|
void |
setUserPreferredServer(ServerMBean t)
|
Methods inherited from interface weblogic.management.configuration.SingletonServiceBaseMBean |
getAdditionalMigrationAttempts, getHostingServer, getMillisToSleepBetweenAttempts, getUserPreferredServer, setAdditionalMigrationAttempts, setHostingServer, setMillisToSleepBetweenAttempts |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute, getAttributes, invoke, setAttribute, setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Methods inherited from interface weblogic.descriptor.DescriptorBean |
addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListener |
Field Detail |
public static final String DEFAULT_MIGRATABLETARGET_SUFFIX
Method Detail |
public boolean addConstrainedCandidateServer(ServerMBean constrainedCandidateServer) throws InvalidAttributeValueException
constrainedCandidateServer
- The feature to be added to the ConstrainedCandidateServer attribute
InvalidAttributeValueException
public ServerMBean[] getAllCandidateServers()
Return a list of servers that are candiates 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.
public ClusterMBean getCluster()
Returns the cluster this singleton service is associated with.
public ServerMBean[] getConstrainedCandidateServers()
Returns the (user restricted) list of servers that may host the Singleton. The Singleton will not be allowed to migrate to a server that is not in the returned list of servers. This feature may be used to configure the two server that have acceess to a dual ported disk, for example. All servers in this list must be part of the cluster that is associated with the Singleton.
public ServerMBean getDestinationServer()
public boolean isCurrentServerRunning()
public boolean isDestinationServerRunning()
public boolean removeConstrainedCandidateServer(ServerMBean constrainedCandidateServer) throws InvalidAttributeValueException
constrainedCandidateServer
-
InvalidAttributeValueException
public void setAllCandidateServers(ServerMBean[] servers)
// NOTE reto@bea.com 2001-Jul-30 -- NOT TO BE USED FROM THE OUTSIDE. MUST BE HERE ONLY TO SATISFY THE MBEAN SERVER. AllCandiateServers IS A DERIVED ATTRIBUTE AND THUS MUST NOT BE SET.
servers
- The new allCandidateServers valuepublic void setCluster(ClusterMBean cluster)
Set the cluster this singleton service is associated with.
cluster
- The new cluster valuepublic void setConstrainedCandidateServers(ServerMBean[] constrainedCandidateServers) throws InvalidAttributeValueException
All constrained candiate servers must belong to the same cluster.
constrainedCandidateServers
- The new constrainedCandidateServers value
InvalidAttributeValueException
public void setCurrentServerRunning(boolean up)
up
- The new currentServerRunning valuepublic void setDestinationServer(ServerMBean t)
t
- The new destinationServer valuepublic void setDestinationServerRunning(boolean up)
up
- The new destinationServerRunning valuepublic void setPreScript(String filePath)
filePath
- file name and relative path for pre script
* @excludegetPreScript()
public void setUserPreferredServer(ServerMBean t)
setUserPreferredServer
in interface weblogic.management.configuration.SingletonServiceBaseMBean
t
- The new userPreferredServer value
|
Documentation is available at http://e-docs.bea.com/wls/docs92 Copyright 2006 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |