public abstract class AbstractOpenShiftResource extends Object implements IOpenShiftResource
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractOpenShiftResource.ServiceRequest |
Constructor and Description |
---|
AbstractOpenShiftResource(IRestService service)
Instantiates a new abstract open shift resource.
|
AbstractOpenShiftResource(IRestService service,
Map<String,Link> links,
Messages messages)
Instantiates a new abstract open shift resource.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
areLinksLoaded() |
String |
getCreationLog()
Returns the log that was created when the resource was created.
|
protected Link |
getLink(String linkName)
Gets the link.
|
Messages |
getMessages()
Returns all the (creation log) messages.
|
protected IRestService |
getService()
Gets the service.
|
boolean |
hasCreationLog()
Returns
true if there is log about the creation of this resource. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
refresh
public AbstractOpenShiftResource(IRestService service)
service
- the servicepublic AbstractOpenShiftResource(IRestService service, Map<String,Link> links, Messages messages)
service
- the servicelinks
- the linksprotected final IRestService getService()
protected Link getLink(String linkName) throws OpenShiftException
linkName
- the link nameOpenShiftException
- the open shift exceptionprotected boolean areLinksLoaded()
public boolean hasCreationLog()
IOpenShiftResource
true if there is log about the creation of this resource.
Creation logs are only available at creation time. So resources that were retrieved
while they already existed wont have a creation log.
hasCreationLog
in interface IOpenShiftResource
public String getCreationLog()
IOpenShiftResource
getCreationLog
in interface IOpenShiftResource
public Messages getMessages()
IOpenShiftResource
getMessages
in interface IOpenShiftResource
IOpenShiftResource.getCreationLog()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.