|
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
Field Summary |
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 migratable target is associated with. |
ServerMBean[] |
getConstrainedCandidateServers()
Returns the (user restricted) list of servers that may host the migratable target. |
ServerMBean |
getDestinationServer()
|
ServerMBean |
getHostingServer()
Returns the name of the server that currently hosts the migratable target. |
ServerMBean |
getUserPreferredServer()
Returns the server that the user prefers the migratable target to be active on. |
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 migratable target 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 |
setHostingServer(ServerMBean ignored)
Sets the value of the HostingServer attribute. |
void |
setUserPreferredServer(ServerMBean t)
|
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 |
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 migratable target is associated with.
public 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 acceess to a dual ported disk. All servers in this list must be part of the cluster that is associated with the migratable target.
public ServerMBean getDestinationServer()
public ServerMBean getHostingServer()
Returns the name of the server that currently hosts the migratable target.
public ServerMBean getUserPreferredServer()
Returns the server that the user prefers the migratable target to be active on. In manual migration mode, this is the server that will activate services (deployed to this target).
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 migratable target 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 setHostingServer(ServerMBean ignored)
Sets the value of the HostingServer attribute. Please use the weblogic admin utility to migrate services.
ignored
- The new hostingServer valuegetHostingServer()
public void setUserPreferredServer(ServerMBean t)
t
- The new userPreferredServer value
|
Documentation is available at http://e-docs.bea.com/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |