org.jboss.ha.singleton
Interface HASingletonControllerMBean

All Superinterfaces:
EventListener, org.jboss.ha.framework.interfaces.HAService<Notification>, org.jboss.ha.framework.interfaces.HAServiceKeyProvider, HAServiceMBean, HASingleton, org.jboss.ha.framework.interfaces.HASingletonLifecycle, org.jboss.ha.framework.interfaces.HASingletonMBean, HASingletonSupportMBean, NotificationBroadcaster, Service, ServiceMBean
All Known Implementing Classes:
HASingletonController

public interface HASingletonControllerMBean
extends HASingletonSupportMBean

The management interface for the singleton controller service.

Version:
$Revision: 81001 $
Author:
Ivelin Ivanov, Scott Stark, Marcus Redeker, Dimitris Andreadis
See Also:
HASingletonMBean

Field Summary
 
Fields inherited from interface org.jboss.ha.framework.interfaces.HASingleton
HASINGLETON_STARTED_NOTIFICATION, HASINGLETON_STARTING_NOTIFICATION, HASINGLETON_STOPPED_NOTIFICATION, HASINGLETON_STOPPING_NOTIFICATION
 
Fields inherited from interface org.jboss.ha.singleton.HASingletonMBean
HASINGLETON_STARTED_NOTIFICATION, HASINGLETON_STARTING_NOTIFICATION, HASINGLETON_STOPPED_NOTIFICATION, HASINGLETON_STOPPING_NOTIFICATION
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 Object getTarget()
          Gets controlled target singleton
 ObjectName getTargetName()
          Deprecated. use getTarget()
 String getTargetStartMethod()
          The target method to call when the Singleton is started
 String getTargetStartMethodArgument()
          The argument to pass to the start method of the singleton MBean
 String getTargetStopMethod()
          The target method to call when the Singleton is stopped
 String getTargetStopMethodArgument()
          The argument to pass to the stop method of the singleton MBean
 void setTarget(Object target)
          Sets the controlled target singleton
 void setTargetName(ObjectName targetObjectName)
          Deprecated. use setTarget(Object)
 void setTargetStartMethod(String targetStartMethod)
           
 void setTargetStartMethodArgument(String targetStartMethodArgument)
           
 void setTargetStopMethod(String targetStopMethod)
           
 void setTargetStopMethodArgument(String targetStopMethodArgument)
           
 
Methods inherited from interface org.jboss.ha.framework.interfaces.HASingleton
getElectionPolicy, getRestartOnMerge, setElectionPolicy, setRestartOnMerge
 
Methods inherited from interface org.jboss.ha.framework.interfaces.HAService
create, destroy, getServiceHAName, isRegisterThreadContextClassLoader, setHAPartition, setRegisterThreadContextClassLoader, setServiceHAName, start, stop
 
Methods inherited from interface org.jboss.ha.framework.interfaces.HAServiceKeyProvider
getHAPartition, getHAServiceKey
 
Methods inherited from interface org.jboss.ha.framework.interfaces.EventListener
handleEvent
 
Methods inherited from interface org.jboss.ha.jmx.HAServiceMBean
callMethodOnPartition, getDistributedState, getPartitionName, sendNotification, setClusterPartition, setDistributedState, setHAPartition
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from interface org.jboss.ha.framework.interfaces.HASingletonMBean
isMasterNode
 
Methods inherited from interface org.jboss.ha.framework.interfaces.HASingletonLifecycle
startSingleton, stopSingleton
 

Method Detail

setTarget

void setTarget(Object target)
Sets the controlled target singleton


getTarget

Object getTarget()
Gets controlled target singleton

Returns:
the singleton, or null if this object is configured to use a JMX object name.

getTargetName

ObjectName getTargetName()
Deprecated. use getTarget()

Gets the ObjectName of the controlled target Singleton MBean

Returns:
the target object name, or null if this object is configured via setTarget(Object).

setTargetName

void setTargetName(ObjectName targetObjectName)
Deprecated. use setTarget(Object)

Sets the ObjectName of the controlled target Singleton MBean

Parameters:
targetObjectName - target of the MBean singleton

getTargetStartMethod

String getTargetStartMethod()
The target method to call when the Singleton is started


setTargetStartMethod

void setTargetStartMethod(String targetStartMethod)

getTargetStartMethodArgument

String getTargetStartMethodArgument()
The argument to pass to the start method of the singleton MBean


setTargetStartMethodArgument

void setTargetStartMethodArgument(String targetStartMethodArgument)

getTargetStopMethod

String getTargetStopMethod()
The target method to call when the Singleton is stopped


setTargetStopMethod

void setTargetStopMethod(String targetStopMethod)

getTargetStopMethodArgument

String getTargetStopMethodArgument()
The argument to pass to the stop method of the singleton MBean


setTargetStopMethodArgument

void setTargetStopMethodArgument(String targetStopMethodArgument)


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.