|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.vremanagement.resourcemanager.impl.resources.ScopedResource
public abstract class ScopedResource
An abstract model for a scoped GCUBEResource
Nested Class Summary | |
---|---|
class |
ScopedResource.ResourceNotFound
Unable to find the resource in the infrastructure |
static class |
ScopedResource.STATUS
resource's legal statuses |
Constructor Summary | |
---|---|
ScopedResource(java.lang.String id,
java.lang.String type,
GCUBEScope scope)
|
Method Summary | |
---|---|
void |
doAction(Operator.ACTION action)
|
boolean |
equals(java.lang.Object obj)
|
void |
findResource()
Looks for the resource in the infrastructure |
Operator.ACTION |
getAction()
|
java.lang.String |
getErrorMessage()
|
java.lang.String |
getHostedOn()
|
java.lang.String |
getId()
|
java.util.Date |
getJointTime()
|
java.util.Date |
getLastModificationTime()
|
GCUBEScope |
getScope()
|
ScopedResource.STATUS |
getStatus()
|
java.lang.String |
getType()
|
int |
hashCode()
|
boolean |
isSuccess()
|
void |
setErrorMessage(java.lang.String errorMessage)
|
void |
setHostedON(java.lang.String hostedOn)
|
void |
setJointTime(java.util.Date time)
Updates the time the resource joined the scope |
void |
setStatus(ScopedResource.STATUS status)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScopedResource(java.lang.String id, java.lang.String type, GCUBEScope scope)
Method Detail |
---|
public void findResource() throws ScopedResource.ResourceNotFound
ScopedResource.ResourceNotFound
- if it is impossible to locate the resourcepublic void doAction(Operator.ACTION action) throws ScopedResource.ResourceNotFound, java.lang.Exception
ScopedResource.ResourceNotFound
java.lang.Exception
public java.lang.String getId()
public java.lang.String getType()
public final GCUBEScope getScope()
public Operator.ACTION getAction()
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- the errorMessage to setpublic void setJointTime(java.util.Date time)
time
- the new joint timepublic boolean isSuccess()
public java.lang.String getHostedOn()
public void setHostedON(java.lang.String hostedOn)
public java.util.Date getJointTime()
public java.util.Date getLastModificationTime()
public ScopedResource.STATUS getStatus()
public void setStatus(ScopedResource.STATUS status)
status
- the status to setpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |