OpenShift Java Client 2.5.0.Final

com.openshift.client
Interface IOpenShiftResource

All Known Subinterfaces:
IApplication, IDomain, IEmbeddedCartridge, IEnvironmentVariable, IUser
All Known Implementing Classes:
AbstractOpenShiftResource, APIResource, ApplicationResource, DomainResource, EmbeddedCartridgeResource, EnvironmentVariableResource, GearGroupResource, SSHKeyResource, UserResource

public interface IOpenShiftResource


Method Summary
 String getCreationLog()
          Returns the log that was created when the resource was created.
 Messages getMessages()
          Returns all the (creation log) messages.
 boolean hasCreationLog()
          Returns true if there is log about the creation of this resource.
 void refresh()
          Refresh the resource and its list of children resources that were previously loaded
 

Method Detail

hasCreationLog

boolean hasCreationLog()
Returns 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.

Returns:
true if there's cretion log for this resource

getCreationLog

String getCreationLog()
Returns the log that was created when the resource was created.

Returns:
the log which reported the creation of this resource

getMessages

Messages getMessages()
Returns all the (creation log) messages. These messages only exist at creation time. Existing cartridges, that were added in a prior session dont have any messages any more.

Returns:
all messages by field
See Also:
getCreationLog()

refresh

void refresh()
             throws OpenShiftException
Refresh the resource and its list of children resources that were previously loaded

Throws:
OpenShiftException

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.