|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.resources.servicecore.ServiceAdminImpl
org.rioproject.cybernode.CybernodeAdminImpl
public class CybernodeAdminImpl
The CybernodeAdminImpl class implements the ServiceAdmin interface providing administrative support for ServiceProducer implementations.
| Field Summary |
|---|
| Fields inherited from class org.rioproject.resources.servicecore.ServiceAdminImpl |
|---|
adminProxy, exporter |
| Constructor Summary | |
|---|---|
CybernodeAdminImpl(CybernodeImpl service,
Exporter exporter)
Create a CybernodeAdminImpl |
|
CybernodeAdminImpl(CybernodeImpl service,
Exporter exporter,
SnapshotHandler snapshotHandler)
Create a CybernodeAdminImpl |
|
| Method Summary | |
|---|---|
ComputeResourceUtilization |
getComputeResourceUtilization()
Get the ComputeResourceUtilization for the
compute resource |
ComputeResourceUtilization |
getComputeResourceUtilization(Uuid serviceUuid)
Get the ComputeResourceUtilization for an
instantiated service |
MeasuredResource[] |
getMeasuredResources()
Get the MeasuredResource components for the ComputeResource |
boolean |
getPersistentProvisioning()
Get whether the Cybernode supports persistent provisioning of qualitative capabilities |
PlatformCapability[] |
getPlatformCapabilties()
Get the PlatformCapability components for the ComputeResource |
TrustVerifier |
getProxyVerifier()
|
int |
getRegistryPort()
Get the port that the Cybernode has started the RMI Registry on |
long |
getReportInterval()
Get the reportInterval property which controls how often the ComputeResource will inform registered Observers of a state change. |
ResourceCapability |
getResourceCapability()
Get the ResourceCapability for the
compute resource |
ServiceAdmin |
getServiceAdmin()
Override parents getServiceAdmin method |
Integer |
getServiceCount()
Get the number of services that this Cybernode has instantiated |
Integer |
getServiceLimit()
Get the upper limit of services that this Cybernode can instantiate |
SLA[] |
getSLAs()
Get the system SLAs which provide control information for the MeasurableCapability components the ComputeResource contains |
double |
getUtilization()
Get the resource's utilization. |
void |
setPersistentProvisioning(boolean support)
Set whether the Cybernode supports persistent provisioning of qualitative capabilities |
void |
setReportInterval(long reportInterval)
Set the reportInterval property which controls how often the ComputeResource will inform registered Observers of a state change. |
void |
setServiceLimit(Integer count)
Set the upper limit of services that this Cybernode can instantiate |
boolean |
setSLA(SLA serviceLevelAgreement)
Set the SLA for a MeasurableCapability contained within the ComputeResource |
| Methods inherited from class org.rioproject.resources.servicecore.ServiceAdminImpl |
|---|
addLookupAttributes, addLookupGroups, addLookupLocators, advertise, destroy, getJoinSet, getLookupAttributes, getLookupGroups, getLookupLocators, getServiceBeanInstantiatorUuid, getServiceElement, getUpTime, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators, setServiceBeanContext, setServiceElement, start, stop, unadvertise, unexport |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.rioproject.resources.servicecore.ServiceAdmin |
|---|
getJoinSet |
| Methods inherited from interface org.rioproject.core.jsb.ServiceBeanAdmin |
|---|
getServiceBeanInstantiatorUuid, getServiceElement, getUpTime, setServiceElement |
| Methods inherited from interface org.rioproject.jsb.ServiceBeanControl |
|---|
advertise, start, stop, unadvertise |
| Methods inherited from interface net.jini.admin.JoinAdmin |
|---|
addLookupAttributes, addLookupGroups, addLookupLocators, getLookupAttributes, getLookupGroups, getLookupLocators, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators |
| Methods inherited from interface com.sun.jini.admin.DestroyAdmin |
|---|
destroy |
| Constructor Detail |
|---|
public CybernodeAdminImpl(CybernodeImpl service,
Exporter exporter)
service - Concrete implementation of a ServiceBeanAdapterexporter - The Exporter to export this object
public CybernodeAdminImpl(CybernodeImpl service,
Exporter exporter,
SnapshotHandler snapshotHandler)
service - The CybernodeImplexporter - The Exporter to export this objectsnapshotHandler - The service's snapshot handler used for
persistence| Method Detail |
|---|
public ServiceAdmin getServiceAdmin()
throws RemoteException
getServiceAdmin in class ServiceAdminImplRemoteException - if an communication errors occurpublic Integer getServiceLimit()
CybernodeAdmin
getServiceLimit in interface CybernodeAdminpublic void setServiceLimit(Integer count)
CybernodeAdmin
setServiceLimit in interface CybernodeAdmincount - Integer indicating the upper limit of servicespublic Integer getServiceCount()
CybernodeAdmin
getServiceCount in interface CybernodeAdminpublic int getRegistryPort()
CybernodeAdmin
getRegistryPort in interface CybernodeAdminpublic boolean getPersistentProvisioning()
CybernodeAdmin
getPersistentProvisioning in interface CybernodeAdmin
public void setPersistentProvisioning(boolean support)
throws IOException
CybernodeAdmin
setPersistentProvisioning in interface CybernodeAdminsupport - Set to true if the Cybernode supports persistent
provisioning of qualitative capabilities otherwise, set false
RemoteException - If communication errors happen
IOExceptionpublic boolean setSLA(SLA serviceLevelAgreement)
ComputeResourceAdmin
setSLA in interface ComputeResourceAdminserviceLevelAgreement - The SLA for the ComputeResource
public SLA[] getSLAs()
ComputeResourceAdmin
getSLAs in interface ComputeResourceAdminpublic PlatformCapability[] getPlatformCapabilties()
ComputeResourceAdmin
getPlatformCapabilties in interface ComputeResourceAdminpublic MeasuredResource[] getMeasuredResources()
ComputeResourceAdmin
getMeasuredResources in interface ComputeResourceAdminpublic double getUtilization()
ComputeResourceAdmin
getUtilization in interface ComputeResourceAdmin
public ResourceCapability getResourceCapability()
throws RemoteException
ComputeResourceAdminResourceCapability for the
compute resource
getResourceCapability in interface ComputeResourceAdminRemoteException - If communication errors occurpublic ComputeResourceUtilization getComputeResourceUtilization()
ComputeResourceAdminComputeResourceUtilization for the
compute resource
getComputeResourceUtilization in interface ComputeResourceAdminpublic ComputeResourceUtilization getComputeResourceUtilization(Uuid serviceUuid)
ComputeResourceAdminComputeResourceUtilization for an
instantiated service
getComputeResourceUtilization in interface ComputeResourceAdminserviceUuid - The Uuid of an instantiated service
ComputeResourceAdmin.getComputeResourceUtilization().
If the identified service has been executed in it's own process, the returned value will represent the ComputeResourceUtilization for that process.
If no instantiated service can be found, a null is returned.
public long getReportInterval()
ComputeResourceAdmin
getReportInterval in interface ComputeResourceAdminpublic void setReportInterval(long reportInterval)
ComputeResourceAdminNote: MeasurableCapability components contained within the ComputeResource may have reportRates greater than then the reportInterval. If this is the case, the ComputeResource will only report state changes if the values reported by the contained MeasurableCapability objects change.
setReportInterval in interface ComputeResourceAdminreportInterval - The interval controlling when the ComputeResource
reports change of state to registered Observers
public TrustVerifier getProxyVerifier()
throws RemoteException
getProxyVerifier in interface ServerProxyTrustRemoteException
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||