Class ADRepositoryHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2meta.ADRepositoryHelper
-
public abstract class ADRepositoryHelper extends java.lang.Object
Represents the repository.- See Also:
ADRepository
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getBusServerInfoAsJSON(SrvContext srvCtx)
returns the server info that is published to the bus.static ARG_ModifyInactivity
getModifyInactivity(SrvContext srvCtx)
Returns the inactivity information.static ARG_ModifyUpdate
getModifyUpdate(SrvContext srvCtx)
Returns the update information.static ADRepository
getSelf(SrvContext srvCtx)
Returns the repository itself.static ARG_ShutdownInfo
getShutdown(SrvContext srvCtx)
Returns the shutdown information.static void
modifyInactivity(SrvContext srvCtx, boolean deleteAuto, int timeUser, int timeRepository)
Use to change the inactivity behavior.static void
modifySingleSignOn(SrvContext srvCtx, boolean item)
Use to change the single sign-on flag.static void
modifyUpdate(SrvContext srvCtx, int interval, java.util.List<java.lang.String> seqTime)
Use to change the update behavior.static ARG_OccupiedResources
occupiedResources(SrvContext srvCtx)
Calculates the occupied resources of this repository.
-
-
-
Method Detail
-
getBusServerInfoAsJSON
public static java.lang.String getBusServerInfoAsJSON(SrvContext srvCtx) throws InoNetException, SrvErrorException
returns the server info that is published to the bus.- Parameters:
srvCtx
- The context of the related innovator server.- Throws:
InoNetException
SrvErrorException
-
getSelf
public static ADRepository getSelf(SrvContext srvCtx) throws InoNetException, SrvErrorException
Returns the repository itself.- Parameters:
srvCtx
- The context of the related innovator server.- Throws:
InoNetException
SrvErrorException
-
getModifyInactivity
public static ARG_ModifyInactivity getModifyInactivity(SrvContext srvCtx) throws InoNetException, SrvErrorException
Returns the inactivity information.- Parameters:
srvCtx
- The context of the related innovator server.- Throws:
InoNetException
SrvErrorException
-
getModifyUpdate
public static ARG_ModifyUpdate getModifyUpdate(SrvContext srvCtx) throws InoNetException, SrvErrorException
Returns the update information.- Parameters:
srvCtx
- The context of the related innovator server.- Throws:
InoNetException
SrvErrorException
-
getShutdown
public static ARG_ShutdownInfo getShutdown(SrvContext srvCtx) throws InoNetException, SrvErrorException
Returns the shutdown information.- Parameters:
srvCtx
- The context of the related innovator server.- Throws:
InoNetException
SrvErrorException
-
modifyInactivity
public static void modifyInactivity(SrvContext srvCtx, boolean deleteAuto, int timeUser, int timeRepository) throws InoNetException, SrvErrorException
Use to change the inactivity behavior.- Parameters:
srvCtx
- The context of the related innovator server.deleteAuto
- Delete inactive users automaticallytimeUser
- Duration in minutes until the user becomes inactivetimeRepository
- Duration in hours until the repository becomes inactive and shuts down- Throws:
InoNetException
SrvErrorException
-
modifySingleSignOn
public static void modifySingleSignOn(SrvContext srvCtx, boolean item) throws InoNetException, SrvErrorException
Use to change the single sign-on flag. All logins in models will be deleted!- Parameters:
srvCtx
- The context of the related innovator server.item
-- Throws:
InoNetException
SrvErrorException
-
modifyUpdate
public static void modifyUpdate(SrvContext srvCtx, int interval, java.util.List<java.lang.String> seqTime) throws InoNetException, SrvErrorException
Use to change the update behavior.- Parameters:
srvCtx
- The context of the related innovator server.interval
- Update interval in minutesseqTime
- Sequence of update times- Throws:
InoNetException
SrvErrorException
-
occupiedResources
public static ARG_OccupiedResources occupiedResources(SrvContext srvCtx) throws InoNetException, SrvErrorException
Calculates the occupied resources of this repository. To avoid trafic the calculation is done only in some interval. Therefore the provided data may be slightly outdated.- Parameters:
srvCtx
- The context of the related innovator server.- Throws:
InoNetException
SrvErrorException
-
-