|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.resources.servicecore.ServiceAdminImpl
public class ServiceAdminImpl
The ServiceAdminImpl class implements the ServiceAdmin interface providing administrative support for ServiceProducer implementations.
| Field Summary | |
|---|---|
protected ServiceAdminProxy |
adminProxy
The ServiceAdminProxy |
protected Exporter |
exporter
The Exporter for the ServiceAdmin |
| Constructor Summary | |
|---|---|
ServiceAdminImpl(ServiceBeanAdapter service,
Exporter exporter)
Create a ServiceAdmin Impl |
|
ServiceAdminImpl(ServiceBeanAdapter service,
Exporter exporter,
SnapshotHandler snapshotHandler)
Create a ServiceAdmin Impl |
|
| Method Summary | |
|---|---|
void |
addLookupAttributes(Entry[] attrs)
|
void |
addLookupGroups(String[] groups)
|
void |
addLookupLocators(LookupLocator[] locators)
|
void |
advertise()
The advertise method informs a ServiceBean to advertise itself on the network providing access to all clients. |
void |
destroy()
This method terminates the service |
ServiceRegistrar[] |
getJoinSet()
Returns an array of instances of ServiceRegistrar, each corresponding to a lookup service with which the service is currently registered (joined) |
Entry[] |
getLookupAttributes()
|
String[] |
getLookupGroups()
|
LookupLocator[] |
getLookupLocators()
|
ServiceAdmin |
getServiceAdmin()
Get the object to communicate with the ServiceAdminImpl |
Uuid |
getServiceBeanInstantiatorUuid()
Get the Uuid of the ServiceBeanInstantiator the ServiceBean is being hosted by |
ServiceElement |
getServiceElement()
Get the ServiceElement for the ServiceBean |
long |
getUpTime()
How long the service has been running |
void |
modifyLookupAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
|
void |
removeLookupGroups(String[] groups)
|
void |
removeLookupLocators(LookupLocator[] locators)
|
void |
setLookupGroups(String[] groups)
|
void |
setLookupLocators(LookupLocator[] locators)
|
void |
setServiceBeanContext(ServiceBeanContext context)
Set the ServiceBeanContext |
void |
setServiceElement(ServiceElement sElem)
Set the ServiceElement for the ServiceBean |
Object |
start()
The start method provides informs a ServiceBean to make itself ready to accept inbound communications, returning an Object which can be used to communicate with the ServiceBean. |
void |
stop(boolean force)
The stop method informs the ServiceBean to unexport itself from any underlying distributed Object communication mechanisms making it incapable of accepting inbound communications. |
void |
unadvertise()
The unadvertise method informs the ServiceBean to cancel all advertisements (registrations, etc...) it has made on the network. |
void |
unexport(boolean force)
Unexport the ServiceAdmin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Exporter exporter
protected ServiceAdminProxy adminProxy
| Constructor Detail |
|---|
public ServiceAdminImpl(ServiceBeanAdapter service,
Exporter exporter)
service - Concrete implementation of a ServiceBeanAdapterexporter - The Exporter to export this object
public ServiceAdminImpl(ServiceBeanAdapter service,
Exporter exporter,
SnapshotHandler snapshotHandler)
service - Concrete implementation of a ServiceBeanAdapterexporter - The Exporter to export this objectsnapshotHandler - The service's snapshot handler used for persistence| Method Detail |
|---|
public ServiceRegistrar[] getJoinSet()
ServiceAdmin
getJoinSet in interface ServiceAdminServiceAdmin.getJoinSet()
public ServiceAdmin getServiceAdmin()
throws RemoteException
RemoteException - if an communication errors occurpublic void unexport(boolean force)
force - - If true forcibly unexportpublic void destroy()
destroy in interface DestroyAdminpublic ServiceElement getServiceElement()
ServiceBeanAdmin
getServiceElement in interface ServiceBeanAdminServiceBeanAdmin.getServiceElement()public void setServiceElement(ServiceElement sElem)
ServiceBeanAdmin
setServiceElement in interface ServiceBeanAdminsElem - The ServiceElementServiceBeanAdmin.setServiceElement(org.rioproject.core.ServiceElement)
public long getUpTime()
throws RemoteException
ServiceBeanAdmin
getUpTime in interface ServiceBeanAdminRemoteException - If communication errors occurServiceBeanAdmin.getUpTime()
public Uuid getServiceBeanInstantiatorUuid()
throws RemoteException
ServiceBeanAdmin
getServiceBeanInstantiatorUuid in interface ServiceBeanAdminRemoteException - If communication errors occurServiceBeanAdmin.getServiceBeanInstantiatorUuid()
public Object start()
throws JSBControlException
ServiceBeanControl
start in interface ServiceBeanControlJSBControlException - If any errors occurServiceBeanControl.start()
public void stop(boolean force)
throws JSBControlException
ServiceBeanControl
stop in interface ServiceBeanControlforce - If true, unexports the ServiceBean even if there are
pending or in-progress calls; if false, only unexports the ServiceBean if
there are no pending or in-progress calls
JSBControlException - If any errors occurServiceBeanControl.stop(boolean)
public void advertise()
throws JSBControlException
ServiceBeanControl
advertise in interface ServiceBeanControlJSBControlException - If any errors occurServiceBeanControl.advertise()
public void unadvertise()
throws JSBControlException
ServiceBeanControl
unadvertise in interface ServiceBeanControlJSBControlException - If any errors occurServiceBeanControl.unadvertise()public void setServiceBeanContext(ServiceBeanContext context)
context - The ServiceBeanContextpublic Entry[] getLookupAttributes()
getLookupAttributes in interface JoinAdminpublic void addLookupAttributes(Entry[] attrs)
addLookupAttributes in interface JoinAdmin
public void modifyLookupAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
modifyLookupAttributes in interface JoinAdminpublic String[] getLookupGroups()
getLookupGroups in interface JoinAdminpublic void addLookupGroups(String[] groups)
addLookupGroups in interface JoinAdminpublic void removeLookupGroups(String[] groups)
removeLookupGroups in interface JoinAdminpublic void setLookupGroups(String[] groups)
setLookupGroups in interface JoinAdminpublic LookupLocator[] getLookupLocators()
getLookupLocators in interface JoinAdminpublic void addLookupLocators(LookupLocator[] locators)
addLookupLocators in interface JoinAdminpublic void removeLookupLocators(LookupLocator[] locators)
removeLookupLocators in interface JoinAdminpublic void setLookupLocators(LookupLocator[] locators)
setLookupLocators in interface JoinAdmin
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||