Class MatchingInstanceTask
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.instances.MatchingInstanceTask
-
- All Implemented Interfaces:
InstanceUpdateTask
- Direct Known Subclasses:
RunningInstanceTask
,StoppedInstanceTask
public abstract class MatchingInstanceTask extends Object implements InstanceUpdateTask
- Author:
- Eugene Petrenko Created: 04.12.2009 18:15:58
-
-
Field Summary
Fields Modifier and Type Field Description protected CloudEventDispatcher
myDispatcher
protected String
myImageId
protected String
myInstanceId
protected String
myProfileCloudName
protected String
myProfileId
-
Constructor Summary
Constructors Constructor Description MatchingInstanceTask(CloudProfile profile, CloudInstance instance, CloudEventDispatcher dispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getImageId()
String
getInstanceId()
String
getProfileId()
boolean
matches(CloudProfile profile)
boolean
matches(CloudProfile profile, CloudImage image)
boolean
matches(CloudProfile profile, CloudInstance instance)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.clouds.server.impl.instances.InstanceUpdateTask
agentMatched, agentRemoved, getAssociatedAgents, hasAssociatedAgents, instanceNotFound, update
-
-
-
-
Field Detail
-
myProfileId
protected final String myProfileId
-
myProfileCloudName
protected final String myProfileCloudName
-
myImageId
protected final String myImageId
-
myInstanceId
protected final String myInstanceId
-
myDispatcher
protected final CloudEventDispatcher myDispatcher
-
-
Constructor Detail
-
MatchingInstanceTask
public MatchingInstanceTask(@NotNull CloudProfile profile, @NotNull CloudInstance instance, @NotNull CloudEventDispatcher dispatcher)
-
-
Method Detail
-
matches
public boolean matches(@NotNull CloudProfile profile, CloudInstance instance)
- Specified by:
matches
in interfaceInstanceUpdateTask
-
matches
public boolean matches(@NotNull CloudProfile profile, CloudImage image)
- Specified by:
matches
in interfaceInstanceUpdateTask
-
matches
public boolean matches(@NotNull CloudProfile profile)
- Specified by:
matches
in interfaceInstanceUpdateTask
-
getProfileId
public String getProfileId()
- Specified by:
getProfileId
in interfaceInstanceUpdateTask
-
getImageId
public String getImageId()
- Specified by:
getImageId
in interfaceInstanceUpdateTask
-
getInstanceId
public String getInstanceId()
- Specified by:
getInstanceId
in interfaceInstanceUpdateTask
-
-