public class SimpleConnectionGroup extends AbstractConnectionGroup
ConnectionGroup.Type| Constructor and Description |
|---|
SimpleConnectionGroup(String name,
String identifier,
Collection<String> connectionIdentifiers,
Collection<String> connectionGroupIdentifiers)
Creates a new SimpleConnectionGroup having the given name and identifier
which will expose the given contents.
|
| Modifier and Type | Method and Description |
|---|---|
org.glyptodon.guacamole.net.GuacamoleTunnel |
connect(org.glyptodon.guacamole.protocol.GuacamoleClientInformation info)
Establishes a connection to guacd using the information associated with
this object.
|
int |
getActiveConnections()
Returns the number of active connections associated with this object.
|
Map<String,String> |
getAttributes()
Returns all attributes associated with this connection group.
|
Set<String> |
getConnectionGroupIdentifiers()
Returns the identifiers of all readable connection groups that are
children of this connection group.
|
Set<String> |
getConnectionIdentifiers()
Returns the identifiers of all readable connections that are children
of this connection group.
|
void |
setAttributes(Map<String,String> attributes)
Sets the given attributes.
|
equals, getIdentifier, getName, getParentIdentifier, getType, hashCode, setIdentifier, setName, setParentIdentifier, setTypepublic SimpleConnectionGroup(String name, String identifier, Collection<String> connectionIdentifiers, Collection<String> connectionGroupIdentifiers)
name - The name to associate with this connection group.identifier - The identifier to associate with this connection group.connectionIdentifiers - The connection identifiers to expose when requested.connectionGroupIdentifiers - The connection group identifiers to expose when requested.public int getActiveConnections()
Connectablepublic Set<String> getConnectionIdentifiers()
ConnectionGrouppublic Set<String> getConnectionGroupIdentifiers()
ConnectionGrouppublic Map<String,String> getAttributes()
ConnectionGrouppublic void setAttributes(Map<String,String> attributes)
ConnectionGroupattributes - A map of all attribute identifiers to their corresponding values.public org.glyptodon.guacamole.net.GuacamoleTunnel connect(org.glyptodon.guacamole.protocol.GuacamoleClientInformation info)
throws org.glyptodon.guacamole.GuacamoleException
Connectableinfo - Information associated with the connecting client.org.glyptodon.guacamole.GuacamoleException - If an error occurs while connecting to guacd, or if permission to
connect is denied.Copyright © 2015. All rights reserved.