Groovy Documentation

org.linkedin.glu.agent.api
[Groovy] Class MountPoint

java.lang.Object
  org.linkedin.glu.agent.api.MountPoint
All Implemented Interfaces:
java.io.Serializable

class MountPoint

Represents a mount point

Authors:
ypujante@linkedin.com


Field Summary
static java.lang.Object ROOT

 
Constructor Summary
MountPoint(java.lang.String name, MountPoint parent)

Constructor

MountPoint(java.lang.Object name)

Constructor

 
Method Summary
static java.lang.Object create(MountPoint mountPoint)

static java.lang.Object create(java.lang.String mountPoint)

static java.lang.Object create(java.lang.Object mountPoint)

boolean equals(java.lang.Object o)

static java.lang.Object fromPath(java.lang.String path)

Reverse of getPath()

static MountPoint fromPathWithNoSlash(java.lang.String path)

Reverse of toPathWithNoSlash

java.lang.String getName()

MountPoint getParent()

java.lang.String getPath()

Returns as a path (starting with '/')

java.lang.Object getPathElements()

Returns as a collection of path elements (first one is always the empty string)

int hashCode()

java.lang.String toPathWithNoSlash()

Returns:
the path with all slashes replaced with '_' and of course the '_' sign properly encoded.

java.lang.String toString()

 
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

ROOT

public static final java.lang.Object ROOT


 
Constructor Detail

MountPoint

MountPoint(java.lang.String name, MountPoint parent)
Constructor


MountPoint

MountPoint(java.lang.Object name)
Constructor


 
Method Detail

create

static java.lang.Object create(MountPoint mountPoint)


create

static java.lang.Object create(java.lang.String mountPoint)


create

static java.lang.Object create(java.lang.Object mountPoint)


equals

boolean equals(java.lang.Object o)


fromPath

static java.lang.Object fromPath(java.lang.String path)
Reverse of getPath()


fromPathWithNoSlash

static MountPoint fromPathWithNoSlash(java.lang.String path)
Reverse of toPathWithNoSlash


getName

java.lang.String getName()


getParent

MountPoint getParent()


getPath

java.lang.String getPath()
Returns as a path (starting with '/')


getPathElements

java.lang.Object getPathElements()
Returns as a collection of path elements (first one is always the empty string)


hashCode

int hashCode()


toPathWithNoSlash

java.lang.String toPathWithNoSlash()
Returns:
the path with all slashes replaced with '_' and of course the '_' sign properly encoded. The path is also URI friendly


toString

java.lang.String toString()


 

Groovy Documentation