|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.resources.servicecore.ServiceAdminProxy
org.rioproject.cybernode.CybernodeAdminProxy
public class CybernodeAdminProxy
A CybernodeAdminProxy is a proxy for the CybernodeAdmin
server. This is the object passed to clients of the CybernodeAdmin.
| Field Summary |
|---|
| Fields inherited from class org.rioproject.resources.servicecore.ServiceAdminProxy |
|---|
serviceAdmin, uuid |
| 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 |
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 |
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.ServiceAdminProxy |
|---|
addLookupAttributes, addLookupGroups, addLookupLocators, advertise, destroy, equals, getJoinSet, getLookupAttributes, getLookupGroups, getLookupLocators, getReferentUuid, getServiceBeanInstantiatorUuid, getServiceElement, getUpTime, hashCode, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators, setServiceElement, start, stop, unadvertise |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, 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 |
| Method Detail |
|---|
public Integer getServiceLimit()
throws RemoteException
CybernodeAdmin
getServiceLimit in interface CybernodeAdminRemoteException - If communication errors happen
public int getRegistryPort()
throws RemoteException
CybernodeAdmin
getRegistryPort in interface CybernodeAdminRemoteException - If communication errors happen
public void setServiceLimit(Integer count)
throws RemoteException
CybernodeAdmin
setServiceLimit in interface CybernodeAdmincount - Integer indicating the upper limit of services
RemoteException - If communication errors happen
public Integer getServiceCount()
throws RemoteException
CybernodeAdmin
getServiceCount in interface CybernodeAdminRemoteException - If communication errors happen
public boolean getPersistentProvisioning()
throws RemoteException
CybernodeAdmin
getPersistentProvisioning in interface CybernodeAdminRemoteException - If communication errors happen
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
IOException
public boolean setSLA(SLA serviceLevelAgreement)
throws RemoteException
ComputeResourceAdmin
setSLA in interface ComputeResourceAdminserviceLevelAgreement - The SLA for the ComputeResource
RemoteException - If communication errors occur
public SLA[] getSLAs()
throws RemoteException
ComputeResourceAdmin
getSLAs in interface ComputeResourceAdminRemoteException - If communication errors occur
public PlatformCapability[] getPlatformCapabilties()
throws RemoteException
ComputeResourceAdmin
getPlatformCapabilties in interface ComputeResourceAdminRemoteException - If communication errors occur
public MeasuredResource[] getMeasuredResources()
throws RemoteException
ComputeResourceAdmin
getMeasuredResources in interface ComputeResourceAdminRemoteException - If communication errors occur
public double getUtilization()
throws RemoteException
ComputeResourceAdmin
getUtilization in interface ComputeResourceAdminRemoteException - If communication errors occur
public ResourceCapability getResourceCapability()
throws RemoteException
ComputeResourceAdminResourceCapability for the
compute resource
getResourceCapability in interface ComputeResourceAdminRemoteException - If communication errors occur
public ComputeResourceUtilization getComputeResourceUtilization()
throws RemoteException
ComputeResourceAdminComputeResourceUtilization for the
compute resource
getComputeResourceUtilization in interface ComputeResourceAdminRemoteException - If communication errors occur
public ComputeResourceUtilization getComputeResourceUtilization(Uuid serviceUuid)
throws RemoteException
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.
RemoteException - If communication errors occur
public long getReportInterval()
throws RemoteException
ComputeResourceAdmin
getReportInterval in interface ComputeResourceAdminRemoteException - If communication errors occur
public void setReportInterval(long reportInterval)
throws RemoteException
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
RemoteException - If communication errors occur
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||