public class CustomComponent extends Provisionable
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir
Constructor and Description |
---|
CustomComponent()
Custom component constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
buildEacStub()
Builds the map of properties that serve as the definition for this
component.
|
Map<String,String> |
getCustomDirectories() |
Host |
getHost()
Constructs a host object by specifying a host ID that should be retrieved
from the EAC.
|
String |
getHostId() |
Map<String,String> |
getProperties() |
String |
getProperty(String propName)
Retrieves a custom property with the specified name.
|
boolean |
isDefined()
Extending objects will implement this method, returning true if the
provisioned object's definition is set in the EAC.
|
boolean |
isDefinitionChanged()
Extending objects will implement this method, returning true if the
provisioned object's definition has changed in the EAC.
|
void |
removeDefinition()
Extending objects will implement this method to remove the definition
of the provisioned object from the EAC.
|
void |
setCustomDirectories(Map<String,String> customDirectories) |
void |
setDefinition()
Extending objects will implement this method to add the definition
of the provisioned object to the EAC.
|
void |
setHostId(String hostId) |
void |
setProperties(Map<String,String> properties) |
void |
updateDefinition()
Extending objects will implement this method to update the definition
of the provisioned object in the EAC.
|
getAppDefinitionFromEac, getCachedAppDefinition, getProvisioningPort, invalidateCachedAppDefinition, setCachedAppDefinition
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDir
public boolean isDefined() throws EacCommunicationException, EacProvisioningException
Provisionable
isDefined
in class Provisionable
EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.EacProvisioningException
- If an error occurs while trying to retrieve
the object definition from the EAC.public boolean isDefinitionChanged() throws EacCommunicationException, EacProvisioningException
Provisionable
isDefinitionChanged
in class Provisionable
EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.EacProvisioningException
- If an error occurs while trying to retrieve
the object definition from the EAC.public void removeDefinition() throws EacCommunicationException, EacComponentControlException
Provisionable
removeDefinition
in class Provisionable
EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.EacComponentControlException
- If an error occurs while trying to
start, stop or check the status of a component.public void setDefinition() throws EacCommunicationException
Provisionable
setDefinition
in class Provisionable
EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.public void updateDefinition() throws EacCommunicationException, EacComponentControlException, EacProvisioningException, AppConfigurationException
Provisionable
updateDefinition
in class Provisionable
EacCommunicationException
- If a communication error occurs while
retrieving the provisioning port.EacComponentControlException
- If an error occurs while trying to
start, stop or check the status of a component.EacProvisioningException
- If an error occurs while provisioning the
object or an associated object.AppConfigurationException
- If an object's configuration is invalid.public Map<String,String> buildEacStub()
public Host getHost() throws EacCommunicationException
EacCommunicationException
public String getProperty(String propName)
propName
- Name of the property to retrieve.public String getHostId()
public void setHostId(String hostId)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.