public class Services
extends java.lang.Object
Constructor and Description |
---|
Services() |
Modifier and Type | Method and Description |
---|---|
static void |
addService(Service service)
Normally not called directly unless a Service has been created outside the control of this Collection.
|
static Service |
createService(java.lang.String serviceId)
Create a new Service session using the provided unique serviceId.
|
static void |
deleteService(Service service)
Normally not called directly.
|
static void |
deleteService(java.lang.String serviceId)
Delete a Service session matching the provided unique serviceId.
|
static Service |
getService(java.lang.String serviceId)
Get an existing Service session using the provided unique serviceId.
|
public static void addService(Service service) throws java.lang.IllegalArgumentException
service
- instance with a sessionId that must NOT already exist in this Collection.java.lang.IllegalArgumentException
- if the provided Service is null or has a serviceId already in the Collection.createService(String)
,
deleteService(String)
public static Service createService(java.lang.String serviceId) throws java.lang.IllegalArgumentException
serviceId
- java.lang.IllegalArgumentException
- if the provided serviceId is null
or if the Collection already contains a Service with the given serviceId.deleteService(String)
public static Service getService(java.lang.String serviceId) throws java.lang.IllegalArgumentException
serviceId
- java.lang.IllegalArgumentException
- if the provided serviceId is null
or if the Collection does not contain a Service with the given serviceId.createService(String)
public static void deleteService(java.lang.String serviceId) throws java.lang.IllegalArgumentException
serviceId
- java.lang.IllegalArgumentException
- if the provided serviceId is null
or if the Collection does NOT contain a Service with the given serviceId.createService(String)
public static void deleteService(Service service) throws java.lang.IllegalArgumentException
service
- java.lang.IllegalArgumentException
- if the provided Service is null or has a serviceId NOT in the Collection.createService(String)
,
deleteService(String)
Copyright © SAS Institute. All Rights Reserved.