public class YResourceConnection extends YConnection
_handle, _url
Constructor and Description |
---|
YResourceConnection() |
YResourceConnection(java.lang.String urlStr) |
YResourceConnection(java.lang.String host,
int port) |
YResourceConnection(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
boolean |
connect()
Opens a connection to the resource service.
|
java.util.List<AbstractSelector> |
getAllocators()
Get the current list of Allocators from the resource service.
|
java.util.List<Capability> |
getCapabilities()
Get the current list of Capabilities from the resource service.
|
ResourceGatewayClient |
getClient()
Gets the client object maintaining the current connection.
|
java.util.List<YParameter> |
getCodeletParameters(java.lang.String codeletName)
Gets the required task-level parameters for the specified codelet
|
java.util.List<CodeletInfo> |
getCodelets()
Get the current list of Codelets from the resource service (as CodeletInfo objects).
|
java.util.List<AbstractSelector> |
getConstraints()
Get the current list of Constraints from the resource service.
|
java.util.List<AbstractSelector> |
getFilters()
Get the current list of Filters from the resource service.
|
java.util.List<NonHumanCategory> |
getNonHumanCategories()
Get the current list of NonHumanCategories from the resource service.
|
java.util.List<NonHumanResource> |
getNonHumanResources()
Get the current list of NonHumanResources from the resource service.
|
java.util.List<OrgGroup> |
getOrgGroups()
Get the current list of OrgGroups from the resource service.
|
java.util.List<java.lang.String> |
getParticipantIDs()
Gets a list of ids for all participants
|
java.util.List<Participant> |
getParticipants()
Get the current list of Participants from the resource service.
|
java.util.List<Position> |
getPositions()
Get the current list of Positions from the resource service.
|
java.util.List<java.lang.String> |
getRoleIDs()
Gets a list of ids for all roles
|
java.util.List<Role> |
getRoles()
Get the current list of Roles from the resource service.
|
protected java.lang.String |
getURLFilePath() |
protected void |
init()
Called from the super class to do any initialisation tasks
|
boolean |
isConnected()
Checks that a connection is open.
|
static void |
main(java.lang.String[] args) |
connect, disconnect, disconnect, getHost, getPort, getURL, isConnected, setPassword, setURL, setURL, setURL, setUserID, testConnection
public YResourceConnection()
public YResourceConnection(java.lang.String host, int port) throws java.net.MalformedURLException
java.net.MalformedURLException
public YResourceConnection(java.lang.String urlStr)
public YResourceConnection(java.net.URL url)
public boolean connect() throws java.io.IOException
java.io.IOException
- if there's a problem connection to the service.public boolean isConnected()
public ResourceGatewayClient getClient()
getClient
in class YConnection
public java.util.List<Participant> getParticipants() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<Role> getRoles() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<Capability> getCapabilities() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<Position> getPositions() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<OrgGroup> getOrgGroups() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<NonHumanResource> getNonHumanResources() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<NonHumanCategory> getNonHumanCategories() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<AbstractSelector> getFilters() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<AbstractSelector> getConstraints() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<AbstractSelector> getAllocators() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<CodeletInfo> getCodelets() throws java.io.IOException
java.io.IOException
- If there is some problem retrieving a fresh list, and the
cache is empty.public java.util.List<YParameter> getCodeletParameters(java.lang.String codeletName) throws java.io.IOException
codeletName
- the name of the codelet to get the parameters forjava.io.IOException
- if the resource service connection is down, and the cache
is emptypublic java.util.List<java.lang.String> getParticipantIDs()
public java.util.List<java.lang.String> getRoleIDs()
protected void init()
init
in class YConnection
protected java.lang.String getURLFilePath()
getURLFilePath
in class YConnection
public static void main(java.lang.String[] args)