|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.jsb.JSBManager
public class JSBManager
Implement ServiceBeanManager support
ServiceBeanManager| Field Summary | |
|---|---|
protected NotificationBroadcasterSupport |
notificationBroadcasterSupport
|
| Constructor Summary | |
|---|---|
JSBManager(ServiceElement sElem,
OperationalStringManager opStringManager,
String hostAddress,
Uuid cybernodeUuid)
Create a JSBManager |
|
JSBManager(ServiceElement sElem,
String hostAddress,
Uuid cybernodeUuid)
Create a JSBManager |
|
| Method Summary | |
|---|---|
void |
addListener(ServiceElementChangeListener l)
Register for notification of ServiceElement changes. |
void |
decrement(boolean destroy)
Decrement (decrease the number of) and remove this ServiceBean instance from the OperationalString. |
DiscardManager |
getDiscardManager()
Get the DiscardManager for the ServiceBean. |
NotificationBroadcasterSupport |
getNotificationBroadcasterSupport()
Get the class that can be used as the class that sends JMX notifications for the MBean |
OperationalStringManager |
getOperationalStringManager()
Get the OperationalStringManager instance which is managing the OperationalString the ServiceBean is a part of |
ServiceBeanInstance |
getServiceBeanInstance()
Get the ServiceBeanInstance for the ServiceBean |
Uuid |
getServiceID()
Get the universally unique identifier for the ServiceBean |
void |
increment()
|
void |
increment(ServiceProvisionListener listener)
Increment (increase the number of) instances of the ServiceBean by one. |
void |
relocate(ServiceProvisionListener listener,
Uuid uuid)
Relocate (move) a ServiceBean instance to another compute resource |
void |
removeListener(ServiceElementChangeListener l)
Remove a currently registered ServiceElementChangeListener instance from the set of listeners currently registered with the ServiceBeanManager. |
void |
setDiscardManager(DiscardManager discardManager)
Set the DiscardManager for the ServiceBean |
void |
setMarshalledInstance(MarshalledInstance mi)
Set the Object that can be used to communicate to the ServiceBean |
void |
setOperationalStringManager(OperationalStringManager opStringManager)
Set the OperationalStringManager |
void |
setServiceElement(ServiceElement newElem)
Set the ServiceElement for the ServiceBean |
void |
setServiceID(Uuid serviceID)
Set the ServiceID for the ServiceBean |
void |
update(ServiceBeanConfig sbConfig)
Update a ServiceBean's ServiceBeanConfig to known OperationalStringManager instance(s) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final NotificationBroadcasterSupport notificationBroadcasterSupport
| Constructor Detail |
|---|
public JSBManager(ServiceElement sElem,
String hostAddress,
Uuid cybernodeUuid)
sElem - The ServiceElementhostAddress - The host address the service bean was instantiated oncybernodeUuid - The Uuuid of the Cybernode
IllegalArgumentException - if the sElem or hostAddress parameters
are null
public JSBManager(ServiceElement sElem,
OperationalStringManager opStringManager,
String hostAddress,
Uuid cybernodeUuid)
sElem - The ServiceElementopStringManager - The OperationalStringManagerhostAddress - The host address the service bean was instantiated oncybernodeUuid - The Uuuid of the Cybernode
IllegalArgumentException - if the sElem or hostAddress parameters
are null| Method Detail |
|---|
public void setServiceElement(ServiceElement newElem)
newElem - The ServiceElement for the ServiceBeanpublic void setServiceID(Uuid serviceID)
serviceID - The Service Identifier for the ServiceBeanpublic Uuid getServiceID()
ServiceBeanManager
getServiceID in interface ServiceBeanManagerServiceBeanManager.getServiceID()public void setMarshalledInstance(MarshalledInstance mi)
mi - The MarshalledInstance containing the proxy that can be used
to communicate to the ServiceBeanpublic void setDiscardManager(DiscardManager discardManager)
discardManager - The DiscardManager for the ServiceBeanpublic DiscardManager getDiscardManager()
ServiceBeanManager
getDiscardManager in interface ServiceBeanManagerServiceBeanManager.getDiscardManager()public void setOperationalStringManager(OperationalStringManager opStringManager)
opStringManager - The OperationalStringManagerpublic OperationalStringManager getOperationalStringManager()
ServiceBeanManager
getOperationalStringManager in interface ServiceBeanManagerServiceBeanManager.getOperationalStringManager()
public void update(ServiceBeanConfig sbConfig)
throws Exception
ServiceBeanManagerOperationalStringManager instance(s)
update in interface ServiceBeanManagersbConfig - The updated ServiceBeanConfig instance
Exception - if any errors occur communicating with the
OperationalStringManager, or with the OperationalStringManager's
processing of the requestServiceBeanManager.update(org.rioproject.core.ServiceBeanConfig)
public void increment()
throws Exception
Exception - if the increment fails for any reasonServiceBeanManager.increment(org.rioproject.core.ServiceProvisionListener)
public void increment(ServiceProvisionListener listener)
throws Exception
ServiceBeanManager
increment in interface ServiceBeanManagerlistener - A ServiceProvisionListener that will be notified of
the result of the increment request
Exception - if any errors occur communicating with the
OperationalStringManager, or with the OperationalStringManager's
processing of the requestServiceBeanManager.increment(org.rioproject.core.ServiceProvisionListener)
public void decrement(boolean destroy)
throws Exception
ServiceBeanManager
decrement in interface ServiceBeanManagerdestroy - If true, destroy the ServiceBean upon removal,
otherwise just remove
Exception - if any errors occur communicating with the
OperationalStringManager, or with the OperationalStringManager's
processing of the requestServiceBeanManager.decrement(boolean)
public void relocate(ServiceProvisionListener listener,
Uuid uuid)
throws Exception
ServiceBeanManager
relocate in interface ServiceBeanManagerlistener - A ServiceProvisionListener that will be notified of
the result of the relocate requestuuid - The uuid of a
ServiceBeanInstantiator to relocate
to. If null, the OperationalStringManager will determine a suitable
resource
Exception - if any errors occur communicating with the
OperationalStringManager, or with the OperationalStringManager's
processing of the requestServiceBeanManager.relocate(org.rioproject.core.ServiceProvisionListener, net.jini.id.Uuid)public ServiceBeanInstance getServiceBeanInstance()
ServiceBeanManager
getServiceBeanInstance in interface ServiceBeanManagerServiceBeanManager.getServiceBeanInstance()public void addListener(ServiceElementChangeListener l)
ServiceBeanManager
addListener in interface ServiceBeanManagerl - A ServiceElementChangeListener instance to add.ServiceBeanManager.addListener(org.rioproject.core.jsb.ServiceElementChangeListener)public void removeListener(ServiceElementChangeListener l)
ServiceBeanManager
removeListener in interface ServiceBeanManagerl - A ServiceElementChangeListener instance to remove.ServiceBeanManager.removeListener(org.rioproject.core.jsb.ServiceElementChangeListener)public NotificationBroadcasterSupport getNotificationBroadcasterSupport()
ServiceBeanManager
getNotificationBroadcasterSupport in interface ServiceBeanManagerNotificationBroadcasterSupportServiceBeanManager.getNotificationBroadcasterSupport()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||