| 
 | Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbrooklyn.location.cloud.CloudMachineNamer
public class CloudMachineNamer
| Field Summary | |
|---|---|
| protected ConfigBag | setup | 
| Constructor Summary | |
| CloudMachineNamer(ConfigBag setup) | |
| Method Summary | |
|---|---|
| java.lang.String | generateNewGroupId() | 
| protected java.lang.String | generateNewIdReservingLength(int lengthToReserve) | 
| java.lang.String | generateNewMachineUniqueName() | 
| java.lang.Integer | getCustomMaxNameLength() | 
| int | getMaxNameLength()returns the max length of a VM name for the cloud specified in setup; this value is typically decremented by 9 to make room for jclouds labels; delegates to getCustomMaxNameLength() when CloudLocationConfig#VM_NAME_MAX_LENGTH#VM_NAME_MAX_LENGTH is not set | 
| CloudMachineNamer | lengthMaxPermittedForMachineName(int defaultMaxLength) | 
| CloudMachineNamer | lengthReservedForNameInGroup(int identifierRequiredLength)method for overriding to provide custom logic when an explicit config key is not set | 
| static java.lang.String | sanitize(java.lang.String s) | 
| protected java.lang.String | shortName(java.lang.Object x) | 
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() | 
| Field Detail | 
|---|
protected final ConfigBag setup
| Constructor Detail | 
|---|
public CloudMachineNamer(ConfigBag setup)
| Method Detail | 
|---|
public java.lang.String generateNewGroupId()
protected java.lang.String generateNewIdReservingLength(int lengthToReserve)
public java.lang.String generateNewMachineUniqueName()
public java.lang.Integer getCustomMaxNameLength()
public int getMaxNameLength()
public CloudMachineNamer lengthMaxPermittedForMachineName(int defaultMaxLength)
public CloudMachineNamer lengthReservedForNameInGroup(int identifierRequiredLength)
public static java.lang.String sanitize(java.lang.String s)
protected java.lang.String shortName(java.lang.Object x)
Brooklyn Multi-Cloud Application Management Platform 
 brooklyncentral.github.com. Apache License. © 2012.