public class Controller extends Object
Constructor and Description |
---|
Controller() |
Controller(KubernetesClient kubernetes) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Object dto,
String sourceName)
Applies the given DTOs onto the Kubernetes master
|
void |
applyConfig(com.fasterxml.jackson.databind.JsonNode entity,
String sourceName) |
String |
applyJson(byte[] json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
applyJson(File json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
applyJson(InputStream json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
applyJson(String json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
void |
applyPod(PodSchema podSchema,
String sourceName) |
void |
applyReplicationController(ReplicationControllerSchema replicationControllerSchema,
String sourceName) |
void |
applyService(ServiceSchema serviceSchema,
String sourceName) |
void |
applyTemplateConfig(com.fasterxml.jackson.databind.JsonNode entity,
String sourceName) |
protected boolean |
isRunning(PodSchema entity) |
protected boolean |
isRunning(ReplicationControllerSchema entity) |
protected boolean |
isRunning(ServiceSchema entity) |
public Controller()
public Controller(KubernetesClient kubernetes)
public String applyJson(byte[] json) throws IOException
IOException
public String applyJson(String json) throws IOException
IOException
public String applyJson(File json) throws IOException
IOException
public String applyJson(InputStream json) throws IOException
IOException
public void apply(Object dto, String sourceName)
public void applyTemplateConfig(com.fasterxml.jackson.databind.JsonNode entity, String sourceName)
public void applyConfig(com.fasterxml.jackson.databind.JsonNode entity, String sourceName)
public void applyService(ServiceSchema serviceSchema, String sourceName)
public void applyReplicationController(ReplicationControllerSchema replicationControllerSchema, String sourceName)
protected boolean isRunning(PodSchema entity)
protected boolean isRunning(ReplicationControllerSchema entity)
protected boolean isRunning(ServiceSchema entity)
Copyright © 2011–2014 Red Hat. All rights reserved.